|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.part.Page
uk.ac.kcl.cch.jb.pliny.containmentView.ContainmentViewPage
generates a page to be used by the ContainmentView to display containment information for the given resource.
Note that the ContainmentView page display is managed by GEF, so has a GEF-oriented design. In particular, this class also implements code for GEF's EditPartFactory: the function GEF needs to map parts of the model it is given to work with with GEF EditParts.
All the model information that this object managers is accessed
through its
ContainmentSet
object, which it creates for the given Resource. This page object
also has to handle situations where the Editor it is synchronised with
can change its resource.
Constructor Summary | |
ContainmentViewPage(Resource resource,
org.eclipse.ui.part.PageBook book,
ContainmentView view)
|
Method Summary | |
void |
commandStackChanged(EventObject event)
|
void |
createControl(org.eclipse.swt.widgets.Composite parent)
|
org.eclipse.gef.EditPart |
createEditPart(org.eclipse.gef.EditPart context,
Object model)
implements code required by GEF's EditPartFactory to map model elements to GEF's editParts. |
void |
dispose()
|
Object |
getAdapter(Class adapter)
|
org.eclipse.gef.commands.CommandStack |
getCommandStack()
Returns the CommandStack of this view Page. |
ContainmentSet |
getContainmentSet()
gets the ContainmentSet this page is using as the basis for its display. |
org.eclipse.swt.widgets.Control |
getControl()
|
org.eclipse.gef.EditDomain |
getEditDomain()
Returns the EditDomain of this view Page. |
org.eclipse.gef.GraphicalViewer |
getGraphicalViewer()
Returns the GraphicalViewer of this view Page. |
Vector |
getSelectedContainmentItems()
|
IncludedTypeManager |
getTypeManager()
returns the IncludedTypeManager applicable to this page. |
void |
selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
|
void |
setFocus()
|
void |
updateCommandStackActions()
|
void |
updateResource(Resource newResource)
invoked by ContainmentView if the Editor it is currently connected to is a IResourceChangeablePart , and
that editor has just changed its resource. |
void |
updateUndoActions()
|
Methods inherited from class org.eclipse.ui.part.Page |
getSite, init, makeContributions, setActionBars |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContainmentViewPage(Resource resource, org.eclipse.ui.part.PageBook book, ContainmentView view)
Method Detail |
public IncludedTypeManager getTypeManager()
public void dispose()
dispose
in interface org.eclipse.ui.part.IPage
public void createControl(org.eclipse.swt.widgets.Composite parent)
createControl
in interface org.eclipse.ui.part.IPage
public org.eclipse.gef.GraphicalViewer getGraphicalViewer()
GraphicalViewer
of this view Page.
GraphicalViewer
public org.eclipse.gef.EditDomain getEditDomain()
EditDomain
of this view Page.
EditDomain
public org.eclipse.gef.commands.CommandStack getCommandStack()
CommandStack
of this view Page.
CommandStack
public org.eclipse.swt.widgets.Control getControl()
getControl
in interface org.eclipse.ui.part.IPage
public void setFocus()
setFocus
in interface org.eclipse.ui.part.IPage
public ContainmentSet getContainmentSet()
public void updateCommandStackActions()
public void updateUndoActions()
public Object getAdapter(Class adapter)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
public void commandStackChanged(EventObject event)
commandStackChanged
in interface org.eclipse.gef.commands.CommandStackListener
public void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
selectionChanged
in interface org.eclipse.jface.viewers.ISelectionChangedListener
public org.eclipse.gef.EditPart createEditPart(org.eclipse.gef.EditPart context, Object model)
createEditPart
in interface org.eclipse.gef.EditPartFactory
EditPartFactory
public Vector getSelectedContainmentItems()
public void updateResource(Resource newResource)
IResourceChangeablePart
, and
that editor has just changed its resource.
newResource
- the New resource to display.IResourceChangeablePart
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |