Package org.csstudio.opibuilder.runmode
Class OPIRunner
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.csstudio.opibuilder.runmode.OPIRunner
- All Implemented Interfaces:
IOPIRuntime
,IAdaptable
,IExecutableExtension
,IEditorPart
,ISaveablePart
,IWorkbenchPart
,IWorkbenchPart2
,IWorkbenchPart3
,IWorkbenchPartOrientation
The editor for running of OPI.
-
Field Summary
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
createPartControl
(Composite parent) void
dispose()
void
doSave
(IProgressMonitor monitor) void
doSaveAs()
<T> T
getAdapter
(Class<T> adapter) void
init
(IEditorSite site, IEditorInput input) boolean
isDirty()
boolean
void
setFocus()
void
setOPIInput
(IEditorInput input) Set the OPI input.void
setWorkbenchPartName
(String name) Set workbench part name.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, firePropertyChange, 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, getTitleToolTip, removePropertyListener
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
OPIRunner
public OPIRunner()
-
-
Method Details
-
doSave
- Specified by:
doSave
in interfaceISaveablePart
- Specified by:
doSave
in classEditorPart
-
doSaveAs
public void doSaveAs()- Specified by:
doSaveAs
in interfaceISaveablePart
- Specified by:
doSaveAs
in classEditorPart
-
dispose
public void dispose()- Specified by:
dispose
in interfaceIWorkbenchPart
- Overrides:
dispose
in classWorkbenchPart
-
init
- Specified by:
init
in interfaceIEditorPart
- Specified by:
init
in classEditorPart
- Throws:
PartInitException
-
setOPIInput
Description copied from interface:IOPIRuntime
Set the OPI input. The OPI Runtime will reload OPI from the input.- Specified by:
setOPIInput
in interfaceIOPIRuntime
- Throws:
PartInitException
-
isDirty
public boolean isDirty()- Specified by:
isDirty
in interfaceISaveablePart
- Specified by:
isDirty
in classEditorPart
-
isSaveAsAllowed
public boolean isSaveAsAllowed()- Specified by:
isSaveAsAllowed
in interfaceISaveablePart
- Specified by:
isSaveAsAllowed
in classEditorPart
-
createPartControl
- Specified by:
createPartControl
in interfaceIWorkbenchPart
- Specified by:
createPartControl
in classWorkbenchPart
-
setFocus
public void setFocus()- Specified by:
setFocus
in interfaceIWorkbenchPart
- Specified by:
setFocus
in classWorkbenchPart
-
getAdapter
- Specified by:
getAdapter
in interfaceIAdaptable
- Overrides:
getAdapter
in classWorkbenchPart
-
setWorkbenchPartName
Description copied from interface:IOPIRuntime
Set workbench part name. It calls setPartName() from editor or view to make it public visible.- Specified by:
setWorkbenchPartName
in interfaceIOPIRuntime
-
getOPIRuntimeDelegate
-
getOPIInput
- Specified by:
getOPIInput
in interfaceIOPIRuntime
- Returns:
- the OPI input of the runtime.
-
getDisplayModel
- Specified by:
getDisplayModel
in interfaceIOPIRuntime
- Returns:
- the display model in this runtime.
-