Class AbstractEditPartViewer
- All Implemented Interfaces:
- EditPartViewer,- ISelectionProvider
- Direct Known Subclasses:
- GraphicalViewerImpl,- TreeViewer
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.eclipse.gef.EditPartViewerEditPartViewer.Conditional
- 
Field SummaryFieldsModifier and TypeFieldDescriptionThe unmodifiable list of selected editparts.protected EditPartDeprecated.The raw list of selected editparts.protected List<ISelectionChangedListener> Deprecated.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidDeprecated, for removal: This API element is subject to removal in a future version.voidAdds aTransferDragSourceListenerto this viewer.voidDeprecated, for removal: This API element is subject to removal in a future version.UseaddDropTargetListener(TransferDropTargetListener)instead.voidAdds aTransferDropTargetListenerto this viewer.voidAdds a listener to be notified of viewer property changes.voidvoidappendSelection(EditPart editpart) Appends the specifiedEditPartto the viewer's selection.abstract ControlcreateControl(Composite parent) Optionally creates the defaultControlusing the default style.voidRemoves the specifiedEditPartfrom the current selection.voidDeselects all EditParts.final EditPartfindObjectAt(Point pt) Returnsnullor theEditPartassociated with the specified location.final EditPartfindObjectAtExcluding(Point pt, Collection<IFigure> exclude) Returnsnullor theEditPartat the specified location, excluding the specified set.protected voidFires selection changed to the registered listeners at the time called.voidflush()Flushes all pending updates to the Viewer.Returns the contents of this Viewer.Returnsnullor the MenuManager for this viewer.Returnsnullor the SWTControlfor this viewer.protected DelegatingDragAdapterReturnsnullor the DelegatingDragAdapater.protected DelegatingDropAdapterReturnsnullor the DelegatingDropAdapater.protected DragSourceReturnsnullor the DragSource.protected DropTargetReturnsnullor the DropTarget.Returns theEditDomainto which this viewer belongs.Returns theEditPartFactoryfor this viewer.final EditPartgetEditPartForModel(Object model) Convenience method to look up an edit part for a given model element in the EditPart registry.Returns theMapfor registeringEditPartsby Keys.Returns the focusEditPart.Returns theKeyHandlerfor this viewer.getProperty(String key) Returns the value of the given property.Returnsnull, or the ResourceManager for this Viewer.Returns theRootEditPart.Returns an unmodifiableListcontaining zero or more selected editparts.Returns an ISelection containing a list of one or more EditPart.Returns the viewer's selection manager.Returns theMapfor associating visual parts with theirEditParts.protected voidCalled if and when theControlis disposed.protected voidCalled once the control has been set.protected voidCalled whenever thedrag sourceis automatically created.protected voidCalled whenever thedrop targetis automatically created.protected voidinit()Called from the constructor.Returns the modifiable List of selected EditParts.protected voidCreates or disposes a DragSource as needed, and sets the supported transfer types.protected voidCreates or disposes a DropTarget as needed, and sets the supported transfer types.voidUsed for accessibility purposes.voidDeprecated, for removal: This API element is subject to removal in a future version.UseremoveDragSourceListener(TransferDragSourceListener)instead.voidRemoves the specified drag source listener.voidDeprecated, for removal: This API element is subject to removal in a future version.UseremoveDropTargetListener(TransferDropTargetListener)instead.voidRemoves the specified drop target listener.voidremoves the first instance of the specified property listener.voidvoidReveals the given EditPart if it is not visible.voidReplaces the current selection with the specifiedEditPart.voidsetContents(Object contents) Creates anEditPartfor the provided model object using theEditPartFactory.voidsetContents(EditPart editpart) Sets the contents for this Viewer.voidsetContextMenu(MenuManager manager) Sets the contextMenuManagerfor this viewer.voidsetControl(Control control) Sets theControlfor this viewer.voidSets the cursor for the viewer'sControl.protected voidsetDragSource(DragSource source) Sets the drag source.protected voidsetDropTarget(DropTarget target) Sets the drop target.voidsetEditDomain(EditDomain editdomain) Sets theEditDomainfor this viewer.voidsetEditPartFactory(EditPartFactory factory) Sets the EditPartFactory.voidSets the focus EditPart.voidsetKeyHandler(KeyHandler handler) Sets theKeyHandler.voidsetProperty(String key, Object value) Sets a property on this viewer.voidsetRootEditPart(RootEditPart editpart) Sets the root of this viewer.voidsetRouteEventsToEditDomain(boolean value) Turns on/off the routing of events directly to the Editor.voidsetSelection(ISelection newSelection) Sets the selection to the given selection and fires selection changed.voidSets the selection manager for this viewer.protected voidCalled when the control is being set tonull, but before it is null.voidDoes nothing by default.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.gef.EditPartViewerfindObjectAtExcluding
- 
Field Details- 
selectionThe raw list of selected editparts.
- 
constantSelectionThe unmodifiable list of selected editparts.
- 
selectionListenersDeprecated.The list of selection listeners.
- 
focusPartDeprecated.The editpart specifically set to have focus. Note that if this value isnull, the focus editpart is still implied to be the part with primary selection. Subclasses should call the accessor:getFocusEditPart()whenever possible.
 
- 
- 
Constructor Details- 
AbstractEditPartViewerpublic AbstractEditPartViewer()Constructs the viewer and callsinit().
 
- 
- 
Method Details- 
setSelectionManagerDescription copied from interface:EditPartViewerSets the selection manager for this viewer.- Specified by:
- setSelectionManagerin interface- EditPartViewer
- Parameters:
- model- the new selection manager
- See Also:
 
- 
addDragSourceListener@Deprecated(since="3.21", forRemoval=true) public void addDragSourceListener(TransferDragSourceListener listener) Deprecated, for removal: This API element is subject to removal in a future version.UseaddDragSourceListener(TransferDragSourceListener)instead. This method will be removed after the 2027-03 release.Description copied from interface:EditPartViewerProvided for compatibility with existing code.- Specified by:
- addDragSourceListenerin interface- EditPartViewer
- Parameters:
- listener- a drag source listener
- See Also:
 
- 
addDragSourceListenerDescription copied from interface:EditPartViewerAdds aTransferDragSourceListenerto this viewer. This has the side-effect of creating aDragSourceon the viewer's Control. A Control can only have a single DragSource. Clients must not create their own DragSource when using this method.- Specified by:
- addDragSourceListenerin interface- EditPartViewer
- Parameters:
- listener- the listener
- See Also:
 
- 
addDropTargetListener@Deprecated(since="3.21", forRemoval=true) public void addDropTargetListener(TransferDropTargetListener listener) Deprecated, for removal: This API element is subject to removal in a future version.UseaddDropTargetListener(TransferDropTargetListener)instead. This method will be removed after the 2027-03 release.Description copied from interface:EditPartViewerProvided for compatibility with existing code.- Specified by:
- addDropTargetListenerin interface- EditPartViewer
- Parameters:
- listener- the listener
- See Also:
 
- 
addDropTargetListenerDescription copied from interface:EditPartViewerAdds aTransferDropTargetListenerto this viewer. This has the side-effect of creating aDropTargeton the viewer's Control. A Control can only have a single DropTarget. Clients must not create their own DropTarget when using this method.- Specified by:
- addDropTargetListenerin interface- EditPartViewer
- Parameters:
- listener- the listener
- See Also:
 
- 
addPropertyChangeListenerDescription copied from interface:EditPartViewerAdds a listener to be notified of viewer property changes.- Specified by:
- addPropertyChangeListenerin interface- EditPartViewer
- Parameters:
- listener- the listener
- See Also:
 
- 
addSelectionChangedListener- Specified by:
- addSelectionChangedListenerin interface- ISelectionProvider
- See Also:
 
- 
appendSelectionDescription copied from interface:EditPartViewerAppends the specifiedEditPartto the viewer's selection. The EditPart becomes the new primary selection. Fires selection changed to allISelectionChangedListeners.- Specified by:
- appendSelectionin interface- EditPartViewer
- Parameters:
- editpart- the EditPart to append
- See Also:
 
- 
createControlDescription copied from interface:EditPartViewerOptionally creates the defaultControlusing the default style. The Control can also be created externally and then set into the Viewer.- Specified by:
- createControlin interface- EditPartViewer
- Parameters:
- parent- the parent in which create the SWT- Control
- Returns:
- the created Control for convenience
- See Also:
 
- 
deselectDescription copied from interface:EditPartViewerRemoves the specifiedEditPartfrom the current selection. If the selection becomes empty, the viewer'scontentsbecomes the current selected part. The last EditPart in the new selection is madeprimary.Fires selection changed to ISelectionChangedListeners.- Specified by:
- deselectin interface- EditPartViewer
- Parameters:
- editpart- the- EditPartto deselect
- See Also:
 
- 
deselectAllpublic void deselectAll()Description copied from interface:EditPartViewerDeselects all EditParts. The viewer'scontentsbecomes the current selection. Fires selection changed toISelectionChangedListeners.- Specified by:
- deselectAllin interface- EditPartViewer
- See Also:
 
- 
handleDisposeCalled if and when theControlis disposed. Subclasses may extend this method to perform additional cleanup.- Parameters:
- e- the disposeevent
 
- 
findObjectAtDescription copied from interface:EditPartViewerReturnsnullor theEditPartassociated with the specified location. The location is relative to the client area of the Viewer'sControl. An EditPart is not directly visible. It is targeted using its visual part which it registered using thevisual part map. What constitutes a visual part is viewer-specific. Examples include Figures and TreeItems.- Specified by:
- findObjectAtin interface- EditPartViewer
- Parameters:
- pt- The location
- Returns:
- nullor an EditPart
- See Also:
 
- 
findObjectAtExcludingDescription copied from interface:EditPartViewerReturnsnullor theEditPartat the specified location, excluding the specified set. This method behaves similarly toEditPartViewer.findObjectAt(Point).- Specified by:
- findObjectAtExcludingin interface- EditPartViewer
- Parameters:
- pt- The mouse location
- exclude- The set of IFigures to be excluded
- Returns:
- nullor an EditPart
- See Also:
 
- 
fireSelectionChangedprotected void fireSelectionChanged()Fires selection changed to the registered listeners at the time called.
- 
flushpublic void flush()Description copied from interface:EditPartViewerFlushes all pending updates to the Viewer.- Specified by:
- flushin interface- EditPartViewer
- See Also:
 
- 
getContextMenuDescription copied from interface:EditPartViewerReturnsnullor the MenuManager for this viewer. The menu manager is set usingEditPartViewer.setContextMenu(MenuManager).- Specified by:
- getContextMenuin interface- EditPartViewer
- Returns:
- nullor a MenuManager
- See Also:
 
- 
getContentsDescription copied from interface:EditPartViewerReturns the contents of this Viewer. The contents is the EditPart associated with the top-level model object. It is considered to be "The Diagram". If the user has nothing selected, the contents is implicitly the selected object.The Root of the Viewer is different. By constrast, the root is never selected or targeted, and does not correspond to something in the model. - Specified by:
- getContentsin interface- EditPartViewer
- Returns:
- the contents EditPart
- See Also:
 
- 
getControlDescription copied from interface:EditPartViewerReturnsnullor the SWTControlfor this viewer. The control is either set explicitly or can be created by the viewer.- Specified by:
- getControlin interface- EditPartViewer
- Returns:
- the SWT Control
- See Also:
 
- 
getDelegatingDragAdapterReturnsnullor the DelegatingDragAdapater. The adapter is created automatically whenaddDragSourceListener(TransferDragSourceListener)is called.- Returns:
- nullor the adapter
 
- 
getDelegatingDropAdapterReturnsnullor the DelegatingDropAdapater. The adapter is created automatically whenaddDropTargetListener(TransferDropTargetListener)is called.- Returns:
- nullor the adapter
 
- 
getDragSourceReturnsnullor the DragSource. The drag source is created automatically whenaddDragSourceListener(TransferDragSourceListener)is called.- Returns:
- nullor the drag source
 
- 
getDropTargetReturnsnullor the DropTarget. The drop target is created automatically whenaddDropTargetListener(TransferDropTargetListener)is called.- Returns:
- nullor the drop target
 
- 
getEditDomainDescription copied from interface:EditPartViewerReturns theEditDomainto which this viewer belongs.- Specified by:
- getEditDomainin interface- EditPartViewer
- Returns:
- the viewer's EditDomain
- See Also:
 
- 
getEditPartFactoryDescription copied from interface:EditPartViewerReturns theEditPartFactoryfor this viewer. The EditPartFactory is used to create the contents EditPart whenEditPartViewer.setContents(Object)is called. It is made available so that other EditParts can use it to create their children or connection editparts.- Specified by:
- getEditPartFactoryin interface- EditPartViewer
- Returns:
- EditPartFactory
- See Also:
 
- 
getEditPartRegistryDescription copied from interface:EditPartViewerReturns theMapfor registeringEditPartsby Keys. EditParts may register themselves using any method, and may register themselves with multiple keys. The purpose of such registration is to allow an EditPart to be found by other EditParts, or by listeners of domain notifiers. By default, EditParts are registered by their model.Some models use a "domain" notification system, in which all changes are dispatched to a single listener. Such a listener might use this map to lookup editparts for a given model, and then ask the editpart to update. - Specified by:
- getEditPartRegistryin interface- EditPartViewer
- Returns:
- the registry map
- See Also:
 
- 
getEditPartForModelDescription copied from interface:EditPartViewerConvenience method to look up an edit part for a given model element in the EditPart registry. See alsoEditPartViewer.getEditPartRegistry()for details on the EditPart registry.- Specified by:
- getEditPartForModelin interface- EditPartViewer
- Parameters:
- model- the model object for which an EditPart is looked up
- Returns:
- the edit part or null if for the given model no EditPart is registered
- See Also:
 
- 
getFocusEditPartDescription copied from interface:EditPartViewerReturns the focusEditPart. Focus refers to keyboard focus. This is the same concept as focus in a native Tree or Table. The User can change focus using the keyboard without affecting the currently selected objects. Never returnsnull.- Specified by:
- getFocusEditPartin interface- EditPartViewer
- Returns:
- the focus EditPart
- See Also:
 
- 
getKeyHandlerDescription copied from interface:EditPartViewerReturns theKeyHandlerfor this viewer. The KeyHandler is sent KeyEvents by the currently activeTool. This is important, because only the current tool knows if it is in a state in which keys should be ignored, such as during a drag. By default, only theSelectionToolforwards keysrokes. It does not do so during a drag.- Specified by:
- getKeyHandlerin interface- EditPartViewer
- Returns:
- nullor a KeyHandler
- See Also:
 
- 
getPropertyDescription copied from interface:EditPartViewerReturns the value of the given property. Returnsnullif the property has not been set, or has been set to null.- Specified by:
- getPropertyin interface- EditPartViewer
- Parameters:
- key- the property's key
- Returns:
- the given properties value or null.
- See Also:
 
- 
getResourceManagerDescription copied from interface:EditPartViewerReturnsnull, or the ResourceManager for this Viewer. Once a viewer has a Control, clients may access the viewer's resource manager. Any resources constructed using this manager, but not freed, will be freed when the viewer's control is disposed. This does not mean that clients should be lazy about deallocating resources. If a resource is no longer needed but the viewer is still in use, the client must deallocate the resource.Typical usage is by EditParts contained inside the viewer. EditParts which are removed from the viewer should free their resources during EditPart.removeNotify(). When the viewer is disposed,removeNotify()is not called, but the viewer's resource manager will be disposed anyway.The viewer's default resource manager is linked to JFace's global shared resources.- Specified by:
- getResourceManagerin interface- EditPartViewer
- Returns:
- the ResourceManager associated with this viewer
- See Also:
 
- 
getRootEditPartDescription copied from interface:EditPartViewerReturns theRootEditPart. The RootEditPart is a special EditPart that serves as the parent to the contents editpart. The root is never selected. The root does not correspond to anything in the model. The User does not interact with the root.The RootEditPart has a single child: the contents.By defining the concept of "root", GEF allows the application's "real" EditParts to be more homogeneous. For example, all non-root EditParts have a parent. Also, it allows applications to change the type of root being used without affecting their own editpart implementation hierarchy. - Specified by:
- getRootEditPartin interface- EditPartViewer
- Returns:
- the RootEditPart
- See Also:
 
- 
getSelectedEditPartsDescription copied from interface:EditPartViewerReturns an unmodifiableListcontaining zero or more selected editparts. This list may be empty. In contrast, the inherited methodISelectionProvider.getSelection()should not return an empty selection. When no editparts are selected, generally the contents editpart is considered to be selected. This list can be modified indirectly by calling other methods on the viewer.- Specified by:
- getSelectedEditPartsin interface- EditPartViewer
- Returns:
- a list containing zero or more editparts
- See Also:
 
- 
getSelectionReturns an ISelection containing a list of one or more EditPart. WhenevergetSelectedEditParts()returns an empty list, the contents editpart (getContents()) is returned as the current selection.- Specified by:
- getSelectionin interface- EditPartViewer
- Specified by:
- getSelectionin interface- ISelectionProvider
- See Also:
 
- 
getSelectionManagerDescription copied from interface:EditPartViewerReturns the viewer's selection manager. The selection manager has complete control over the viewer's representation of selection. It provides theISelectionfor the viewer, and manages all changes to the current selection.- Specified by:
- getSelectionManagerin interface- EditPartViewer
- Returns:
- the selection manager
- See Also:
 
- 
getVisualPartMapDescription copied from interface:EditPartViewerReturns theMapfor associating visual parts with theirEditParts. This map is used for hit-testing. Hit testing is performed by first determining which visual part is hit, and then mapping that part to anEditPart. What constitutes a visual part is viewer-specific. Examples includeFiguresandTreeItems.- Specified by:
- getVisualPartMapin interface- EditPartViewer
- Returns:
- the visual part map
- See Also:
 
- 
hookControlprotected void hookControl()Called once the control has been set.- See Also:
 
- 
hookDragSourceprotected void hookDragSource()Called whenever thedrag sourceis automatically created.
- 
hookDropTargetprotected void hookDropTarget()Called whenever thedrop targetis automatically created.
- 
initprotected void init()Called from the constructor. Subclasses may extend this method.
- 
primGetSelectedEditPartsReturns the modifiable List of selected EditParts.- Returns:
- the internal list of selected editparts
 
- 
refreshDragSourceAdapterprotected void refreshDragSourceAdapter()Creates or disposes a DragSource as needed, and sets the supported transfer types. Clients should not need to call or override this method.
- 
refreshDropTargetAdapterprotected void refreshDropTargetAdapter()Creates or disposes a DropTarget as needed, and sets the supported transfer types. Clients should not need to call or override this method.
- 
registerAccessibleEditPartDescription copied from interface:EditPartViewerUsed for accessibility purposes.- Specified by:
- registerAccessibleEditPartin interface- EditPartViewer
- Parameters:
- acc- the AccessibleEditPart
- See Also:
 
- 
removeDragSourceListener@Deprecated(since="3.0", forRemoval=true) public void removeDragSourceListener(TransferDragSourceListener listener) Deprecated, for removal: This API element is subject to removal in a future version.UseremoveDragSourceListener(TransferDragSourceListener)instead. This method will be removed after the 2027-03 release.Description copied from interface:EditPartViewerRemoves the specified drag source listener. If all listeners are removed, the DragSource that was created will be disposed.- Specified by:
- removeDragSourceListenerin interface- EditPartViewer
- Parameters:
- listener- the listener
- See Also:
 
- 
removeDragSourceListenerDescription copied from interface:EditPartViewerRemoves the specified drag source listener. If all listeners are removed, the DragSource that was created will be disposed.- Specified by:
- removeDragSourceListenerin interface- EditPartViewer
- Parameters:
- listener- the listener
- See Also:
 
- 
removeDropTargetListener@Deprecated(since="3.0", forRemoval=true) public void removeDropTargetListener(TransferDropTargetListener listener) Deprecated, for removal: This API element is subject to removal in a future version.UseremoveDropTargetListener(TransferDropTargetListener)instead. This method will be removed after the 2027-03 release.Description copied from interface:EditPartViewerRemoves the specified drop target listener. If all listeners are removed, the DropTarget that was created will be disposed.- Specified by:
- removeDropTargetListenerin interface- EditPartViewer
- Parameters:
- listener-
- See Also:
 
- 
removeDropTargetListenerDescription copied from interface:EditPartViewerRemoves the specified drop target listener. If all listeners are removed, the DropTarget that was created will be disposed.- Specified by:
- removeDropTargetListenerin interface- EditPartViewer
- Parameters:
- listener- the listener
- See Also:
 
- 
removePropertyChangeListenerDescription copied from interface:EditPartViewerremoves the first instance of the specified property listener.- Specified by:
- removePropertyChangeListenerin interface- EditPartViewer
- Parameters:
- listener- the listener to remove
- See Also:
 
- 
removeSelectionChangedListener- Specified by:
- removeSelectionChangedListenerin interface- ISelectionProvider
- See Also:
 
- 
revealDescription copied from interface:EditPartViewerReveals the given EditPart if it is not visible.- Specified by:
- revealin interface- EditPartViewer
- Parameters:
- part- the EditPart to reveal
- See Also:
 
- 
selectDescription copied from interface:EditPartViewerReplaces the current selection with the specifiedEditPart. That part becomes the primary selection. Fires selection changed toISelectionChangedListeners.- Specified by:
- selectin interface- EditPartViewer
- Parameters:
- editpart- the new selection
- See Also:
 
- 
setContextMenuDescription copied from interface:EditPartViewerSets the contextMenuManagerfor this viewer. The MenuManager will be asked to create a Menu, which will be used as the context menu for this viewer's Control.- Specified by:
- setContextMenuin interface- EditPartViewer
- Parameters:
- manager- the- ContextMenuProvider
- See Also:
 
- 
setContentsDescription copied from interface:EditPartViewerSets the contents for this Viewer. The contents can also be set usingEditPartViewer.setContents(Object).- Specified by:
- setContentsin interface- EditPartViewer
- Parameters:
- editpart- the contents
- See Also:
 
- 
setContentsDescription copied from interface:EditPartViewerCreates anEditPartfor the provided model object using theEditPartFactory. That EditPart is then added to theRootEditPart, and becomes the viewer's contents editpart.- Specified by:
- setContentsin interface- EditPartViewer
- Parameters:
- contents- the contents model object
- See Also:
 
- 
setControlDescription copied from interface:EditPartViewerSets theControlfor this viewer. The viewer's control is also set automatically ifEditPartViewer.createControl(Composite)is called.- Specified by:
- setControlin interface- EditPartViewer
- Parameters:
- control- the Control
- See Also:
 
- 
setCursorDescription copied from interface:EditPartViewerSets the cursor for the viewer'sControl. This method should only be called byTools.nullcan be used to indicate that the default cursor should be restored.- Specified by:
- setCursorin interface- EditPartViewer
- Parameters:
- cursor-- nullor a Cursor
- See Also:
 
- 
setDragSourceSets the drag source. Called fromrefreshDragSourceAdapter().- Parameters:
- source-- nullor a drag source
 
- 
setDropTargetSets the drop target. Called fromrefreshDropTargetAdapter().- Parameters:
- target- dropTarget- nullor a drop target
 
- 
setEditDomainDescription copied from interface:EditPartViewerSets theEditDomainfor this viewer. The Viewer will route all mouse and keyboard events to the EditDomain.- Specified by:
- setEditDomainin interface- EditPartViewer
- Parameters:
- editdomain- The EditDomain
- See Also:
 
- 
setEditPartFactoryDescription copied from interface:EditPartViewerSets the EditPartFactory.- Specified by:
- setEditPartFactoryin interface- EditPartViewer
- Parameters:
- factory- the factory
- See Also:
 
- 
setFocusDescription copied from interface:EditPartViewerSets the focus EditPart.- Specified by:
- setFocusin interface- EditPartViewer
- Parameters:
- part- the FocusPart.
- See Also:
 
- 
setKeyHandlerDescription copied from interface:EditPartViewerSets theKeyHandler.- Specified by:
- setKeyHandlerin interface- EditPartViewer
- Parameters:
- handler- the KeyHandler
- See Also:
 
- 
setPropertyDescription copied from interface:EditPartViewerSets a property on this viewer. A viewer property is an arbitrary key-value pair that can be observed viaEditPartViewer.addPropertyChangeListener(PropertyChangeListener). Anullvalue will remove the property from the viewer.- Specified by:
- setPropertyin interface- EditPartViewer
- Parameters:
- key- a unique string identifying the property
- value- the properties new value or- nullto remove
- See Also:
 
- 
setRootEditPartDescription copied from interface:EditPartViewerSets the root of this viewer. The root should not be confused with the contents.- Specified by:
- setRootEditPartin interface- EditPartViewer
- Parameters:
- editpart- the RootEditPart
- See Also:
 
- 
setRouteEventsToEditDomainpublic void setRouteEventsToEditDomain(boolean value) Description copied from interface:EditPartViewerTurns on/off the routing of events directly to the Editor. If supported by the viewer implementation, all Events should be routed to theEditDomainrather than handled in the default way.- Specified by:
- setRouteEventsToEditDomainin interface- EditPartViewer
- Parameters:
- value- true if the viewer should route events to the EditDomain
- See Also:
 
- 
setSelectionSets the selection to the given selection and fires selection changed. The ISelection should be anIStructuredSelectionor it will be ignored.- Specified by:
- setSelectionin interface- ISelectionProvider
- See Also:
 
- 
unhookControlprotected void unhookControl()Called when the control is being set tonull, but before it is null.
- 
unregisterAccessibleEditPartDoes nothing by default. Subclasses needing to add accessibility support should override this method.- Specified by:
- unregisterAccessibleEditPartin interface- EditPartViewer
- Parameters:
- acc- the accessible part
- See Also:
 
 
- 
addDragSourceListener(TransferDragSourceListener)instead.