public class ICEResourcePage extends ICEFormPage implements org.eclipse.ui.ISelectionListener, IUpdateableListener
component
Constructor and Description |
---|
ICEResourcePage(org.eclipse.ui.forms.editor.FormEditor editor,
java.lang.String id,
java.lang.String title)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
ResourceComponent |
getResourceComponent()
This operation retrieves the ResourceComponent that has been rendered by
the ICEResourcePage or null if the component does not exist.
|
void |
selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection) |
void |
setResourceComponent(ResourceComponent component)
This operation sets the ResourceComponent that should be used by the
ICEResourcePage.
|
void |
setResourceProvider(ISimpleResourceProvider provider)
This operation sets the ISimpleResource provider that should be used by
the output page to load ICEResources.
|
void |
setVizService(IVizServiceFactory factory)
This operation sets the IVizServiceFactory that should be used to create
plots.
|
void |
update(IUpdateable component)
This method is called whenever the current
resourceComponent is
updated. |
canLeaveThePage, createPartControl, dispose, doSave, doSaveAs, getEditor, getId, getIndex, getManagedForm, getPartControl, getTitleImage, init, initialize, isActive, isDirty, isEditor, isSaveAsAllowed, selectReveal, setActive, setFocus, setIndex
getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setInitializationData
addPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ICEResourcePage(org.eclipse.ui.forms.editor.FormEditor editor, java.lang.String id, java.lang.String title)
editor
- The FormEditor for which the Page should be constructed. This
should be an ICEFormEditor
.id
- The id of the page.title
- The title of the page.public void setVizService(IVizServiceFactory factory)
factory
- The service factory that should be usedpublic void setResourceComponent(ResourceComponent component)
Note: This method should only be called when the page is created.
component
- The ResourceComponentpublic ResourceComponent getResourceComponent()
public void setResourceProvider(ISimpleResourceProvider provider)
provider
- The ISimpleResourceProviderpublic void update(IUpdateable component)
resourceComponent
is
updated. It adds any new plots to the map of plots
if possible.update
in interface IUpdateableListener
component
- The component that was updated in some way.public void selectionChanged(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
selectionChanged
in interface org.eclipse.ui.ISelectionListener