Class InspectActionDelegate

java.lang.Object
com._1c.g5.v8.dt.internal.debug.ui.actions.AbstractDelegateAction
com._1c.g5.v8.dt.internal.debug.ui.actions.InspectActionDelegate
All Implemented Interfaces:
org.eclipse.debug.ui.contexts.IDebugContextListener, org.eclipse.ui.IActionDelegate, org.eclipse.ui.IActionDelegate2, org.eclipse.ui.IEditorActionDelegate, org.eclipse.ui.IObjectActionDelegate, org.eclipse.ui.IWorkbenchWindowActionDelegate
Direct Known Subclasses:
WatchActionDelegate

public class InspectActionDelegate extends AbstractDelegateAction implements org.eclipse.ui.IEditorActionDelegate, org.eclipse.ui.IWorkbenchWindowActionDelegate, org.eclipse.debug.ui.contexts.IDebugContextListener
1C:Enterprise Runtime debug process 'Inspect' action.
  • Constructor Details

    • InspectActionDelegate

      public InspectActionDelegate()
  • Method Details

    • run

      public void run(org.eclipse.jface.action.IAction action)
      Specified by:
      run in interface org.eclipse.ui.IActionDelegate
    • selectionChanged

      public void selectionChanged(org.eclipse.jface.action.IAction action, ISelection selection)
      Specified by:
      selectionChanged in interface org.eclipse.ui.IActionDelegate
      Overrides:
      selectionChanged in class AbstractDelegateAction
    • setActiveEditor

      public void setActiveEditor(org.eclipse.jface.action.IAction action, org.eclipse.ui.IEditorPart targetEditor)
      Specified by:
      setActiveEditor in interface org.eclipse.ui.IEditorActionDelegate
    • init

      public void init(org.eclipse.jface.action.IAction action)
      Specified by:
      init in interface org.eclipse.ui.IActionDelegate2
      Overrides:
      init in class AbstractDelegateAction
    • init

      public void init(org.eclipse.ui.IWorkbenchWindow window)
      Specified by:
      init in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
    • dispose

      public void dispose()
      Specified by:
      dispose in interface org.eclipse.ui.IActionDelegate2
      Specified by:
      dispose in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
      Overrides:
      dispose in class AbstractDelegateAction
    • debugContextChanged

      public void debugContextChanged(org.eclipse.debug.ui.contexts.DebugContextEvent event)
      Specified by:
      debugContextChanged in interface org.eclipse.debug.ui.contexts.IDebugContextListener
    • getThread

      protected IRuntimeDebugTargetThread getThread()
      Returns current 1C:Enterprie Runtime thread from current debug context. Can return null, if there isn't appropriate debug context (no active BSL stack frames / threads).
      Returns:
      1C:Enterprie Runtime thread, or null if there isn't one active
    • geSelectedExpression

      protected org.eclipse.debug.core.model.IWatchExpression geSelectedExpression(IBslStackFrame frame)
      Get currently selected expression as String.
      Parameters:
      frame - current stack frame from debug, can be null
      Returns:
      currently selected expression, or null if currently isn't selected anyone in target part
    • getTargetSelection

      protected ISelection getTargetSelection()
      Get current selection of target part.
      Returns:
      current selection, or null if currently isn't selected anyone in target part
    • getFrame

      protected IBslStackFrame getFrame()
      Get current stack frame from debug. Can return null.
      Returns:
      stack frame, or null if there isn't one active
    • getPopupAnchor

      protected org.eclipse.swt.graphics.Point getPopupAnchor(org.eclipse.swt.custom.StyledText textWidget)
      Returns an anchor point for a popup dialog on top of a styled text or null if none.
      Parameters:
      part - or null
      Returns:
      anchor point or null
    • getStyledText

      protected org.eclipse.swt.custom.StyledText getStyledText(org.eclipse.ui.IWorkbenchPart part)
      Returns the styled text widget associated with the given part or null if none.
      Parameters:
      part - workbench part
      Returns:
      associated style text widget or null
    • showExpressionView

      protected void showExpressionView()
      Make the expression view visible or open one if required.