public class EMFSectionPage extends ICEFormPage implements org.eclipse.ui.ISelectionListener
This class is a FormPage that creates a page with an embedded Form for manipulating an EMFComponent.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
Constructor and Description |
---|
EMFSectionPage(org.eclipse.ui.forms.editor.FormEditor editor,
java.lang.String id,
java.lang.String title)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
void |
doSave(org.eclipse.core.runtime.IProgressMonitor monitor) |
EMFComponent |
getEMFComponent()
This operation retrieves the EMFComponent that is currently managed by
the EMFSectionPage.
|
void |
selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection) |
void |
setEMFComponent(EMFComponent emf)
Set the EMFComponent that this EMFSectionPage should display.
|
canLeaveThePage, createPartControl, 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 static final java.lang.String ID
public EMFSectionPage(org.eclipse.ui.forms.editor.FormEditor editor, java.lang.String id, java.lang.String title)
The constructor.
editor
- The FormEditor for which the Page should be constructed.
id
- The id of the page.
title
- The title of the page.
public void setEMFComponent(EMFComponent emf)
Set the EMFComponent that this EMFSectionPage should display.
public EMFComponent getEMFComponent()
This operation retrieves the EMFComponent that is currently managed by the EMFSectionPage.
The EMFComponent or null if the component has not yet been set in the page.
public void selectionChanged(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
selectionChanged
in interface org.eclipse.ui.ISelectionListener
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
doSave
in interface org.eclipse.ui.ISaveablePart
doSave
in class org.eclipse.ui.forms.editor.FormPage
public void dispose()
dispose
in interface org.eclipse.ui.IWorkbenchPart
dispose
in class org.eclipse.ui.forms.editor.FormPage