Interface ModelEditorConfigurer.IModelEditorConfigurer
-
- All Known Implementing Classes:
Activator,EditorUtils,EditorUtils,StandaloneActivator
- Enclosing class:
- ModelEditorConfigurer
public static interface ModelEditorConfigurer.IModelEditorConfigurerThe actual configurer interface.- Author:
- Holger Eichelberger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ModelEditorConfigurer.IHeadercreateHeader(org.eclipse.swt.widgets.Composite parent, Configuration configuration, java.io.File base, ModelInfo<?> info)Creates the actual header.java.lang.StringgetEditorTitle(boolean editable)Returns the editor title.java.lang.StringgetExtension()Returns the file extension to configure fore.AbstractModelChangeListenergetModelChangeListener()Returns the model change listener, e.g., to rebuild the related model on save.intgetOrdinal()Returns an ordinal for sorting model configurers for displying them.java.lang.StringgetPageTitle(boolean editable)Returns the page title.booleanhasHeader()Returns whether the described editor shall have a header.
-
-
-
Method Detail
-
getEditorTitle
java.lang.String getEditorTitle(boolean editable)
Returns the editor title.- Parameters:
editable- whether the editor is editable- Returns:
- the editor title
-
getPageTitle
java.lang.String getPageTitle(boolean editable)
Returns the page title.- Parameters:
editable- whether the editor is editable- Returns:
- the page title
-
getExtension
java.lang.String getExtension()
Returns the file extension to configure fore.- Returns:
- the file extension
-
getOrdinal
int getOrdinal()
Returns an ordinal for sorting model configurers for displying them.- Returns:
- the ordinal
-
hasHeader
boolean hasHeader()
Returns whether the described editor shall have a header.- Returns:
trueif it shall have a header,falseelse
-
createHeader
ModelEditorConfigurer.IHeader createHeader(org.eclipse.swt.widgets.Composite parent, Configuration configuration, java.io.File base, ModelInfo<?> info)
Creates the actual header.- Parameters:
parent- the parent compositeconfiguration- the recent product line configurationbase- the basic directory of the project we are working ininfo- the actual model being displayed- Returns:
- the header instance
-
getModelChangeListener
AbstractModelChangeListener getModelChangeListener()
Returns the model change listener, e.g., to rebuild the related model on save.- Returns:
- the model change listener or null for none
-
-