public class ICEFormEditor extends org.eclipse.ui.forms.editor.SharedHeaderFormEditor implements IComponentVisitor, IObservableWidget, IUpdateableListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
ID for Eclipse
|
component
Constructor and Description |
---|
ICEFormEditor()
The Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
disable(boolean state)
This operation disables the ICEFormEditor.
|
void |
doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
(non-Javadoc)
|
void |
doSaveAs()
(non-Javadoc)
|
ICEResourcePage |
getResourcePage()
This method returns the ICEResourcePage that this ICEFormEditor manages.
|
void |
init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
This operation overrides init so that the ICE Form, passed as an
IEditorInput, can be stored.
|
boolean |
isDirty()
This operation overrides isDirty to report the dirty state of the
FormEditor.
|
boolean |
isSaveAsAllowed()
(non-Javadoc)
|
void |
notifyCancelListeners(java.lang.String process)
(non-Javadoc)
|
void |
notifyProcessListeners(java.lang.String process)
(non-Javadoc)
|
void |
notifyUpdateListeners()
(non-Javadoc)
|
void |
registerProcessListener(IProcessEventListener listener)
(non-Javadoc)
|
void |
registerResourceProvider(ISimpleResourceProvider provider)
(non-Javadoc)
|
void |
registerUpdateListener(IUpdateEventListener listener)
(non-Javadoc)
|
void |
setDirty(boolean value)
This operation changes the dirty state of the FormEditor.
|
void |
setFocus()
This operation sets the focus to this editor and also updates the
TreeCompositeViewer, if required.
|
static void |
setVizServiceFactory(IVizServiceFactory factory)
This is a static operation to set the IVizServiceFactory component
reference for the FormEditor.
|
void |
update(IUpdateable component)
(non-Javadoc)
|
void |
updateStatus(java.lang.String statusMessage)
This operation posts a status message to the ICEFormEditor should be
displayed to the user or system viewing the widget.
|
void |
visit(AdaptiveTreeComposite component)
This operation informs the visitor that it is actually working with an
AdaptiveTreeComposite and should operate accordingly.
|
void |
visit(DataComponent component)
(non-Javadoc)
|
void |
visit(EMFComponent component)
This operation informs the visitor that it is actually working with an
EMFComponent and should operate accordingly.
|
void |
visit(GeometryComponent component)
(non-Javadoc)
|
void |
visit(IReactorComponent component)
(non-Javadoc)
|
void |
visit(IShape component)
(non-Javadoc)
|
void |
visit(ListComponent<?> component)
This operation informs the visitor that it is actually working with a
ListComponent.
|
void |
visit(MasterDetailsComponent component)
(non-Javadoc)
|
void |
visit(MatrixComponent component)
(non-Javadoc)
|
void |
visit(MeshComponent component)
This operation informs the visitor that it is actually working with a
MeshComponent and should operate accordingly.
|
void |
visit(ResourceComponent component)
(non-Javadoc)
|
void |
visit(TableComponent component)
(non-Javadoc)
|
void |
visit(TimeDataComponent component)
This operation informs the visitor that it is actually working with a
TimeDataComponent and should operate accordingly.
|
void |
visit(TreeComposite component)
(non-Javadoc)
|
dispose, getHeaderForm
addPage, addPage, addPage, addPage, addPage, addPage, close, editorDirtyStateChanged, findPage, getActiveEditor, getActivePageInstance, getSelectedPage, getToolkit, removePage, selectReveal, setActivePage, setActivePage
addPageChangedListener, createPartControl, findEditors, getActivePage, getAdapter, removePageChangedListener, setActiveEditor
getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setInitializationData
addPartPropertyListener, addPropertyListener, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy
public static final java.lang.String ID
public static void setVizServiceFactory(IVizServiceFactory factory)
factory
- The service factory that should be used for generating
visualizations.public void setDirty(boolean value)
value
- public void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.forms.editor.SharedHeaderFormEditor
public ICEResourcePage getResourcePage()
public void updateStatus(java.lang.String statusMessage)
statusMessage
- The status message.public void disable(boolean state)
state
- True if the editor is disabled, false if not.public void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput input)
init
in interface org.eclipse.ui.IEditorPart
init
in class org.eclipse.ui.forms.editor.FormEditor
public boolean isDirty()
isDirty
in interface org.eclipse.ui.ISaveablePart
isDirty
in class org.eclipse.ui.forms.editor.SharedHeaderFormEditor
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
doSave
in interface org.eclipse.ui.ISaveablePart
doSave
in class org.eclipse.ui.part.EditorPart
ISaveablePart.doSave(IProgressMonitor monitor)
public void doSaveAs()
doSaveAs
in interface org.eclipse.ui.ISaveablePart
doSaveAs
in class org.eclipse.ui.part.EditorPart
ISaveablePart.doSaveAs()
public boolean isSaveAsAllowed()
isSaveAsAllowed
in interface org.eclipse.ui.ISaveablePart
isSaveAsAllowed
in class org.eclipse.ui.part.EditorPart
ISaveablePart.isSaveAsAllowed()
public void visit(DataComponent component)
visit
in interface IComponentVisitor
component
- DataComponent which was originally called by the accept()
operationIComponentVisitor.visit(DataComponent component)
public void visit(ResourceComponent component)
visit
in interface IComponentVisitor
component
- OutputComponent which was originally called by the accept()
operationIComponentVisitor.visit(ResourceComponent component)
public void visit(TableComponent component)
visit
in interface IComponentVisitor
component
- TableComponent which was originally called by the accept()
operationIComponentVisitor.visit(TableComponent component)
public void visit(MatrixComponent component)
visit
in interface IComponentVisitor
component
- MatrixComponent which was originally called by the accept()
operationIComponentVisitor.visit(MatrixComponent component)
public void visit(IShape component)
visit
in interface IComponentVisitor
component
- IShape which was originally called by the accept() operationIComponentVisitor.visit(IShape component)
public void visit(GeometryComponent component)
visit
in interface IComponentVisitor
component
- GeometryComponent which was originally called by the accept()
operationIComponentVisitor.visit(GeometryComponent component)
public void visit(MasterDetailsComponent component)
visit
in interface IComponentVisitor
component
- MasterDetailsComponent which was originally called by the
accept() operation.IComponentVisitor.visit(MasterDetailsComponent component)
public void visit(TreeComposite component)
visit
in interface IComponentVisitor
component
- The TreeCompositeIComponentVisitor.visit(TreeComposite component)
public void visit(IReactorComponent component)
visit
in interface IComponentVisitor
component
- The IReactorComponentIComponentVisitor.visit(IReactorComponent component)
public void registerUpdateListener(IUpdateEventListener listener)
registerUpdateListener
in interface IObservableWidget
listener
- The listener.
IObservableWidget.registerUpdateListener(IUpdateEventListener
listener)
public void registerProcessListener(IProcessEventListener listener)
registerProcessListener
in interface IObservableWidget
listener
- The listener.
IObservableWidget.registerProcessListener(IProcessEventListener
listener)
public void registerResourceProvider(ISimpleResourceProvider provider)
registerResourceProvider
in interface IObservableWidget
provider
- The ICEResource provider.
IObservableWidget.registerResourceProvider(ISimpleResourceProvider
provider)
public void notifyUpdateListeners()
notifyUpdateListeners
in interface IObservableWidget
IObservableWidget.notifyUpdateListeners()
public void notifyProcessListeners(java.lang.String process)
notifyProcessListeners
in interface IObservableWidget
process
- The process that should be performed for the Form.
IObservableWidget.notifyProcessListeners(String process)
public void notifyCancelListeners(java.lang.String process)
notifyCancelListeners
in interface IObservableWidget
process
- The process that should be performed for the Form.
IObservableWidget.notifyCancelListeners(String process)
public void update(IUpdateable component)
update
in interface IUpdateableListener
component
- The component that was updated in some way.IUpdateableListener.update(IUpdateable component)
public void visit(TimeDataComponent component)
IComponentVisitor
visit
in interface IComponentVisitor
component
- The TimeDataComponent.public void visit(MeshComponent component)
IComponentVisitor
visit
in interface IComponentVisitor
component
- The MeshComponent.public void visit(AdaptiveTreeComposite component)
IComponentVisitor
visit
in interface IComponentVisitor
component
- The AdaptiveTreeCompositepublic void visit(EMFComponent component)
IComponentVisitor
visit
in interface IComponentVisitor
component
- The EMFComponent.public void visit(ListComponent<?> component)
IComponentVisitor
visit
in interface IComponentVisitor
component
- The ListComponent