Class OPIEditor

java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.eclipse.gef.ui.parts.GraphicalEditor
org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette
org.csstudio.opibuilder.editor.OPIEditor
All Implemented Interfaces:
EventListener, IAdaptable, IExecutableExtension, org.eclipse.gef.commands.CommandStackListener, IEditorPart, ISaveablePart, ISelectionListener, IWorkbenchPart, IWorkbenchPart2, IWorkbenchPart3, IWorkbenchPartOrientation

public class OPIEditor extends org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette
The OPI Editor.
  • Field Details

  • Constructor Details

    • OPIEditor

      public OPIEditor()
  • Method Details

    • dispose

      public void dispose()
      Specified by:
      dispose in interface IWorkbenchPart
      Overrides:
      dispose in class org.eclipse.gef.ui.parts.GraphicalEditor
    • commandStackChanged

      public void commandStackChanged(EventObject event)
      Specified by:
      commandStackChanged in interface org.eclipse.gef.commands.CommandStackListener
      Overrides:
      commandStackChanged in class org.eclipse.gef.ui.parts.GraphicalEditor
    • configureGraphicalViewer

      protected void configureGraphicalViewer()
      Overrides:
      configureGraphicalViewer in class org.eclipse.gef.ui.parts.GraphicalEditor
    • createActions

      protected void createActions()
      Overrides:
      createActions in class org.eclipse.gef.ui.parts.GraphicalEditor
    • createGraphicalViewer

      protected void createGraphicalViewer(Composite parent)
      Overrides:
      createGraphicalViewer in class org.eclipse.gef.ui.parts.GraphicalEditor
    • createPaletteViewerProvider

      protected org.eclipse.gef.ui.palette.PaletteViewerProvider createPaletteViewerProvider()
      Overrides:
      createPaletteViewerProvider in class org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette
    • doSave

      public void doSave(IProgressMonitor monitor)
      Specified by:
      doSave in interface ISaveablePart
      Specified by:
      doSave in class EditorPart
    • doSaveAs

      public void doSaveAs()
      Specified by:
      doSaveAs in interface ISaveablePart
      Overrides:
      doSaveAs in class org.eclipse.gef.ui.parts.GraphicalEditor
    • getAdapter

      public Object getAdapter(Class type)
      Specified by:
      getAdapter in interface IAdaptable
      Overrides:
      getAdapter in class org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette
    • getClipboard

      public Clipboard getClipboard()
    • getCommonKeyHandler

      protected org.eclipse.gef.KeyHandler getCommonKeyHandler()
      Returns the KeyHandler with common bindings for both the Outline and Graphical Views. For example, delete is a common action.
    • getDisplayCenterPosition

      public org.eclipse.draw2d.geometry.Point getDisplayCenterPosition()
      Returns the Point, which is the center of the Display.
      Returns:
      Point The Point, which is the center of the Display
    • getDisplayModel

      public DisplayModel getDisplayModel()
    • getGraphicalControl

      protected Control getGraphicalControl()
      Overrides:
      getGraphicalControl in class org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette
    • getOverviewOutlinePage

      protected OverviewOutlinePage getOverviewOutlinePage()
      Returns the overview for the outline view.
    • getPaletteRoot

      protected org.eclipse.gef.palette.PaletteRoot getPaletteRoot()
      Specified by:
      getPaletteRoot in class org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette
    • getParentComposite

      public Composite getParentComposite()
      Returns the main composite of the editor.
    • getPropertySheetPage

      protected PropertySheetPage getPropertySheetPage()
      Returns the undoable PropertySheetPage for this editor.
    • getSelectionSynchronizer

      protected org.eclipse.gef.ui.parts.SelectionSynchronizer getSelectionSynchronizer()
      Overrides:
      getSelectionSynchronizer in class org.eclipse.gef.ui.parts.GraphicalEditor
    • initializeGraphicalViewer

      protected void initializeGraphicalViewer()
      Overrides:
      initializeGraphicalViewer in class org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette
    • isSaveAsAllowed

      public boolean isSaveAsAllowed()
      Specified by:
      isSaveAsAllowed in interface ISaveablePart
      Overrides:
      isSaveAsAllowed in class org.eclipse.gef.ui.parts.GraphicalEditor
    • getFigureCanvas

      protected org.eclipse.draw2d.FigureCanvas getFigureCanvas()