|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMTLExampleStrategy
An internal extension point is defined to specify multiple example strategies. It is used to initialize automatically a template file from an example in the "New>MTL>MTL Templates" wizard. The extension point "org.eclipse.mtl.ide.ui.example" requires a fully qualified name of a Java class implementing this interface.
MTLCopyExampleContentStrategy| Field Summary | |
|---|---|
static java.lang.String |
EXAMPLE_STRATEGY_EXTENSION_ID
The identifier of the internal extension point specifying the implementation to use for example strategy. |
| Method Summary | |
|---|---|
boolean |
forceMetamodelURI()
Indicates if this strategy defines itself the meta-model URI of the template to create. |
java.lang.String |
getContent(org.eclipse.core.resources.IFile exampleFile,
java.lang.String moduleName,
boolean templateHasFileBlock,
boolean templateIsMain,
java.lang.String metamodelURI,
java.lang.String metamodelFileType)
Gets the new template content, using the example file and the wizard information. |
java.lang.String |
getDescription()
Gets the description of the strategy (Displayed in the "New>MTL>MTL Templates" wizard). |
java.lang.String |
getInitialFileNameFilter()
Gets the initial file name filter for this strategy. |
| Field Detail |
|---|
static final java.lang.String EXAMPLE_STRATEGY_EXTENSION_ID
| Method Detail |
|---|
java.lang.String getDescription()
java.lang.String getInitialFileNameFilter()
boolean forceMetamodelURI()
java.lang.String getContent(org.eclipse.core.resources.IFile exampleFile,
java.lang.String moduleName,
boolean templateHasFileBlock,
boolean templateIsMain,
java.lang.String metamodelURI,
java.lang.String metamodelFileType)
exampleFile - is the selected examplemoduleName - is the module nametemplateHasFileBlock - indicates if a file block must be generatedtemplateIsMain - indicates if a main tag (@main) must be generatedmetamodelURI - is the metamodel URImetamodelFileType - is the main metamodel type
|
Copyright 2008 Obeo All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||