Class PatchedScrollingGraphicalViewer

java.lang.Object
org.eclipse.gef.ui.parts.AbstractEditPartViewer
org.eclipse.gef.ui.parts.GraphicalViewerImpl
org.eclipse.gef.ui.parts.ScrollingGraphicalViewer
org.csstudio.opibuilder.editor.PatchedScrollingGraphicalViewer
All Implemented Interfaces:
org.eclipse.gef.EditPartViewer, org.eclipse.gef.GraphicalViewer, ISelectionProvider

public class PatchedScrollingGraphicalViewer extends org.eclipse.gef.ui.parts.ScrollingGraphicalViewer
Patched Scrolling graphical viewer implementation.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.gef.EditPartViewer

    org.eclipse.gef.EditPartViewer.Conditional
  • Field Summary

    Fields inherited from class org.eclipse.gef.ui.parts.AbstractEditPartViewer

    constantSelection, focusPart, selection, selectionListeners
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    The original implementation in GraphicalViewerImpl.setContextMenu(MenuManager) registers a menu listener on the context menu.

    Methods inherited from class org.eclipse.gef.ui.parts.ScrollingGraphicalViewer

    createControl, getFigureCanvas, hookRootFigure, reveal

    Methods inherited from class org.eclipse.gef.ui.parts.GraphicalViewerImpl

    createDefaultRoot, createLightweightSystem, findHandleAt, findObjectAtExcluding, flush, getEventDispatcher, getLayerManager, getLightweightSystem, getRootFigure, handleDispose, handleFocusGained, handleFocusLost, hookControl, hookDropTarget, registerAccessibleEditPart, setCursor, setDragSource, setEditDomain, setRootEditPart, setRootFigure, setRouteEventsToEditDomain, unhookControl, unregisterAccessibleEditPart

    Methods inherited from class org.eclipse.gef.ui.parts.AbstractEditPartViewer

    addDragSourceListener, addDragSourceListener, addDropTargetListener, addDropTargetListener, addPropertyChangeListener, addSelectionChangedListener, appendSelection, deselect, deselectAll, findObjectAt, findObjectAtExcluding, fireSelectionChanged, getContents, getControl, getDelegatingDragAdapter, getDelegatingDropAdapter, getDragSource, getDropTarget, getEditDomain, getEditPartFactory, getEditPartRegistry, getFocusEditPart, getKeyHandler, getProperty, getResourceManager, getRootEditPart, getSelectedEditParts, getSelection, getSelectionManager, getVisualPartMap, hookDragSource, init, primGetSelectedEditParts, refreshDragSourceAdapter, refreshDropTargetAdapter, removeDragSourceListener, removeDragSourceListener, removeDropTargetListener, removeDropTargetListener, removePropertyChangeListener, removeSelectionChangedListener, select, setContents, setContents, setControl, setDropTarget, setEditPartFactory, setFocus, setKeyHandler, setProperty, setSelection, setSelectionManager

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.gef.EditPartViewer

    addDragSourceListener, addDragSourceListener, addDropTargetListener, addDropTargetListener, addPropertyChangeListener, appendSelection, deselect, deselectAll, findObjectAt, findObjectAtExcluding, getContents, getControl, getEditDomain, getEditPartFactory, getEditPartRegistry, getFocusEditPart, getKeyHandler, getProperty, getResourceManager, getRootEditPart, getSelectedEditParts, getSelection, getSelectionManager, getVisualPartMap, removeDragSourceListener, removeDragSourceListener, removeDropTargetListener, removeDropTargetListener, removePropertyChangeListener, select, setContents, setContents, setControl, setEditPartFactory, setFocus, setKeyHandler, setProperty, setSelectionManager

    Methods inherited from interface org.eclipse.jface.viewers.ISelectionProvider

    addSelectionChangedListener, removeSelectionChangedListener, setSelection
  • Constructor Details

    • PatchedScrollingGraphicalViewer

      public PatchedScrollingGraphicalViewer()
  • Method Details

    • setContextMenu

      public void setContextMenu(MenuManager manager)
      The original implementation in GraphicalViewerImpl.setContextMenu(MenuManager) registers a menu listener on the context menu. This causes a memory leak, because that listener is never removed.
      Specified by:
      setContextMenu in interface org.eclipse.gef.EditPartViewer
      Overrides:
      setContextMenu in class org.eclipse.gef.ui.parts.GraphicalViewerImpl
    • getContextMenu

      public MenuManager getContextMenu()
      Specified by:
      getContextMenu in interface org.eclipse.gef.EditPartViewer
      Overrides:
      getContextMenu in class org.eclipse.gef.ui.parts.AbstractEditPartViewer