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
FieldsFields inherited from interface org.eclipse.ui.IEditorPart
PROP_DIRTY, PROP_INPUTFields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreatePartControl(Composite parent) voiddispose()voiddoSave(IProgressMonitor monitor) voiddoSaveAs()<T> TgetAdapter(Class<T> adapter) voidinit(IEditorSite site, IEditorInput input) booleanisDirty()booleanvoidsetFocus()voidsetOPIInput(IEditorInput input) Set the OPI input.voidsetWorkbenchPartName(String name) Set workbench part name.Methods inherited from class org.eclipse.ui.part.EditorPart
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartNameMethods 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, showBusyMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
doSavein interfaceISaveablePart- Specified by:
doSavein classEditorPart
-
doSaveAs
public void doSaveAs()- Specified by:
doSaveAsin interfaceISaveablePart- Specified by:
doSaveAsin classEditorPart
-
dispose
public void dispose()- Specified by:
disposein interfaceIWorkbenchPart- Overrides:
disposein classWorkbenchPart
-
init
- Specified by:
initin interfaceIEditorPart- Specified by:
initin classEditorPart- Throws:
PartInitException
-
setOPIInput
Description copied from interface:IOPIRuntimeSet the OPI input. The OPI Runtime will reload OPI from the input.- Specified by:
setOPIInputin interfaceIOPIRuntime- Throws:
PartInitException
-
isDirty
public boolean isDirty()- Specified by:
isDirtyin interfaceISaveablePart- Specified by:
isDirtyin classEditorPart
-
isSaveAsAllowed
public boolean isSaveAsAllowed()- Specified by:
isSaveAsAllowedin interfaceISaveablePart- Specified by:
isSaveAsAllowedin classEditorPart
-
createPartControl
- Specified by:
createPartControlin interfaceIWorkbenchPart- Specified by:
createPartControlin classWorkbenchPart
-
setFocus
public void setFocus()- Specified by:
setFocusin interfaceIWorkbenchPart- Specified by:
setFocusin classWorkbenchPart
-
getAdapter
- Specified by:
getAdapterin interfaceIAdaptable- Overrides:
getAdapterin classWorkbenchPart
-
setWorkbenchPartName
Description copied from interface:IOPIRuntimeSet workbench part name. It calls setPartName() from editor or view to make it public visible.- Specified by:
setWorkbenchPartNamein interfaceIOPIRuntime
-
getOPIRuntimeDelegate
-
getOPIInput
- Specified by:
getOPIInputin interfaceIOPIRuntime- Returns:
- the OPI input of the runtime.
-
getDisplayModel
- Specified by:
getDisplayModelin interfaceIOPIRuntime- Returns:
- the display model in this runtime.
-