Class OpenDisplayAction
java.lang.Object
org.csstudio.opibuilder.widgetActions.AbstractWidgetAction
org.csstudio.opibuilder.widgetActions.OpenDisplayAction
- All Implemented Interfaces:
IAdaptable
Action for executing a display.
Properties, configured when the action is added to a widget, suggest how the display should be opened: Replace existing display, or open new standalone shell, or ..
User can override via key modifiers:
- Ctrl - Opens a new view in existing workbench window
- Shift - Open a new view in new workbench window
- Ctrl + Shift - Open a new standalone shell
-
Field Summary
Fields inherited from class org.csstudio.opibuilder.widgetActions.AbstractWidgetAction
PROP_DESCRIPTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected RunModeService.DisplayMode
protected MacrosInput
protected IPath
getPath()
protected void
handleLegacySettings
(org.jdom2.Element path_element) void
run()
void
runWithModifiers
(boolean ctrlPressed, boolean shiftPressed) Run the action, i.e. open display, with optional modifiersMethods inherited from class org.csstudio.opibuilder.widgetActions.AbstractWidgetAction
addProperty, dispose, getAdapter, getAllProperties, getAllPropertyIDs, getCopy, getDescription, getProperty, getPropertyValue, getWidgetModel, isEnabled, setEnabled, setPropertyValue, setWidgetModel
-
Field Details
-
PROP_PATH
- See Also:
-
PROP_MACROS
- See Also:
-
PROP_MODE
- See Also:
-
-
Constructor Details
-
OpenDisplayAction
public OpenDisplayAction()
-
-
Method Details
-
configureProperties
protected void configureProperties()- Specified by:
configureProperties
in classAbstractWidgetAction
-
handleLegacySettings
protected void handleLegacySettings(org.jdom2.Element path_element) -
runWithModifiers
public void runWithModifiers(boolean ctrlPressed, boolean shiftPressed) Run the action, i.e. open display, with optional modifiers- Parameters:
ctrlPressed
- True if Ctrl was pressed while invoking the actionshiftPressed
- True if Shift was held while invoking the action
-
run
public void run()- Specified by:
run
in classAbstractWidgetAction
-
getPath
-
getMacrosInput
-
getDisplayMode
-
getActionType
- Specified by:
getActionType
in classAbstractWidgetAction
-
getDefaultDescription
- Overrides:
getDefaultDescription
in classAbstractWidgetAction
-