Package com.iizigo.prop
Interface IPropertyEditorController
- All Superinterfaces:
IDisposedPart
- All Known Subinterfaces:
ITermEditor
- All Known Implementing Classes:
CaptureEditor
,ContextMenuEditor
,DatabaseEditor
,FontFacesEditor
,ImageDefinitionEditor
,PanelEditor
,PropEditorPart
,RecordingEditor
,ScreenEditor
,SelectorEditor
,ServerConfigComposite
,StandaloneEditorController
,StyleEditor
,TextTableEditor
,VirtualSpaceEditor
,WebServiceEditor
Controller interface that provides functions for property editing such as undo/redo.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionGets the ModuleModel instance of the project.Gets the multi-property selection provider.Gets the undo context.Gets the undo/redo interface.boolean
Checks if the part is disposed of.void
removePropertyValue
(GProp<?> property) Removes a property when undefined in the editors.void
setBlockViewerFocus
(boolean block) Blocks the target viewer from focus.void
setPropertyAttrFlag
(GProp<?> property, int attr, boolean flag) Sets a property attribute flag.void
setPropertyError
(GProp<?> property, String errorID, IPropErrorItem item) Sets a property error.void
setPropertyValue
(PropCnr parent, GProp<?> property, Object value) Sets a property value.
Method Details
setPropertyError
Sets a property error. The undo/redo functionality will wrap an undo/redo action for this function.removePropertyValue
Removes a property when undefined in the editors. The undo/redo functionality will wrap an undo/redo action for this function.setPropertyAttrFlag
Sets a property attribute flag. The undo/redo functionality will wrap an undo/redo action for this function.setPropertyValue
Sets a property value. The undo/redo functionality will wrap an undo/redo action for this function. This method handles setting a property value that is extended in the parent and the new property is to replace it in the parent.getUndoContext
Object getUndoContext()Gets the undo context.- Returns:
- An object castable to org.eclipse.core.commands.operations.IUndoContext.
getModuleModel
ModuleModel getModuleModel()Gets the ModuleModel instance of the project.getMultiSelectionProvider
MultiSelectionProvider getMultiSelectionProvider()Gets the multi-property selection provider.getUndoRedo
IPropUndoRedo getUndoRedo()Gets the undo/redo interface.setBlockViewerFocus
void setBlockViewerFocus(boolean block) Blocks the target viewer from focus.isDisposed
boolean isDisposed()Checks if the part is disposed of.- Specified by:
isDisposed
in interfaceIDisposedPart
- Returns:
- true if disposed of, false otherwise.