roneditor.objectnetview
Class ObjectNetPageBookView

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.ViewPart
              extended by org.eclipse.ui.part.PageBookView
                  extended by roneditor.AbstractPageBookView
                      extended by roneditor.objectnetview.ObjectNetPageBookView
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.emf.common.notify.Adapter, org.eclipse.ui.IPartListener, org.eclipse.ui.IPersistable, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.part.IWorkbenchPartOrientation

public class ObjectNetPageBookView
extends AbstractPageBookView

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.

Author:
Tony Modica

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

ObjectNetPageBookView

public ObjectNetPageBookView()
Method Detail

getPageForModel

protected org.eclipse.ui.part.IPage getPageForModel(org.eclipse.emf.ecore.EObject model)
Description copied from class: AbstractPageBookView
Subclasses must implement this method to create a IPage that displays the model. It may be advisable to ensure the model being an instance of the intended class(es) here.

Specified by:
getPageForModel in class AbstractPageBookView
Parameters:
model - The model to be displayed in the page.
Returns:
An IPage displaying the passed model.

notifyChanged

public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)

calculatePartName

protected java.lang.String calculatePartName()
Specified by:
calculatePartName in class AbstractPageBookView
Returns:
The name of the model ObjectNet.