Package org.csstudio.opibuilder.runmode
Class RunModeService
java.lang.Object
org.csstudio.opibuilder.runmode.RunModeService
Service for executing a display
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
How/where a new display is presented -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IWorkbenchPage
createNewWorkbenchPage
(Optional<org.eclipse.draw2d.geometry.Rectangle> bounds) Open new workbench pagestatic void
openDisplay
(IPath path, Optional<MacrosInput> macros, RunModeService.DisplayMode mode, Optional<IOPIRuntime> runtime) Open a display in runtimestatic void
openDisplayInView
(IWorkbenchPage page, RunnerInput input, RunModeService.DisplayMode mode) Display a view on a specific workbench page
-
Constructor Details
-
RunModeService
public RunModeService()
-
-
Method Details
-
openDisplay
public static void openDisplay(IPath path, Optional<MacrosInput> macros, RunModeService.DisplayMode mode, Optional<IOPIRuntime> runtime) Open a display in runtime- Parameters:
path
- Path to the display filemacros
- Optional macrosmode
-RunModeService.DisplayMode
runtime
- Runtime to update in case DisplayMode is 'replace'
-
createNewWorkbenchPage
public static IWorkbenchPage createNewWorkbenchPage(Optional<org.eclipse.draw2d.geometry.Rectangle> bounds) throws Exception Open new workbench page- Parameters:
bounds
- Optional location (unless 0) and size (unless empty)- Returns:
- IWorkbenchPage
- Throws:
Exception
- on error
-
openDisplayInView
public static void openDisplayInView(IWorkbenchPage page, RunnerInput input, RunModeService.DisplayMode mode) Display a view on a specific workbench page- Parameters:
page
- Page to useinput
-RunnerInput
mode
- Mode, must be one related to Views ("NEW_TAB_*")
-