|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.mtl.ide.ui.wizards.newfile.example.MTLCopyExampleContentStrategy
public class MTLCopyExampleContentStrategy
Default implementation of the "org.eclipse.mtl.ide.ui.example" extension point. It is used to initialize automatically a template file from an example, by copying the text of the example into the new template.
IMTLExampleStrategy| Constructor Summary | |
|---|---|
MTLCopyExampleContentStrategy()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getContent(org.eclipse.core.resources.IFile exampleFile,
java.lang.String moduleName,
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). |
protected java.lang.StringBuffer |
readExampleContent(org.eclipse.core.resources.IFile exampleFile)
Reads the text of the example file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MTLCopyExampleContentStrategy()
| Method Detail |
|---|
public java.lang.String getDescription()
getDescription in interface IMTLExampleStrategyIMTLExampleStrategy.getDescription()
public java.lang.String getContent(org.eclipse.core.resources.IFile exampleFile,
java.lang.String moduleName,
java.lang.String metamodelURI,
java.lang.String metamodelFileType)
getContent in interface IMTLExampleStrategyexampleFile - is the selected examplemoduleName - is the module namemetamodelURI - is the metamodel URImetamodelFileType - is the main metamodel type
IMTLExampleStrategy.getContent(org.eclipse.core.resources.IFile,
java.lang.String, java.lang.String, java.lang.String)protected java.lang.StringBuffer readExampleContent(org.eclipse.core.resources.IFile exampleFile)
exampleFile - is the example file
|
Copyright 2008 Obeo All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||