Class BaseEvaluationPanel
- Namespace
- Alternet.Scripter.Debugger.UI.AlternetUI
- Assembly
- Alternet.Scripter.Debugger.UI.AlternetUI.v10.dll
Represents a base panel for evaluating and managing variable expressions in a debugging context.
public abstract class BaseEvaluationPanel : Panel, INotifyPropertyChanged, ISupportInitialize, IComponent, IDisposable, INotifyDataErrorInfo, IDebuggerBaseEvaluationPanel, IDebuggerPanel
- Inheritance
-
BaseEvaluationPanel
- Implements
- Derived
Remarks
This abstract class provides functionality for displaying and interacting with variable evaluation results in a tree view. It includes commands for copying expressions and values, setting values, and managing evaluation tasks. Derived classes can extend or override its behavior to customize the evaluation panel.
Constructors
- BaseEvaluationPanel()
Initializes a new instance of the BaseEvaluationPanel class.
Properties
- CopyCommand
Gets the command used to copy the selected watch expression.
- CopyMenuItem
Gets the menu item associated with the "Copy" action.
- CopyValueCommand
Gets the command used to copy the selected watch evaluation result.
- CopyValueMenuItem
Gets the menu item associated with the "Copy Value" action.
- Debugger
Gets or sets
IScriptDebuggerBase
which variables will be managed by this class.
- IsSetValueCommandVisible
Gets a value indicating whether the "Set Value" command is visible.
- ResultsTreeView
Gets the tree control that displays the results in a hierarchical structure.
- SelectedResult
Gets the currently selected evaluation result from the results tree view.
- SelectedText
Gets a currently selected text.
- SelectedWatch
Gets a currently selected watch expression.
- SetValueCommand
Gets the command used to set a value in the selected watch.
- SetValueMenuItem
Gets the menu item associated with the "Set Value" action.
- SetValueSeparator
Gets the menu item that serves as a separator between "Set Value" and other menu items.
- TreeController
Gets the controller responsible for managing the evaluation results tree.
Methods
- CanRunCopyCommand()
Determines whether the "Copy" command can be executed based on the current state.
- CanRunSetValueCommand()
Determines whether the "Set Value" command can be executed based on the current state.
- CancelEvaluationAsync()
Cancels an evaluation task which is currently running.
- EvaluateVariables(IEnumerable<string>)
Evaluates values of given variables asynchronously.
- Localize()
Localizes string resources.
- OnContextMenuOpening(object?, CancelEventArgs)
Handles the event triggered before the context menu is displayed, allowing customization of menu items.
- OnDebuggerChanged(IScriptDebuggerBase?, IScriptDebuggerBase?)
Handles changes to the associated script debugger.
- OnDebuggingStopped(object?, DebuggingStoppedEventArgs)
Handles the event triggered when debugging stops.
- RunCopyCommand()
Copies the selected watch value to the clipboard.
- RunCopyValueCommand()
Copies the value of the currently selected result to the clipboard.
- RunSetValueCommand()
Displays a dialog to set the value of the selected node in the results tree view.
- UpdateResultsTreeView(Func<Task>)
Updates the results tree view by executing the specified asynchronous action.