Class ScriptWorkspace
- java.lang.Object
- 
- com.inductiveautomation.ignition.designer.scripteditor.workspace.ScriptWorkspace
 
- 
- All Implemented Interfaces:
- ResourceWorkspace
 
 public class ScriptWorkspace extends java.lang.Object implements ResourceWorkspace 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringSCRIPT_WORKSPACE_KEY
 - 
Constructor SummaryConstructors Constructor Description ScriptWorkspace(DesignerContext context)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddWorkspaceChangeListener(ScriptWorkspaceListener listener)voidcloseScript(ResourcePath resourceId)voidfireSelectionChange(ResourcePath id)voidfireSelectionChange(ScriptTab tab)voidfloatTab(ScriptTab tab)Pushes a tab from the workspace and puts it in the editing frameDesignerContextgetDesignerContext()EditActionHandlergetEditActionHandler()The handler that responds to common edit actions, like cut, copy, paste, and deleteintgetFloatingTabCount()java.util.Collection<ResourceWorkspaceFrame>getFrames()Returns a collection ofResourceWorkspaceFrames that will be associated with this workspace.java.lang.StringgetKey()Returns a keyname for the workspace.MenuBarMergegetMenu()Returns a menu merge for the menu options that should be present when this workspace is active.java.util.List<com.jidesoft.action.CommandBar>getToolbars()Returns the toolbars that will be added when this workspace is active.javax.swing.JComponentgetWorkspace()The component that makes up the workspace itself.booleanisActive()booleanisFrameEditorOpen()booleanisScriptOpen(ResourcePath id)voidnotifyTabClosed(ScriptTab tab)Called from the editors when a tab has been closed.voidonActivation()Called when the resource workspace will become the active workspace and will be displayed.voidonDeactivation()Called when the resource workspace will be swapped out for a different workspace.voidopenScript(ResourcePath resourcePath)voidopenScript(ResourcePath id, boolean readOnly)voidrefreshSelectedScripts()voidremoveWorkspaceChangeListener(ScriptWorkspaceListener listener)voidresetFrames(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"voidsave(ResourcePath path)voidsave(ScriptTab tab)Updates the project resource for this script tab, serializing the script and updating the lockvoidsaveAll()voidselectFrameEditor()voidselectScript(ResourcePath id)voidselectWelcomeTab()voidsetupProjectNavNode()voidshowWorkspace()voidshutdown()voidunFloatTab(ScriptTab tab)Pulls a tab from the floating editing frame and puts it in the workspace- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.inductiveautomation.ignition.designer.model.ResourceWorkspacedispose
 
- 
 
- 
- 
- 
Field Detail- 
SCRIPT_WORKSPACE_KEYpublic static final java.lang.String SCRIPT_WORKSPACE_KEY - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
ScriptWorkspacepublic ScriptWorkspace(DesignerContext context) 
 
- 
 - 
Method Detail- 
getWorkspacepublic javax.swing.JComponent getWorkspace() Description copied from interface:ResourceWorkspaceThe component that makes up the workspace itself. Must not be null- Specified by:
- getWorkspacein interface- ResourceWorkspace
 
 - 
getKeypublic java.lang.String getKey() Description copied from interface:ResourceWorkspaceReturns a keyname for the workspace. Used by nav tree nodes to specify which workspace to switch to when they are selected.- Specified by:
- getKeyin interface- ResourceWorkspace
 
 - 
getMenupublic MenuBarMerge getMenu() Description copied from interface:ResourceWorkspaceReturns a menu merge for the menu options that should be present when this workspace is active. May be null.- Specified by:
- getMenuin interface- ResourceWorkspace
 
 - 
getToolbarspublic java.util.List<com.jidesoft.action.CommandBar> getToolbars() Description copied from interface:ResourceWorkspaceReturns the toolbars that will be added when this workspace is active. May be null or empty.- Specified by:
- getToolbarsin interface- ResourceWorkspace
 
 - 
getFramespublic java.util.Collection<ResourceWorkspaceFrame> getFrames() Description copied from interface:ResourceWorkspaceReturns a collection ofResourceWorkspaceFrames that will be associated with this workspace. May be null or empty.- Specified by:
- getFramesin interface- ResourceWorkspace
 
 - 
getEditActionHandlerpublic EditActionHandler getEditActionHandler() Description copied from interface:ResourceWorkspaceThe handler that responds to common edit actions, like cut, copy, paste, and delete- Specified by:
- getEditActionHandlerin interface- ResourceWorkspace
 
 - 
resetFramespublic void resetFrames(com.jidesoft.docking.DockingManager dockingManager, com.jidesoft.action.DockableBarManager barManager)Description copied from interface:ResourceWorkspaceProgrammatically set the options on the frames and bars that represent the workspace's "defaults"- Specified by:
- resetFramesin interface- ResourceWorkspace
 
 - 
onActivationpublic void onActivation() Description copied from interface:ResourceWorkspaceCalled when the resource workspace will become the active workspace and will be displayed.- Specified by:
- onActivationin interface- ResourceWorkspace
 
 - 
onDeactivationpublic void onDeactivation() Description copied from interface:ResourceWorkspaceCalled when the resource workspace will be swapped out for a different workspace.- Specified by:
- onDeactivationin interface- ResourceWorkspace
 
 - 
isActivepublic boolean isActive() 
 - 
isFrameEditorOpenpublic boolean isFrameEditorOpen() 
 - 
getDesignerContextpublic DesignerContext getDesignerContext() 
 - 
setupProjectNavNodepublic void setupProjectNavNode() 
 - 
showWorkspacepublic void showWorkspace() 
 - 
openScriptpublic void openScript(ResourcePath resourcePath) 
 - 
openScriptpublic void openScript(ResourcePath id, boolean readOnly) 
 - 
unFloatTabpublic void unFloatTab(ScriptTab tab) Pulls a tab from the floating editing frame and puts it in the workspace
 - 
floatTabpublic void floatTab(ScriptTab tab) Pushes a tab from the workspace and puts it in the editing frame
 - 
closeScriptpublic void closeScript(ResourcePath resourceId) 
 - 
notifyTabClosedpublic void notifyTabClosed(ScriptTab tab) Called from the editors when a tab has been closed.
 - 
selectWelcomeTabpublic void selectWelcomeTab() 
 - 
selectScriptpublic void selectScript(ResourcePath id) 
 - 
isScriptOpenpublic boolean isScriptOpen(ResourcePath id) 
 - 
refreshSelectedScriptspublic void refreshSelectedScripts() 
 - 
fireSelectionChangepublic void fireSelectionChange(ScriptTab tab) 
 - 
saveAllpublic void saveAll() 
 - 
savepublic void save(ResourcePath path) 
 - 
savepublic void save(ScriptTab tab) Updates the project resource for this script tab, serializing the script and updating the lock
 - 
addWorkspaceChangeListenerpublic void addWorkspaceChangeListener(ScriptWorkspaceListener listener) 
 - 
removeWorkspaceChangeListenerpublic void removeWorkspaceChangeListener(ScriptWorkspaceListener listener) 
 - 
shutdownpublic void shutdown() 
 - 
getFloatingTabCountpublic int getFloatingTabCount() 
 - 
selectFrameEditorpublic void selectFrameEditor() 
 - 
fireSelectionChangepublic void fireSelectionChange(ResourcePath id) 
 
- 
 
-