Class ControlPanel

    • Field Detail

      • m_TabbedPaneDisplays

        protected BaseTabbedPane m_TabbedPaneDisplays
        the tabbed pane for displaying the various display panels.
      • m_ButtonStop

        protected BaseButton m_ButtonStop
        the button for stopping execution.
      • m_ButtonToggle

        protected BaseButton m_ButtonToggle
        the button for disabling/enabling the breakpoint.
      • m_ButtonPauseResume

        protected BaseButton m_ButtonPauseResume
        the button for resuming execution.
      • m_ButtonStep

        protected BaseButton m_ButtonStep
        the button for performing the next step when in manual mode.
      • m_ButtonExpressions

        protected BaseToggleButton m_ButtonExpressions
        the button for displaying dialog with watch expressions.
      • m_ButtonSource

        protected BaseToggleButton m_ButtonSource
        the button to show the source code of the current flow.
      • m_ButtonVariables

        protected BaseToggleButton m_ButtonVariables
        the button to show the variable management dialog.
      • m_ButtonStorage

        protected BaseToggleButton m_ButtonStorage
        the button to show the storage.
      • m_ButtonInspectToken

        protected BaseToggleButton m_ButtonInspectToken
        the button to show inspection panel for the current token.
      • m_ButtonBreakpoints

        protected BaseToggleButton m_ButtonBreakpoints
        the button to show the breakpoints management panel.
      • m_PanelExpressions

        protected ExpressionWatchPanel m_PanelExpressions
        the panel with the watch expressions.
      • m_PanelInspectionToken

        protected InspectionPanel m_PanelInspectionToken
        the panel for inspecting the current token.
      • m_PanelSource

        protected TextEditorPanel m_PanelSource
        the panel for displaying the source.
      • m_PanelSourceAll

        protected BasePanel m_PanelSourceAll
        the panel for displaying the source (incl buttons).
      • m_PanelStorage

        protected StoragePanel m_PanelStorage
        the panel for displaying the temporary storage.
      • m_PanelBreakpoints

        protected BreakpointPanel m_PanelBreakpoints
        the panel for managing the breakpoints.
      • m_TextActorPath

        protected BaseTextField m_TextActorPath
        the text field for the actor path.
      • m_ButtonActorPath

        protected BaseButton m_ButtonActorPath
        the button for copying the actor path.
      • m_ButtonActorHighlight

        protected BaseButton m_ButtonActorHighlight
        the button for highlighting the ctor.
      • m_TextStage

        protected BaseTextField m_TextStage
        the text field for the stage.
      • m_Owner

        protected transient Debug m_Owner
        the owning listener.
      • m_CurrentToken

        protected Token m_CurrentToken
        the current token.
      • m_CurrentActor

        protected Actor m_CurrentActor
        the current actor.
      • m_CurrentStage

        protected ExecutionStage m_CurrentStage
        the current hook method.
      • m_CurrentCondition

        protected BooleanCondition m_CurrentCondition
        the current boolean condition.
      • m_CurrentBreakpoint

        protected AbstractBreakpoint m_CurrentBreakpoint
        the current breakpoint.
      • m_Manual

        protected boolean m_Manual
        whether the user has modified the view and it should be left alone.
    • Constructor Detail

      • ControlPanel

        public ControlPanel()
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        initialize in class BasePanel
      • initGUI

        protected void initGUI()
        Initializes the widgets.
        initGUI in class BasePanel
      • finishInit

        protected void finishInit()
        Finishes the initialization.
        finishInit in class BasePanel
      • getFlow

        protected Flow getFlow()
        Returns the underlying flow.
        the flow
      • update

        public void update()
        Updates the enabled status of the buttons, text fields and other widget updates.
      • update

        public void update​(boolean blocked)
        Updates the enabled status of the buttons, text fields and other widget updates.
        blocked - whether flow execution has been blocked
      • queueUpdate

        public void queueUpdate()
        Queues a call to update() in the swing thread.
      • setOwner

        public void setOwner​(Debug value)
        Sets the owning listener.
        value - the owner
      • getOwner

        public Debug getOwner()
        Returns the owning listener.
        the owner
      • setCurrentToken

        public void setCurrentToken​(Token value)
        Sets the current token, if any.
        value - the token
      • getCurrentToken

        public Token getCurrentToken()
        Returns the current token, if any.
        the token, null if none available
      • setCurrentActor

        public void setCurrentActor​(Actor value)
        Sets the current actor.
        value - the actor
      • getCurrentActor

        public Actor getCurrentActor()
        Returns the current actor.
        the actor
      • setCurrentStage

        public void setCurrentStage​(ExecutionStage value)
        Sets the current stage.
        value - the stage
      • getCurrentStage

        public ExecutionStage getCurrentStage()
        Returns the current stage.
        the stage
      • setCurrentCondition

        public void setCurrentCondition​(BooleanCondition value)
        Sets the current boolean condition.
        value - the condition, null if not available
      • getCurrentCondition

        public BooleanCondition getCurrentCondition()
        Returns the current boolean condition.
        the condition, null if none available
      • setCurrentBreakpoint

        public void setCurrentBreakpoint​(AbstractBreakpoint value)
        Sets the current boolean breakpoint.
        value - the breakpoint, null if not available
      • getCurrentBreakpoint

        public AbstractBreakpoint getCurrentBreakpoint()
        Returns the current boolean breakpoint.
        the breakpoint, null if none available
      • getTree

        public Tree getTree()
        Returns the tree, if available.
        Specified by:
        getTree in interface FlowTreeHandler
        the tree, null if not available
      • isControlPanelEnabled

        public boolean isControlPanelEnabled()
        Returns whether the control panel is enabled.
        true if enabled
      • continueFlowExecution

        protected void continueFlowExecution()
        Continues the flow execution.
      • stopFlowExecution

        protected void stopFlowExecution()
        Stops the flow execution.
      • setStepModeEnabled

        public void setStepModeEnabled​(boolean enabled)
        Enables/disables step mode.
        enabled - if true step mode is enabled
      • isStepModeEnabled

        public boolean isStepModeEnabled()
        Returns whether step mode is enabled.
        true if step mode is enabled
      • disableEnableBreakpoint

        protected void disableEnableBreakpoint()
        Disable/enable the breakpoint.
      • pauseResumeExecution

        protected void pauseResumeExecution()
        Pauses/resumes execution.
      • nextStep

        protected void nextStep()
        Executes the next step in manual mode.
      • setPanelVisible

        protected void setPanelVisible​(JPanel panel,
                                       String title,
                                       boolean visible)
        Sets the visibility of a panel in the tabbed pane.
        panel - the panel to add/remove
        title - the title of the panel
        visible - if true the panel gets displayed, otherwise hidden
      • showWatchExpressions

        protected void showWatchExpressions​(boolean visible)
        Displays dialog with watch expressions.
        visible - if true then displayed, otherwise hidden
      • showSource

        protected void showSource​(boolean visible)
        Displays the source code (nested format) of the current flow.
        visible - if true then displayed, otherwise hidden
      • showVariables

        protected void showVariables​(boolean visible)
        Displays the current variables in the system.
        visible - if true then displayed, otherwise hidden
      • inspectToken

        protected void inspectToken​(boolean visible)
        Inspects the current token.
        visible - if true then displayed, otherwise hidden
      • showBreakpoints

        protected void showBreakpoints​(boolean visible)
        Shows the current breakpoints.
        visible - if true then displayed, otherwise hidden
      • showStorage

        protected void showStorage​(boolean visible)
        Shows the current temporary storage.
        visible - if true then displayed, otherwise hidden
      • highlightActor

        protected void highlightActor()
        Highlights the actor.
      • breakpointReached

        public void breakpointReached​(boolean blocked)
        Called by actor when breakpoint reached.
        blocked - whether execution has been blocked
      • cleanUp

        public void cleanUp()
        Cleans up data structures, frees up memory.
        Specified by:
        cleanUp in interface CleanUpHandler