public class DeskEditor extends AbstractOfficeFloorEditor<DeskModel,DeskChanges>
DeskModel
.Modifier and Type | Field and Description |
---|---|
static String |
EDITOR_ID
ID for this
IEditorPart . |
paletteRoot
Constructor and Description |
---|
DeskEditor() |
Modifier and Type | Method and Description |
---|---|
protected DeskChanges |
createModelChanges(DeskModel model)
Creates the
Model change functionality. |
FlowInstigationStrategyEnum |
getFlowInstigationStrategy(Object instigationStrategy)
Obtains the
FlowInstigationStrategyEnum . |
static FlowInstigationStrategyEnum |
getFlowInstigationStrategy(String instigationStrategy)
Obtains the
FlowInstigationStrategyEnum . |
protected void |
initialisePaletteRoot()
Override to initialise the
PaletteRoot . |
protected void |
populateEditPartTypes(Map<Class<?>,Class<? extends org.eclipse.gef.EditPart>> map)
Populates the
EditPart types for their respective model. |
protected void |
populateGraphicalEditPolicy(OfficeFloorGraphicalNodeEditPolicy policy)
Populates the
OfficeFloorGraphicalNodeEditPolicy . |
protected void |
populateLayoutEditPolicy(OfficeFloorLayoutEditPolicy policy)
Populates the
OfficeFloorLayoutEditPolicy . |
protected void |
populateOperations(List<Operation> list)
Populates the listing of
Operation instances. |
protected DeskModel |
retrieveModel(ConfigurationItem configuration)
Retrieves the Model.
|
protected void |
storeModel(DeskModel model,
ConfigurationItem configuration)
Stores the Model.
|
createEditPart, createGraphicalEditPolicy, createLayoutEditPolicy, doSave, doSaveAs, getCastedModel, getModelChanges, getPalettePreferences, getPaletteRoot, getRootEditPart, initialiseContextMenu, initializeGraphicalViewer, isSaveAsAllowed, loadEditPartTypes, messageError, messageError, messageError, messageError, messageStatus, messageWarning, setCastedModel, setInput
createPaletteComposite, createPalettePage, createPaletteViewerProvider, createPartControl, getAdapter, getGraphicalControl, getPaletteViewerProvider, setEditDomain
commandStackChanged, configureGraphicalViewer, createActions, createGraphicalViewer, dispose, firePropertyChange, getActionRegistry, getCommandStack, getEditDomain, getGraphicalViewer, getPropertyActions, getSelectionActions, getSelectionSynchronizer, getStackActions, hookGraphicalViewer, init, initializeActionRegistry, isDirty, selectionChanged, setActionRegistry, setFocus, setGraphicalViewer, updateActions
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInputWithNotify, setPartName
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
public static final String EDITOR_ID
IEditorPart
.protected DeskChanges createModelChanges(DeskModel model)
AbstractOfficeFloorEditor
Model
change functionality.createModelChanges
in class AbstractOfficeFloorEditor<DeskModel,DeskChanges>
model
- Root Model
.Model
change functionality.protected DeskModel retrieveModel(ConfigurationItem configuration) throws Exception
AbstractOfficeFloorEditor
retrieveModel
in class AbstractOfficeFloorEditor<DeskModel,DeskChanges>
configuration
- Configuration of the Model.Exception
- If fails to obtain the Model.protected void storeModel(DeskModel model, ConfigurationItem configuration) throws Exception
AbstractOfficeFloorEditor
storeModel
in class AbstractOfficeFloorEditor<DeskModel,DeskChanges>
model
- Model to be stored.configuration
- Configuration of the Model.Exception
- If fails to store the Model.protected void populateEditPartTypes(Map<Class<?>,Class<? extends org.eclipse.gef.EditPart>> map)
AbstractOfficeFloorEditor
EditPart
types for their respective model.populateEditPartTypes
in class AbstractOfficeFloorEditor<DeskModel,DeskChanges>
map
- Registry to load the mappings.protected void populateLayoutEditPolicy(OfficeFloorLayoutEditPolicy policy)
AbstractOfficeFloorEditor
OfficeFloorLayoutEditPolicy
.populateLayoutEditPolicy
in class AbstractOfficeFloorEditor<DeskModel,DeskChanges>
policy
- OfficeFloorLayoutEditPolicy
.protected void populateGraphicalEditPolicy(OfficeFloorGraphicalNodeEditPolicy policy)
AbstractOfficeFloorEditor
OfficeFloorGraphicalNodeEditPolicy
.populateGraphicalEditPolicy
in class AbstractOfficeFloorEditor<DeskModel,DeskChanges>
policy
- OfficeFloorGraphicalNodeEditPolicy
.protected void populateOperations(List<Operation> list)
AbstractOfficeFloorEditor
Operation
instances.populateOperations
in class AbstractOfficeFloorEditor<DeskModel,DeskChanges>
list
- Listing to add Operation
instances.protected void initialisePaletteRoot()
AbstractOfficeFloorEditor
PaletteRoot
.initialisePaletteRoot
in class AbstractOfficeFloorEditor<DeskModel,DeskChanges>
AbstractOfficeFloorEditor.getPaletteRoot()
public FlowInstigationStrategyEnum getFlowInstigationStrategy(Object instigationStrategy)
FlowInstigationStrategyEnum
.instigationStrategy
- Instigation type.FlowInstigationStrategyEnum
or null
if
unknown instigation strategy.public static FlowInstigationStrategyEnum getFlowInstigationStrategy(String instigationStrategy)
FlowInstigationStrategyEnum
.instigationStrategy
- Text name of the FlowInstigationStrategyEnum
.FlowInstigationStrategyEnum
or null
if
unknown.Copyright © 2005–2016. All rights reserved.