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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
debugContextChanged
(org.eclipse.debug.ui.contexts.DebugContextEvent event) void
dispose()
protected org.eclipse.debug.core.model.IWatchExpression
Get currently selected expression asString
.protected IBslStackFrame
getFrame()
Get current stack frame from debug.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 ornull
if none.protected org.eclipse.swt.custom.StyledText
getStyledText
(org.eclipse.ui.IWorkbenchPart part) Returns the styled text widget associated with the given part ornull
if none.protected ISelection
Get current selection of target part.protected IRuntimeDebugTargetThread
Returns current 1C:Enterprie Runtime thread from current debug context.void
init
(org.eclipse.jface.action.IAction action) void
init
(org.eclipse.ui.IWorkbenchWindow window) void
run
(org.eclipse.jface.action.IAction action) void
selectionChanged
(org.eclipse.jface.action.IAction action, ISelection selection) void
setActiveEditor
(org.eclipse.jface.action.IAction action, org.eclipse.ui.IEditorPart targetEditor) protected void
Make the expression view visible or open one if required.Methods inherited from class com._1c.g5.v8.dt.internal.debug.ui.actions.AbstractDelegateAction
getCurrentSelection, getPart, getWorkbenchWindow, runWithEvent, setActivePart, showErrorMessage
-
Constructor Details
-
InspectActionDelegate
public InspectActionDelegate()
-
-
Method Details
-
run
public void run(org.eclipse.jface.action.IAction action) - Specified by:
run
in interfaceorg.eclipse.ui.IActionDelegate
-
selectionChanged
- Specified by:
selectionChanged
in interfaceorg.eclipse.ui.IActionDelegate
- Overrides:
selectionChanged
in classAbstractDelegateAction
-
setActiveEditor
public void setActiveEditor(org.eclipse.jface.action.IAction action, org.eclipse.ui.IEditorPart targetEditor) - Specified by:
setActiveEditor
in interfaceorg.eclipse.ui.IEditorActionDelegate
-
init
public void init(org.eclipse.jface.action.IAction action) - Specified by:
init
in interfaceorg.eclipse.ui.IActionDelegate2
- Overrides:
init
in classAbstractDelegateAction
-
init
public void init(org.eclipse.ui.IWorkbenchWindow window) - Specified by:
init
in interfaceorg.eclipse.ui.IWorkbenchWindowActionDelegate
-
dispose
public void dispose()- Specified by:
dispose
in interfaceorg.eclipse.ui.IActionDelegate2
- Specified by:
dispose
in interfaceorg.eclipse.ui.IWorkbenchWindowActionDelegate
- Overrides:
dispose
in classAbstractDelegateAction
-
debugContextChanged
public void debugContextChanged(org.eclipse.debug.ui.contexts.DebugContextEvent event) - Specified by:
debugContextChanged
in interfaceorg.eclipse.debug.ui.contexts.IDebugContextListener
-
getThread
Returns current 1C:Enterprie Runtime thread from current debug context. Can returnnull
, 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
Get currently selected expression asString
.- Parameters:
frame
- current stack frame from debug, can benull
- Returns:
- currently selected expression, or
null
if currently isn't selected anyone in target part
-
getTargetSelection
Get current selection of target part.- Returns:
- current selection, or
null
if currently isn't selected anyone in target part
-
getFrame
Get current stack frame from debug. Can returnnull
.- 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 ornull
if none.- Parameters:
part
- ornull
- 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 ornull
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.
-