Class ScriptWorkspace
java.lang.Object
com.inductiveautomation.ignition.designer.scripteditor.workspace.ScriptWorkspace
- All Implemented Interfaces:
ResourceWorkspace
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
closeScript
(ResourcePath resourceId) void
void
void
Pushes a tab from the workspace and puts it in the editing frameThe handler that responds to common edit actions, like cut, copy, paste, and deleteint
Returns a collection ofResourceWorkspaceFrame
s that will be associated with this workspace.getKey()
Returns a keyname for the workspace.getMenu()
Returns a menu merge for the menu options that should be present when this workspace is active.List<com.jidesoft.action.CommandBar>
Returns the toolbars that will be added when this workspace is active.The component that makes up the workspace itself.boolean
isActive()
boolean
boolean
void
notifyTabClosed
(ScriptTab tab) Called from the editors when a tab has been closed.void
Called when the resource workspace will become the active workspace and will be displayed.void
Called when the resource workspace will be swapped out for a different workspace.void
openScript
(ResourcePath resourcePath) void
openScript
(ResourcePath id, boolean readOnly) void
void
void
resetFrames
(com.jidesoft.docking.DockingManager dockingManager, com.jidesoft.action.DockableBarManager barManager) Programmatically set the options on the frames and bars that represent the workspace's "defaults"void
save
(ResourcePath path) void
Updates the project resource for this script tab, serializing the script and updating the lockvoid
saveAll()
void
void
void
void
void
void
shutdown()
void
unFloatTab
(ScriptTab tab) Pulls a tab from the floating editing frame and puts it in the workspaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.inductiveautomation.ignition.designer.model.ResourceWorkspace
dispose
-
Field Details
-
SCRIPT_WORKSPACE_KEY
- See Also:
-
-
Constructor Details
-
ScriptWorkspace
-
-
Method Details
-
getWorkspace
Description copied from interface:ResourceWorkspace
The component that makes up the workspace itself. Must not be null- Specified by:
getWorkspace
in interfaceResourceWorkspace
-
getKey
Description copied from interface:ResourceWorkspace
Returns a keyname for the workspace. Used by nav tree nodes to specify which workspace to switch to when they are selected.- Specified by:
getKey
in interfaceResourceWorkspace
-
getMenu
Description copied from interface:ResourceWorkspace
Returns a menu merge for the menu options that should be present when this workspace is active. May be null.- Specified by:
getMenu
in interfaceResourceWorkspace
-
getToolbars
Description copied from interface:ResourceWorkspace
Returns the toolbars that will be added when this workspace is active. May be null or empty.- Specified by:
getToolbars
in interfaceResourceWorkspace
-
getFrames
Description copied from interface:ResourceWorkspace
Returns a collection ofResourceWorkspaceFrame
s that will be associated with this workspace. May be null or empty.- Specified by:
getFrames
in interfaceResourceWorkspace
-
getEditActionHandler
Description copied from interface:ResourceWorkspace
The handler that responds to common edit actions, like cut, copy, paste, and delete- Specified by:
getEditActionHandler
in interfaceResourceWorkspace
-
resetFrames
public void resetFrames(com.jidesoft.docking.DockingManager dockingManager, com.jidesoft.action.DockableBarManager barManager) Description copied from interface:ResourceWorkspace
Programmatically set the options on the frames and bars that represent the workspace's "defaults"- Specified by:
resetFrames
in interfaceResourceWorkspace
-
onActivation
public void onActivation()Description copied from interface:ResourceWorkspace
Called when the resource workspace will become the active workspace and will be displayed.- Specified by:
onActivation
in interfaceResourceWorkspace
-
onDeactivation
public void onDeactivation()Description copied from interface:ResourceWorkspace
Called when the resource workspace will be swapped out for a different workspace.- Specified by:
onDeactivation
in interfaceResourceWorkspace
-
isActive
public boolean isActive() -
isFrameEditorOpen
public boolean isFrameEditorOpen() -
getDesignerContext
-
showWorkspace
public void showWorkspace() -
openScript
-
openScript
-
unFloatTab
Pulls a tab from the floating editing frame and puts it in the workspace -
floatTab
Pushes a tab from the workspace and puts it in the editing frame -
closeScript
-
notifyTabClosed
Called from the editors when a tab has been closed. -
selectWelcomeTab
public void selectWelcomeTab() -
selectScript
-
isScriptOpen
-
refreshSelectedScripts
public void refreshSelectedScripts() -
fireSelectionChange
-
saveAll
public void saveAll() -
save
-
save
Updates the project resource for this script tab, serializing the script and updating the lock -
addWorkspaceChangeListener
-
removeWorkspaceChangeListener
-
shutdown
public void shutdown() -
getFloatingTabCount
public int getFloatingTabCount() -
selectFrameEditor
public void selectFrameEditor() -
fireSelectionChange
-