Package net.officefloor.gef.activity
Class ActivityEditor
- java.lang.Object
-
- net.officefloor.gef.ide.editor.AbstractAdaptedIdeEditor<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges>
-
- net.officefloor.gef.activity.ActivityEditor
-
public class ActivityEditor extends AbstractAdaptedIdeEditor<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges>
Activity Editor.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.gef.ide.editor.AbstractAdaptedIdeEditor
AbstractAdaptedIdeEditor.ViewManager<R extends Model>
-
-
Constructor Summary
Constructors Constructor Description ActivityEditor(EnvironmentBridge envBridge)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
editorStyle()
Allows overriding the editor styling.java.lang.String
fileName()
Obtains the default file name for the editor.protected void
loadParents(java.util.List<AbstractConfigurableItem<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges,?,?,?>> parents)
Loads theAbstractConfigurableItem
instances.protected ActivityModel
loadRootModel(ConfigurationItem configurationItem)
Creates the rootModel
from theConfigurationItem
.ActivityModel
newFileRoot()
Provides rootModel
for new file.java.lang.String
paletteIndicatorStyle()
Allows overriding the palette indicator styling.java.lang.String
paletteStyle()
Allows overriding the palette styling.ActivityModel
prototype()
Obtains root prototype.void
saveRootModel(ActivityModel model, WritableConfigurationItem configurationItem)
Writes the rootModel
to theWritableConfigurationItem
.-
Methods inherited from class net.officefloor.gef.ide.editor.AbstractAdaptedIdeEditor
createOperations, getConfigurableContext, getEditorStyleId, getPaletteIndicatorStyleId, getPaletteStyleId, getParents, init, init, initNonOsgiEnvironment, loadView, newFileContent, setConfigurationItem, setDragLatency, setModel, setSelectOnly, translateStyle
-
-
-
-
Constructor Detail
-
ActivityEditor
public ActivityEditor(EnvironmentBridge envBridge)
Instantiate.- Parameters:
envBridge
-EnvironmentBridge
.
-
-
Method Detail
-
fileName
public java.lang.String fileName()
Description copied from class:AbstractAdaptedIdeEditor
Obtains the default file name for the editor.- Specified by:
fileName
in classAbstractAdaptedIdeEditor<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges>
- Returns:
- Default file name for the editor.
-
newFileRoot
public ActivityModel newFileRoot()
Description copied from class:AbstractAdaptedIdeEditor
Provides rootModel
for new file.- Specified by:
newFileRoot
in classAbstractAdaptedIdeEditor<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges>
- Returns:
- Root
Model
for new file.
-
prototype
public ActivityModel prototype()
Description copied from class:AbstractAdaptedIdeEditor
Obtains root prototype.- Specified by:
prototype
in classAbstractAdaptedIdeEditor<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges>
- Returns:
- Root prototype.
-
paletteStyle
public java.lang.String paletteStyle()
Description copied from class:AbstractAdaptedIdeEditor
Allows overriding the palette styling.- Overrides:
paletteStyle
in classAbstractAdaptedIdeEditor<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges>
- Returns:
- Palette styling. May be
null
for default styling.
-
paletteIndicatorStyle
public java.lang.String paletteIndicatorStyle()
Description copied from class:AbstractAdaptedIdeEditor
Allows overriding the palette indicator styling.- Overrides:
paletteIndicatorStyle
in classAbstractAdaptedIdeEditor<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges>
- Returns:
- Palette indicator styling. May be
null
for default styling.
-
editorStyle
public java.lang.String editorStyle()
Description copied from class:AbstractAdaptedIdeEditor
Allows overriding the editor styling.- Overrides:
editorStyle
in classAbstractAdaptedIdeEditor<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges>
- Returns:
- Editor styling. May be
null
for defaulting styling.
-
loadParents
protected void loadParents(java.util.List<AbstractConfigurableItem<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges,?,?,?>> parents)
Description copied from class:AbstractAdaptedIdeEditor
Loads theAbstractConfigurableItem
instances.- Specified by:
loadParents
in classAbstractAdaptedIdeEditor<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges>
- Parameters:
parents
-List
to be populated with theAbstractConfigurableItem
instances.
-
loadRootModel
protected ActivityModel loadRootModel(ConfigurationItem configurationItem) throws java.lang.Exception
Description copied from class:AbstractAdaptedIdeEditor
Creates the rootModel
from theConfigurationItem
.- Specified by:
loadRootModel
in classAbstractAdaptedIdeEditor<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges>
- Parameters:
configurationItem
-ConfigurationItem
containing the configuration of theModel
.- Returns:
- Root
Model
within theConfigurationItem
. - Throws:
java.lang.Exception
- If fails to load the rootModel
from theConfigurationItem
.
-
saveRootModel
public void saveRootModel(ActivityModel model, WritableConfigurationItem configurationItem) throws java.lang.Exception
Description copied from class:AbstractAdaptedIdeEditor
Writes the rootModel
to theWritableConfigurationItem
.- Specified by:
saveRootModel
in classAbstractAdaptedIdeEditor<ActivityModel,ActivityModel.ActivityEvent,ActivityChanges>
- Parameters:
model
- RootModel
to be saved.configurationItem
-WritableConfigurationItem
.- Throws:
java.lang.Exception
- If fails to save the rootModel
into theWritableConfigurationItem
.
-
-