public class ICEGeometryPage extends ICEFormPage implements IUpdateableListener
This class is ICEFormPage that displays the GeometryEditor powered by JME3. It automatically opens the ShapeTreeView and TransformationView to allow the user to add and edit geometry.
component
Constructor and Description |
---|
ICEGeometryPage(org.eclipse.ui.forms.editor.FormEditor editor,
java.lang.String id,
java.lang.String title)
This sets the FormEditor to be opened on, as well as the id and title
Strings.
|
Modifier and Type | Method and Description |
---|---|
void |
createFormContent(org.eclipse.ui.forms.IManagedForm managedForm)
Provides the page with the geometryApplication's information to display
geometry.
|
void |
getFocus()
Connects the ShapeTreeView with the geometryEditor.
|
GeometryComponent |
getGeometry()
Returns the geometryComponent.
|
java.lang.String |
getPartName() |
boolean |
isDirty()
Returns the dirty status of the Page.
|
void |
isSaveAsAllowed(boolean allowed) |
void |
setGeometry(GeometryComponent geometryComponent)
Sets the geometryComponent; giving the geometryEditor data.
|
void |
update(IUpdateable component)
This operation notifies the listener that an update has occurred in the
Component.
|
canLeaveThePage, createPartControl, dispose, doSave, doSaveAs, getEditor, getId, getIndex, getManagedForm, getPartControl, getTitleImage, init, initialize, isActive, isEditor, isSaveAsAllowed, selectReveal, setActive, setFocus, setIndex
getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setInitializationData
addPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartProperties, getPartProperty, getSite, getTitle, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ICEGeometryPage(org.eclipse.ui.forms.editor.FormEditor editor, java.lang.String id, java.lang.String title)
This sets the FormEditor to be opened on, as well as the id and title Strings.
editor
- id
- title
- public boolean isDirty()
Returns the dirty status of the Page.
isDirty
in interface org.eclipse.ui.ISaveablePart
isDirty
in class org.eclipse.ui.forms.editor.FormPage
public void isSaveAsAllowed(boolean allowed)
allowed
- public GeometryComponent getGeometry()
Returns the geometryComponent.
public void setGeometry(GeometryComponent geometryComponent)
Sets the geometryComponent; giving the geometryEditor data.
geometryComponent
- public void getFocus()
Connects the ShapeTreeView with the geometryEditor.
public void createFormContent(org.eclipse.ui.forms.IManagedForm managedForm)
Provides the page with the geometryApplication's information to display geometry.
createFormContent
in class org.eclipse.ui.forms.editor.FormPage
managedForm
- public void update(IUpdateable component)
IUpdateableListener
This operation notifies the listener that an update has occurred in the Component.
update
in interface IUpdateableListener
component
- The component that was updated in some way.public java.lang.String getPartName()
getPartName
in interface org.eclipse.ui.IWorkbenchPart2
getPartName
in class org.eclipse.ui.part.WorkbenchPart