|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.eclipse.gef.ui.parts.GraphicalEditor
org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette
net.officefloor.eclipse.common.editor.AbstractOfficeFloorEditor<SectionModel,SectionChanges>
net.officefloor.eclipse.section.SectionEditor
public class SectionEditor
Editor for the SectionModel.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette |
|---|
org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.CustomPalettePage |
| Field Summary | |
|---|---|
static String |
EDITOR_ID
ID for this IEditorPart. |
| Fields inherited from class net.officefloor.eclipse.common.editor.AbstractOfficeFloorEditor |
|---|
paletteRoot |
| Fields inherited from interface org.eclipse.ui.IEditorPart |
|---|
PROP_DIRTY, PROP_INPUT |
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
PROP_TITLE |
| Constructor Summary | |
|---|---|
SectionEditor()
|
|
| Method Summary | |
|---|---|
protected SectionChanges |
createModelChanges(SectionModel model)
Creates the Model change functionality. |
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 SectionModel |
retrieveModel(ConfigurationItem configuration)
Retrieves the Model. |
protected void |
storeModel(SectionModel model,
ConfigurationItem configuration)
Stores the Model. |
| Methods inherited from class net.officefloor.eclipse.common.editor.AbstractOfficeFloorEditor |
|---|
createEditPart, createGraphicalEditPolicy, createLayoutEditPolicy, doSave, doSaveAs, getCastedModel, getModelChanges, getPalettePreferences, getPaletteRoot, getRootEditPart, initialiseContextMenu, initialisePaletteRoot, initializeGraphicalViewer, isSaveAsAllowed, loadEditPartTypes, messageError, messageError, messageError, messageError, messageStatus, messageWarning, setCastedModel, setInput |
| Methods inherited from class org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette |
|---|
createPalettePage, createPaletteViewerProvider, createPartControl, getAdapter, getGraphicalControl, getPaletteViewerProvider, setEditDomain |
| Methods inherited from class org.eclipse.gef.ui.parts.GraphicalEditor |
|---|
commandStackChanged, configureGraphicalViewer, createActions, createGraphicalViewer, dispose, firePropertyChange, getActionRegistry, getCommandStack, getEditDomain, getGraphicalViewer, getPropertyActions, getSelectionActions, getSelectionSynchronizer, getStackActions, hookGraphicalViewer, init, initializeActionRegistry, isDirty, selectionChanged, setActionRegistry, setFocus, setGraphicalViewer, updateActions |
| Methods inherited from class org.eclipse.ui.part.EditorPart |
|---|
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInputWithNotify, setPartName |
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
|---|
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
| Methods inherited from class org.eclipse.core.commands.common.EventManager |
|---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
addPropertyListener, getSite, getTitle, getTitleImage, removePropertyListener |
| Field Detail |
|---|
public static final String EDITOR_ID
IEditorPart.
| Constructor Detail |
|---|
public SectionEditor()
| Method Detail |
|---|
protected SectionModel retrieveModel(ConfigurationItem configuration)
throws Exception
AbstractOfficeFloorEditor
retrieveModel in class AbstractOfficeFloorEditor<SectionModel,SectionChanges>configuration - Configuration of the Model.
Exception - If fails to obtain the Model.
protected void storeModel(SectionModel model,
ConfigurationItem configuration)
throws Exception
AbstractOfficeFloorEditor
storeModel in class AbstractOfficeFloorEditor<SectionModel,SectionChanges>model - Model to be stored.configuration - Configuration of the Model.
Exception - If fails to store the Model.protected SectionChanges createModelChanges(SectionModel model)
AbstractOfficeFloorEditorModel change functionality.
createModelChanges in class AbstractOfficeFloorEditor<SectionModel,SectionChanges>model - Root Model.
Model change functionality.protected void populateEditPartTypes(Map<Class<?>,Class<? extends org.eclipse.gef.EditPart>> map)
AbstractOfficeFloorEditorEditPart types for their respective model.
populateEditPartTypes in class AbstractOfficeFloorEditor<SectionModel,SectionChanges>protected void populateLayoutEditPolicy(OfficeFloorLayoutEditPolicy policy)
AbstractOfficeFloorEditorOfficeFloorLayoutEditPolicy.
populateLayoutEditPolicy in class AbstractOfficeFloorEditor<SectionModel,SectionChanges>policy - OfficeFloorLayoutEditPolicy.protected void populateGraphicalEditPolicy(OfficeFloorGraphicalNodeEditPolicy policy)
AbstractOfficeFloorEditorOfficeFloorGraphicalNodeEditPolicy.
populateGraphicalEditPolicy in class AbstractOfficeFloorEditor<SectionModel,SectionChanges>policy - OfficeFloorGraphicalNodeEditPolicy.protected void populateOperations(List<Operation> list)
AbstractOfficeFloorEditorOperation instances.
populateOperations in class AbstractOfficeFloorEditor<SectionModel,SectionChanges>list - Listing to add Operation instances.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||