|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.graphiti.ui.editor.DiagramBehavior
public class DiagramBehavior
Provides the common functionality needed to display and manage diagrams.
Diagrams can be displayed either in a simple SWT Composite
, in a
ViewPart
or in an IEditorPart
, so it's not possible to
provide common functionality through sub-classing.
Field Summary | |
---|---|
private IConfigurationProviderInternal |
configurationProvider
|
private ContextMenuProvider |
contextMenuProvider
|
private DiagramChangeListener |
diagramChangeListener
|
private IDiagramContainerUI |
diagramContainer
|
private IDiagramEditorInput |
diagramEditorInput
|
private DiagramScrollingBehavior |
diagramScrollingBehavior
|
private boolean |
directEditingActive
|
private DomainModelChangeListener |
domainModelListener
|
private String |
editorInitializationError
|
private CommandStackEventListener |
gefCommandStackListener
|
private KeyHandler |
keyHandler
|
private DefaultMarkerBehavior |
markerBehavior
|
private Point |
mouseLocation
|
private DefaultPaletteBehavior |
paletteBehaviour
|
private IWorkbenchPart |
parentPart
|
private DefaultPersistencyBehavior |
persistencyBehavior
|
private PictogramElement[] |
pictogramElementsForSelection
|
private DefaultRefreshBehavior |
refreshBehavior
|
private DefaultUpdateBehavior |
updateBehavior
|
Constructor Summary | |
---|---|
DiagramBehavior(IDiagramContainerUI diagramContainer)
|
Method Summary | |
---|---|
protected void |
addGefListeners()
Adds the needed GEF listeners after the edit domain is initialized |
Point |
calculateRealMouseLocation(Point nativeLocation)
Calculates the mouse location depending on scrollbars and zoom factor. |
protected void |
configureGraphicalViewer()
Called to configure the behavior viewer, before it receives its content. |
protected List<TransferDropTargetListener> |
createBusinessObjectDropTargetListeners()
Creates a list of drop target listeners that enable dropping domain objects into the diagram, e.g. |
protected ContextMenuProvider |
createContextMenuProvider()
Returns a new ContextMenuProvider . |
protected void |
createErrorPartControl(Composite parent)
Creates the default error page in case an error occurred while initializing this behavior. |
protected void |
createGraphicalViewer(Composite parent)
Creates the GraphicalViewer on the specified Composite and
initializes it. |
protected DefaultMarkerBehavior |
createMarkerBehavior()
Creates the behavior extension that deals with markers. |
protected DefaultPaletteBehavior |
createPaletteBehaviour()
Creates the behavior extension that deals with the palette handling. |
protected TransferDropTargetListener |
createPaletteDropTargetListener()
Creates the drop target listener that is used for adding new objects from the palette via drag and drop. |
protected PaletteViewerProvider |
createPaletteViewerProvider()
Delegates to the method (or the method in a subclass of) #createPaletteViewerProvider() to create the
PaletteViewerProvider used inside the GEF editor. |
protected DefaultPersistencyBehavior |
createPersistencyBehavior()
Creates the behavior extension that deals with the persistence handling. |
protected DefaultRefreshBehavior |
createRefreshBehavior()
Creates the behavior extension that deals with the refresh handling. |
protected DefaultUpdateBehavior |
createUpdateBehavior()
Creates the behavior extension that deals with the update handling. |
protected void |
disableAdapters()
Should be called (e.g. |
protected void |
disposeAfterGefDispose()
The part of the dispose that should happen after the GEF dispose. |
protected void |
disposeBeforeGefDispose()
The part of the dispose that should happen before the GEF dispose. |
protected void |
editingDomainInitialized()
Hook that is called by the holder of the TransactionalEditingDomain (DefaultUpdateBehavior or a
subclass of it) after the editing domain has been initialized. |
protected void |
enableAdapters()
Should be called by the various behavior instances after mass EMF resource operations have been triggered (e.g. |
Object |
executeFeature(IFeature feature,
IContext context)
Executes the given IFeature with the given IContext in
the scope of this DiagramBehavior , meaning within its
TransactionalEditingDomain and on its
CommandStack . |
Object |
getAdapter(Class type)
Implements the Eclipse IAdaptable interface. |
protected KeyHandler |
getCommonKeyHandler()
Returns the KeyHandler with common bindings to be used for both the Outline and the Graphical Viewer. |
protected IConfigurationProvider |
getConfigurationProvider()
Returns the ConfigurationProvider for this behavior. |
EditPart |
getContentEditPart()
Returns the contents EditPart of this behavior. |
IDiagramContainerUI |
getDiagramContainer()
Returns the associated container displaying the diagram of this behavior object. |
private DiagramScrollingBehavior |
getDiagramScrollingBehavior()
Deprecated. Scroll bar based infinite canvas is a workaround for GEF limitations. |
IDiagramTypeProvider |
getDiagramTypeProvider()
Returns the IDiagramTypeProvider instance associated with this
DiagramBehavior . |
DefaultEditDomain |
getEditDomain()
Delegation method to retrieve the GEF edit domain also here. |
TransactionalEditingDomain |
getEditingDomain()
Returns the EMF TransactionalEditingDomain used within this
behavior object by delegating to the update behavior extension, by
default DefaultUpdateBehavior.getEditingDomain() . |
protected String |
getEditorInitializationError()
Returns if an error has occured while initializing this behavior and its components. |
GraphicalEditPart |
getEditPartForPictogramElement(PictogramElement pe)
Method to retrieve the GEF EditPart for a given
PictogramElement . |
private FigureCanvas |
getFigureCanvas()
|
IFigure |
getFigureForPictogramElement(PictogramElement pe)
Method to retrieve the Draw2D IFigure for a given
PictogramElement . |
private GFFigureCanvas |
getGFFigureCanvas()
|
protected IDiagramEditorInput |
getInput()
Returns the DiagramEditorInput instance used in this behavior. |
protected DefaultMarkerBehavior |
getMarkerBehavior()
Returns the instance of the marker behavior that is used with this behavior. |
Point |
getMouseLocation()
Gets the current mouse location as a Point . |
protected DefaultPaletteBehavior |
getPaletteBehavior()
Returns the instance of the palette behavior that is used with this behavior. |
protected FlyoutPreferences |
getPalettePreferences()
Delegates to the method (or the method in a subclass of) DefaultPaletteBehavior.getPalettePreferences() . |
protected PaletteRoot |
getPaletteRoot()
Returns the PaletteRoot to use in the GEF editor by delegating to
DefaultPaletteBehavior.getPaletteRoot() . |
protected IWorkbenchPart |
getParentPart()
Returns the parent IWorkbenchPart this behavior is embedded into. |
protected DefaultPersistencyBehavior |
getPersistencyBehavior()
Returns the instance of the persistency behavior that is used with this behavior. |
protected PictogramElement[] |
getPictogramElementsForSelection()
Returns the PictogramElement s that are set for later selection. |
DefaultRefreshBehavior |
getRefreshBehavior()
Returns the instance of the refresh behavior that is used with this behavior. |
ResourceSet |
getResourceSet()
The EMF ResourceSet used within this DiagramBehavior . |
PictogramElement[] |
getSelectedPictogramElements()
Returns the PictogramElement s that are currently selected in the
diagram. |
DefaultUpdateBehavior |
getUpdateBehavior()
Returns the instance of the update behavior that is used with this behavior. |
double |
getZoomLevel()
Returns the zoom level currently used in the diagram. |
protected void |
initActionRegistry(ZoomManager zoomManager)
Initializes the action registry with the predefined actions (update, remove, delete, copy, paste, zooming, direct editing, alignment and toggling actions for the diagram grip and hiding of the context button pad. |
protected void |
initDefaultBehaviors()
Hook to initialize the default sub behavior instances used by this editor behavior. |
protected void |
initializeGraphicalViewer()
Called to initialize the behavior viewer with its content. |
boolean |
isAlive()
Checks if this behavior is alive. |
boolean |
isDirectEditingActive()
Returns if direct editing is currently active for this behavior. |
protected boolean |
isDirty()
Returns the dirty state of this behavior object |
protected void |
migrateDiagramModelIfNecessary()
We provide migration from 0.8.0 to 0.9.0. |
void |
refresh()
Triggers a complete refresh of the behavior visualization (content, title, tooltip, palette and decorators) by delegating to DefaultRefreshBehavior.refresh() . |
void |
refreshContent()
Refreshes the content of the editor (what's shown inside the diagram itself). |
void |
refreshPalette()
Refreshes the palette to correctly reflect all available creation tools for the available create features and the currently enabled selection tools. |
void |
refreshRenderingDecorators(PictogramElement pe)
Refreshes the rendering decorators (image decorators and the like) by delegating to DefaultRefreshBehavior.refreshRenderingDecorators(PictogramElement)
for the given PictogramElement . |
protected void |
registerAction(IAction action)
Registers the given action with the Eclipse ActionRegistry . |
protected void |
registerBusinessObjectsListener()
Hook that is called to register listeners for changes of the business objects (domain objects) in the resource set of the editor. |
protected void |
registerDiagramResourceSetListener()
Hook to register listeners for diagram changes. |
void |
selectBufferedPictogramElements()
Triggers the selection for the PictogramElement s that are stored
for later selection. |
protected void |
selectPictogramElements(PictogramElement[] pictogramElements)
Selects the given PictogramElement s in the diagram. |
private void |
setConfigurationProvider(IConfigurationProviderInternal configurationProvider)
|
void |
setDirectEditingActive(boolean directEditingActive)
Sets that direct editing is now active in the behavior or not. |
protected void |
setInput(IDiagramEditorInput input)
Sets the given IDiagramEditorInput object as the input for this
behavior instance. |
private void |
setMouseLocation(int x,
int y)
|
protected void |
setParentPart(IWorkbenchPart parentPart)
Sets the parent IWorkbenchPart for this behavior. |
void |
setPictogramElementForSelection(PictogramElement pictogramElement)
Sets one PictogramElement for later selection. |
protected void |
setPictogramElementsForSelection(PictogramElement[] pictogramElements)
Sets PictogramElement s for later selection. |
protected boolean |
shouldRegisterContextMenu()
Allows subclasses to prevent that the diagram context menu should be registered for extensions at Eclipse. |
protected void |
unregisterBusinessObjectsListener()
Hook that is called to unregister the listeners for changes of the business objects (domain objects). |
protected void |
unregisterDiagramResourceSetListener()
Hook to unregister the listeners for diagram changes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private IDiagramContainerUI diagramContainer
private DefaultUpdateBehavior updateBehavior
private DefaultPaletteBehavior paletteBehaviour
private DefaultPersistencyBehavior persistencyBehavior
private DefaultMarkerBehavior markerBehavior
private DefaultRefreshBehavior refreshBehavior
private PictogramElement[] pictogramElementsForSelection
private IConfigurationProviderInternal configurationProvider
private Point mouseLocation
private KeyHandler keyHandler
private DiagramScrollingBehavior diagramScrollingBehavior
private boolean directEditingActive
private CommandStackEventListener gefCommandStackListener
private DiagramChangeListener diagramChangeListener
private DomainModelChangeListener domainModelListener
private IDiagramEditorInput diagramEditorInput
private String editorInitializationError
private IWorkbenchPart parentPart
private ContextMenuProvider contextMenuProvider
Constructor Detail |
---|
public DiagramBehavior(IDiagramContainerUI diagramContainer)
Method Detail |
---|
public IDiagramContainerUI getDiagramContainer()
getDiagramContainer
in interface IDiagramBehavior
IDiagramContainerUI
instance.protected DefaultMarkerBehavior createMarkerBehavior()
DefaultMarkerBehavior
for details and the default implementation.
Override to change the marker behavior.
DefaultMarkerBehavior
protected DefaultMarkerBehavior getMarkerBehavior()
createMarkerBehavior()
.
DefaultMarkerBehavior
.protected DefaultUpdateBehavior createUpdateBehavior()
DefaultUpdateBehavior
for details and the default implementation.
Override to change the update behavior.
DefaultUpdateBehavior
public DefaultUpdateBehavior getUpdateBehavior()
createUpdateBehavior()
.
DefaultUpdateBehavior
.protected DefaultPaletteBehavior createPaletteBehaviour()
DefaultPaletteBehavior
for details and the default
implementation. Override to change the palette behavior.
DefaultPaletteBehavior
protected DefaultPaletteBehavior getPaletteBehavior()
createPaletteBehaviour()
.
DefaultPaletteBehavior
.protected DefaultPersistencyBehavior createPersistencyBehavior()
DefaultPersistencyBehavior
for details and the default
implementation. Override to change the persistence behavior.
DefaultPersistencyBehavior
protected DefaultPersistencyBehavior getPersistencyBehavior()
createPersistencyBehavior()
.
DefaultPersistencyBehavior
.protected DefaultRefreshBehavior createRefreshBehavior()
DefaultRefreshBehavior
for details and the default
implementation. Override to change the refresh behavior.
DefaultRefreshBehavior
public DefaultRefreshBehavior getRefreshBehavior()
createRefreshBehavior()
.
DefaultRefreshBehavior
.protected void initDefaultBehaviors()
createMarkerBehavior()
,
createUpdateBehavior()
,
createPaletteBehaviour()
,
createPersistencyBehavior()
,
createRefreshBehavior()
protected void setInput(IDiagramEditorInput input)
IDiagramEditorInput
object as the input for this
behavior instance. The default implementation here cares about loading
the diagram from the EMF Resource
the input points to, sets the
ID of the IDiagramTypeProvider
for the diagram given in the
input, registers listeners (by delegating to
registerDiagramResourceSetListener()
and
registerBusinessObjectsListener()
) and does the refreshing of
the UI.
input
- the DiagramEditorInput
instance to use within this
behavior.protected void addGefListeners()
protected void createGraphicalViewer(Composite parent)
Composite
and
initializes it.
parent
- the parent compositeprotected void configureGraphicalViewer()
IConfigurationProvider
.
org.eclipse.gef.ui.parts.GraphicalEditor#configureGraphicalViewer()
protected void initializeGraphicalViewer()
IConfigurationProvider
.
org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette#initializeGraphicalViewer()
protected TransferDropTargetListener createPaletteDropTargetListener()
TransferDropTargetListener
that
handles dropping new objects from the palette or
null
to disable dropping from the palette.protected List<TransferDropTargetListener> createBusinessObjectDropTargetListeners()
List
containing all the
TransferDropTargetListener
that shall be registered in
the editor.protected String getEditorInitializationError()
true
and error UI
may be shown instead of the normal diagram viewer.
true
in case an error has occured,
false
otherwiseprotected void createErrorPartControl(Composite parent)
parent
- The parent Composite
to add the UI toprotected boolean isDirty()
true
in case the stored saved command is different
from the next undo command.protected final PaletteViewerProvider createPaletteViewerProvider()
#createPaletteViewerProvider()
to create the
PaletteViewerProvider
used inside the GEF editor.
PaletteViewerProvider
to useprotected final FlyoutPreferences getPalettePreferences()
DefaultPaletteBehavior.getPalettePreferences()
. To change the
palette override the behavior there.
PaletteViewerProvider
preferences to use.protected final PaletteRoot getPaletteRoot()
PaletteRoot
to use in the GEF editor by delegating to
DefaultPaletteBehavior.getPaletteRoot()
.
PaletteRoot
to usepublic void refresh()
DefaultRefreshBehavior.refresh()
.
refresh
in interface IDiagramBehavior
public void refreshRenderingDecorators(PictogramElement pe)
DefaultRefreshBehavior.refreshRenderingDecorators(PictogramElement)
for the given PictogramElement
.
refreshRenderingDecorators
in interface IDiagramBehavior
pe
- the PictogramElement
for which the decorators shall be
refreshed.public void refreshPalette()
refreshPalette
in interface IDiagramBehavior
public void refreshContent()
refreshContent
in interface IDiagramBehavior
protected void selectPictogramElements(PictogramElement[] pictogramElements)
PictogramElement
s in the diagram.
pictogramElements
- an array of PictogramElement
s to select.public PictogramElement[] getSelectedPictogramElements()
PictogramElement
s that are currently selected in the
diagram.
PictogramElement
s.public void setPictogramElementForSelection(PictogramElement pictogramElement)
PictogramElement
for later selection.
The methods getPictogramElementsForSelection()
,
setPictogramElementForSelection(PictogramElement)
,
setPictogramElementsForSelection(PictogramElement[])
and
selectBufferedPictogramElements()
offer the possibility to use a
deferred selection mechanism: via the setters, PictogramElement
s
can be stored for a selection operation that is triggered lateron during
a general refresh via the method
selectBufferedPictogramElements()
. This mechanism is used e.g.
in the Graphiti framework in direct editing to restore the previous
selection, but can also be used by clients.
pictogramElement
- the PictogramElement
that shall be stored for later
selectionprotected void setPictogramElementsForSelection(PictogramElement[] pictogramElements)
PictogramElement
s for later selection.
The methods getPictogramElementsForSelection()
,
setPictogramElementForSelection(PictogramElement)
,
setPictogramElementsForSelection(PictogramElement[])
and
selectBufferedPictogramElements()
offer the possibility to use a
deferred selection mechanism: via the setters, PictogramElement
s
can be stored for a selection operation that is triggered later on during
a general refresh via the method
selectBufferedPictogramElements()
. This mechanism is used e.g.
in the Graphiti framework in direct editing to restore the previous
selection, but can also be used by clients.
pictogramElements
- the PictogramElement
s that shall be stored for later
selectionpublic void selectBufferedPictogramElements()
PictogramElement
s that are stored
for later selection. Can be called e.g during a general refresh of the
editor or after another operation needing another selection is finished
(an example in the framework is direct editing).
The methods getPictogramElementsForSelection()
,
setPictogramElementForSelection(PictogramElement)
,
setPictogramElementsForSelection(PictogramElement[])
and
selectBufferedPictogramElements()
offer the possibility to use a
deferred selection mechanism: via the setters, PictogramElement
s
can be stored for a selection operation that is triggered later on during
a general refresh via the method
selectBufferedPictogramElements()
. This mechanism is used e.g.
in the Graphiti framework in direct editing to restore the previous
selection, but can also be used by clients.
protected PictogramElement[] getPictogramElementsForSelection()
PictogramElement
s that are set for later selection.
The methods getPictogramElementsForSelection()
,
setPictogramElementForSelection(PictogramElement)
,
setPictogramElementsForSelection(PictogramElement[])
and
selectBufferedPictogramElements()
offer the possibility to use a
deferred selection mechanism: via the setters, PictogramElement
s
can be stored for a selection operation that is triggered lateron during
a general refresh via the method
selectBufferedPictogramElements()
. This mechanism is used e.g.
in the Graphiti framework in direct editing to restore the previous
selection, but can also be used by clients.
PictogramElement
s stored for later selectionpublic TransactionalEditingDomain getEditingDomain()
TransactionalEditingDomain
used within this
behavior object by delegating to the update behavior extension, by
default DefaultUpdateBehavior.getEditingDomain()
.
getEditingDomain
in interface IDiagramBehavior
TransactionalEditingDomain
instance used in the
behaviorpublic ResourceSet getResourceSet()
ResourceSet
used within this DiagramBehavior
. The
resource set is always associated in a 1:1 relation to the
TransactionalEditingDomain
.
public IDiagramTypeProvider getDiagramTypeProvider()
IDiagramTypeProvider
instance associated with this
DiagramBehavior
. There is always a 1:1 relation between the
behavior and the provider.
IDiagramTypeProvider
instance.public Object executeFeature(IFeature feature, IContext context)
IFeature
with the given IContext
in
the scope of this DiagramBehavior
, meaning within its
TransactionalEditingDomain
and on its
CommandStack
.
executeFeature
in interface IDiagramBehavior
feature
- the feature to executecontext
- the context to use. In case the passed feature is a
IAddFeature
this context needs to be an instance of
IAddContext
, otherwise an
AssertionFailedException
will be thrown.
IAddFeature
being passed as feature the
newly added PictogramElement
will be returned (in case
the add method returning it), in all other cases
null
protected void disableAdapters()
enableAdapters()
as well.enableAdapters()
after the operation has finished (best in a
finally clause to do that also in case of exceptions), otherwise strange
errors may happen.
protected void enableAdapters()
disableAdapters()
as well.disableAdapters()
has been called and the
operation has finshed (best in a finally clause to also enable the
exception case), otherwise strange errors may occur within the editor.
public boolean isAlive()
true
, if editor contains a model connector and a
valid Diagram, false
otherwise.protected void editingDomainInitialized()
TransactionalEditingDomain
(DefaultUpdateBehavior
or a
subclass of it) after the editing domain has been initialized. Can be
used to e.g. register additional listeners on the domain.
public Object getAdapter(Class type)
IAdaptable
interface. This implementation
first delegates to the IToolBehaviorProvider.getAdapter(Class)
method and checks if something is returned. In case the return value is
null
it returns adapters for ZoomManager,
IPropertySheetPage, Diagram, KeyHandler, SelectionSynchronizer and
IContextButtonManager. It also delegates to the super implementation in
GraphicalEditorWithFlyoutPalette#getAdapter(Class)
.
type
- the type to which shall be adapted
protected IConfigurationProvider getConfigurationProvider()
ConfigurationProvider
for this behavior. It is mainly
a wrapper around varius objects that are connected to the diagram
behavior.
IConfigurationProvider
instance.public EditPart getContentEditPart()
EditPart
of this behavior. This is the
topmost EditPart in the GraphicalViewer
.
EditPart
of this behavior.public GraphicalEditPart getEditPartForPictogramElement(PictogramElement pe)
EditPart
for a given
PictogramElement
.
getEditPartForPictogramElement
in interface IDiagramBehaviorUI
pe
- the PictogramElement
to retrieve the GEF
representation for
GraphicalEditPart
that represents the given
PictogramElement
.public Point getMouseLocation()
Point
.
public Point calculateRealMouseLocation(Point nativeLocation)
calculateRealMouseLocation
in interface IDiagramBehaviorUI
nativeLocation
- the native location given as Point
Point
of the real mouse locationpublic boolean isDirectEditingActive()
true
in case direct editing is currently active
within this editor, false
otherwise.public void setDirectEditingActive(boolean directEditingActive)
true
does not actually start direct editing
it is simply an indication that prevents certain operations from running
(e.g. refresh)
directEditingActive
- true
to set the flag to direct editing currently
active, false
otherwise.public double getZoomLevel()
public IFigure getFigureForPictogramElement(PictogramElement pe)
IFigure
for a given
PictogramElement
.
getFigureForPictogramElement
in interface IDiagramBehaviorUI
pe
- the PictogramElement
to retrieve the Draw2D
representation for
IFigure
that represents the given
PictogramElement
.private void setConfigurationProvider(IConfigurationProviderInternal configurationProvider)
private void setMouseLocation(int x, int y)
protected ContextMenuProvider createContextMenuProvider()
ContextMenuProvider
. Clients can return null, if no
context-menu shall be displayed.
ContextMenuProvider
.protected boolean shouldRegisterContextMenu()
true
). By returning false
any extension of the
context menu can be prevented.
For details see Bugzilla 345347 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=345347).
true
in case extensions shall be allowed (default),
false
otherwise.protected void registerAction(IAction action)
ActionRegistry
.
action
- the action to registerprotected void initActionRegistry(ZoomManager zoomManager)
zoomManager
- the GEF zoom manager to useprotected KeyHandler getCommonKeyHandler()
@Deprecated private DiagramScrollingBehavior getDiagramScrollingBehavior()
DefaultToolBehaviorProvider.getDiagramScrollingBehavior()
private FigureCanvas getFigureCanvas()
private GFFigureCanvas getGFFigureCanvas()
protected void unregisterDiagramResourceSetListener()
registerDiagramResourceSetListener()
protected void unregisterBusinessObjectsListener()
registerBusinessObjectsListener()
protected void registerDiagramResourceSetListener()
unregisterDiagramResourceSetListener()
.
protected void registerBusinessObjectsListener()
DomainModelChangeListener
.unregisterBusinessObjectsListener()
.
protected IDiagramEditorInput getInput()
DiagramEditorInput
instance used in this behavior.
IDiagramEditorInput
instance.protected void disposeBeforeGefDispose()
DiagramBehavior
instance and frees all used
resources and clears all references. Also delegates to all the behavior
extensions to also free their resources (e.g. and most important is the
TransactionalEditingDomain
held by the
DefaultPersistencyBehavior
. Always delegate to
super.dispose()
in case you override this method!
protected void disposeAfterGefDispose()
super.dispose()
in case you override this method!
protected void migrateDiagramModelIfNecessary()
public DefaultEditDomain getEditDomain()
getEditDomain
in interface IDiagramBehaviorUI
GraphicalEditor#getEditDomain()
protected void setParentPart(IWorkbenchPart parentPart)
IWorkbenchPart
for this behavior. Can be used to
embed this behavior in various UIs.
parentPart
- protected IWorkbenchPart getParentPart()
IWorkbenchPart
this behavior is embedded into.
May be null
in case the behavior is embedded in a non part
UI, like a popup.
IWorkbenchPart
or null
in case it
does not exist
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |