|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
org.eclipse.ui.part.PageBookView
roneditor.AbstractPageBookView
roneditor.objectnetview.ObjectNetPageBookView
public class ObjectNetPageBookView
This class extends and implements the abstract class
AbstractPageBookView
to display a model on an ObjectNetPage
.
It is expected that the model object is a ObjectNet
instance from the
RonmodelPackage
.
If the EMF model notifies a change of the object net's name the views part
name is set to the value calculatePartName()
returns which is the
name of the model ObjectNet
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.ui.part.PageBookView |
---|
org.eclipse.ui.part.PageBookView.PageRec, org.eclipse.ui.part.PageBookView.SelectionProvider |
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
---|
org.eclipse.emf.common.notify.Adapter.Internal |
Field Summary |
---|
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
PROP_TITLE |
Constructor Summary | |
---|---|
ObjectNetPageBookView()
|
Method Summary | |
---|---|
protected java.lang.String |
calculatePartName()
|
protected org.eclipse.ui.part.IPage |
getPageForModel(org.eclipse.emf.ecore.EObject model)
Subclasses must implement this method to create a IPage that
displays the model. |
void |
notifyChanged(org.eclipse.emf.common.notify.Notification notification)
|
Methods inherited from class roneditor.AbstractPageBookView |
---|
createDefaultPage, doCreatePage, doDestroyPage, getBootstrapPart, getModel, getTarget, isAdapterForType, isImportant, partBroughtToTop, setTarget |
Methods inherited from class org.eclipse.ui.part.PageBookView |
---|
createPartControl, dispose, doesPageExist, getAdapter, getCurrentContributingPart, getCurrentPage, getDefaultPage, getPageBook, getPageRec, getPageRec, getPageSite, getSelectionProvider, getViewAdapter, init, initPage, partActivated, partClosed, partDeactivated, partOpened, setFocus, showPageRec |
Methods inherited from class org.eclipse.ui.part.ViewPart |
---|
checkSite, getViewSite, init, saveState, setContentDescription, setInitializationData, setPartName |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
---|
addPropertyListener, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
Methods inherited from class org.eclipse.core.commands.common.EventManager |
---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
Constructor Detail |
---|
public ObjectNetPageBookView()
Method Detail |
---|
protected org.eclipse.ui.part.IPage getPageForModel(org.eclipse.emf.ecore.EObject model)
AbstractPageBookView
IPage
that
displays the model. It may be advisable to ensure the model being an
instance of the intended class(es) here.
getPageForModel
in class AbstractPageBookView
model
- The model to be displayed in the page.
IPage
displaying the passed model.public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
protected java.lang.String calculatePartName()
calculatePartName
in class AbstractPageBookView
ObjectNet
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |