Package org.csstudio.opibuilder.editor
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette
org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.CustomPalettePage
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
The file extension for OPI files.Fields inherited from interface org.eclipse.ui.IEditorPart
PROP_DIRTY, PROP_INPUT
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
commandStackChanged
(EventObject event) protected void
protected void
protected void
createGraphicalViewer
(Composite parent) protected org.eclipse.gef.ui.palette.PaletteViewerProvider
void
dispose()
void
doSave
(IProgressMonitor monitor) void
doSaveAs()
getAdapter
(Class type) protected org.eclipse.gef.KeyHandler
Returns the KeyHandler with common bindings for both the Outline and Graphical Views.org.eclipse.draw2d.geometry.Point
Returns the Point, which is the center of the Display.protected org.eclipse.draw2d.FigureCanvas
protected Control
protected OverviewOutlinePage
Returns the overview for the outline view.protected org.eclipse.gef.palette.PaletteRoot
Returns the main composite of the editor.protected PropertySheetPage
Returns the undoablePropertySheetPage
for this editor.protected org.eclipse.gef.ui.parts.SelectionSynchronizer
protected void
boolean
Methods inherited from class org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette
createPaletteComposite, createPalettePage, createPartControl, getPalettePreferences, getPaletteViewerProvider, setEditDomain
Methods inherited from class org.eclipse.gef.ui.parts.GraphicalEditor
firePropertyChange, getActionRegistry, getCommandStack, getEditDomain, getGraphicalViewer, getPropertyActions, getSelectionActions, getStackActions, hookGraphicalViewer, init, initializeActionRegistry, isDirty, selectionChanged, setActionRegistry, setFocus, setGraphicalViewer, updateActions
Methods inherited from class org.eclipse.ui.part.EditorPart
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, removePropertyListener
-
Field Details
-
OPI_FILE_EXTENSION
The file extension for OPI files.- See Also:
-
ID
- See Also:
-
-
Constructor Details
-
OPIEditor
public OPIEditor()
-
-
Method Details
-
dispose
public void dispose()- Specified by:
dispose
in interfaceIWorkbenchPart
- Overrides:
dispose
in classorg.eclipse.gef.ui.parts.GraphicalEditor
-
commandStackChanged
- Specified by:
commandStackChanged
in interfaceorg.eclipse.gef.commands.CommandStackListener
- Overrides:
commandStackChanged
in classorg.eclipse.gef.ui.parts.GraphicalEditor
-
configureGraphicalViewer
protected void configureGraphicalViewer()- Overrides:
configureGraphicalViewer
in classorg.eclipse.gef.ui.parts.GraphicalEditor
-
createActions
protected void createActions()- Overrides:
createActions
in classorg.eclipse.gef.ui.parts.GraphicalEditor
-
createGraphicalViewer
- Overrides:
createGraphicalViewer
in classorg.eclipse.gef.ui.parts.GraphicalEditor
-
createPaletteViewerProvider
protected org.eclipse.gef.ui.palette.PaletteViewerProvider createPaletteViewerProvider()- Overrides:
createPaletteViewerProvider
in classorg.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette
-
doSave
- Specified by:
doSave
in interfaceISaveablePart
- Specified by:
doSave
in classEditorPart
-
doSaveAs
public void doSaveAs()- Specified by:
doSaveAs
in interfaceISaveablePart
- Overrides:
doSaveAs
in classorg.eclipse.gef.ui.parts.GraphicalEditor
-
getAdapter
- Specified by:
getAdapter
in interfaceIAdaptable
- Overrides:
getAdapter
in classorg.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette
-
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
-
getGraphicalControl
- Overrides:
getGraphicalControl
in classorg.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette
-
getOverviewOutlinePage
Returns the overview for the outline view. -
getPaletteRoot
protected org.eclipse.gef.palette.PaletteRoot getPaletteRoot()- Specified by:
getPaletteRoot
in classorg.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette
-
getParentComposite
Returns the main composite of the editor. -
getPropertySheetPage
Returns the undoablePropertySheetPage
for this editor. -
getSelectionSynchronizer
protected org.eclipse.gef.ui.parts.SelectionSynchronizer getSelectionSynchronizer()- Overrides:
getSelectionSynchronizer
in classorg.eclipse.gef.ui.parts.GraphicalEditor
-
initializeGraphicalViewer
protected void initializeGraphicalViewer()- Overrides:
initializeGraphicalViewer
in classorg.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette
-
isSaveAsAllowed
public boolean isSaveAsAllowed()- Specified by:
isSaveAsAllowed
in interfaceISaveablePart
- Overrides:
isSaveAsAllowed
in classorg.eclipse.gef.ui.parts.GraphicalEditor
-
getFigureCanvas
protected org.eclipse.draw2d.FigureCanvas getFigureCanvas()
-