java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.inductiveautomation.sfc.designer.workspace.SfcWorkspace
All Implemented Interfaces:
Locatable, ResourceWorkspace, ImageObserver, MenuContainer, Serializable, Accessible

public class SfcWorkspace extends JPanel implements ResourceWorkspace, Locatable
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getCompilationFeedback

      public ChartControlPanel getCompilationFeedback()
    • getRpc

      public SfcRpcFunctions getRpc()
    • getContext

      public DesignerContext getContext()
    • openChart

      public void openChart(ResourcePath resourcePath)
    • commitIfOpen

      public void commitIfOpen(ResourcePath resourceId) throws Exception
      Commits the chart if it's open
      Throws:
      Exception
    • commitOpenCharts

      public void commitOpenCharts(SaveContext save)
      Serializes any open charts.
      Parameters:
      save - Save workspace, may be null.
    • commitEditorFrame

      public void commitEditorFrame()
    • selectWelcomeTab

      public void selectWelcomeTab()
    • selectElementWithId

      public void selectElementWithId(UUID id)
    • selectElementWithIds

      public void selectElementWithIds(Collection<UUID> ids)
    • isOpen

      public boolean isOpen(ResourcePath resourceId)
    • closeChart

      public void closeChart(ResourcePath resourceId)
    • getSelectedItems

      public List<JComponent> getSelectedItems()
    • getSelectedDesignPanel

      public DesignPanel getSelectedDesignPanel()
    • getSelectedContainer

      public SfcDesignableContainer getSelectedContainer()
    • setSelectedItems

      public void setSelectedItems(List<JComponent> newSelection)
    • setSelectedItems

      public void setSelectedItems(JComponent... newSelection)
    • getCurrentTool

      public IDesignTool getCurrentTool()
    • setCurrentTool

      public void setCurrentTool(IDesignTool newTool)
    • getSelectionTool

      public IDesignTool getSelectionTool()
    • getDelegate

      public com.inductiveautomation.sfc.designer.workspace.SfcWorkspace.TabbedWorkspace.Delegate getDelegate()
    • getInnerWorkspace

      public AbstractDesignableWorkspace getInnerWorkspace()
    • getWorkspace

      public JComponent getWorkspace()
      Description copied from interface: ResourceWorkspace
      The component that makes up the workspace itself. Must not be null
      Specified by:
      getWorkspace in interface ResourceWorkspace
    • getKey

      public String 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 interface ResourceWorkspace
    • getMenu

      public MenuBarMerge 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 interface ResourceWorkspace
    • getToolbars

      public List<com.jidesoft.action.CommandBar> 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 interface ResourceWorkspace
    • getFrames

      public Collection<ResourceWorkspaceFrame> getFrames()
      This returns a mutable list on purpose. 3rd party folks inject their own frames into this list.
      Specified by:
      getFrames in interface ResourceWorkspace
    • getEditActionHandler

      public EditActionHandler getEditActionHandler()
      Description copied from interface: ResourceWorkspace
      The handler that responds to common edit actions, like cut, copy, paste, and delete
      Specified by:
      getEditActionHandler in interface ResourceWorkspace
    • 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 interface ResourceWorkspace
    • 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 interface ResourceWorkspace
    • 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 interface ResourceWorkspace
    • isActiveWorkspace

      public boolean isActiveWorkspace()
    • getPalette

      public SfcPalette getPalette()
    • locate

      public void locate(Location location)
      Specified by:
      locate in interface Locatable