Class ErrorsPanel
- Namespace
- Alternet.Scripter.Debugger.UI.AlternetUI
- Assembly
- Alternet.Scripter.Debugger.UI.AlternetUI.v10.dll
Represents a user interface panel for displaying and managing compiler errors and warnings.
public class ErrorsPanel : Panel, INotifyPropertyChanged, ISupportInitialize, IComponent, IDisposable, INotifyDataErrorInfo, IDebuggerErrorsPanel, IDebuggerPanel
- Inheritance
-
ErrorsPanel
- Implements
Remarks
The ErrorsPanel control provides functionality to display a list of compiler errors and warnings, navigate between them, and interact with individual error items. It includes a toolbar for toggling the visibility of errors and warnings, and a context menu for additional actions such as copying error details or clearing the list. This control is designed to integrate with a debugger through the Debugger property.
Constructors
- ErrorsPanel()
Initializes a new instance of the ErrorsPanel class.
Properties
- Debugger
Gets or sets
IScriptDebuggerBase
which errors will be displayed by this user control.
- SelectedError
Gets currently selected error.
- ToolBar
Gets the toolbar associated with the control.
- UpdateCount
Gets panel update count.
Methods
- AddCompilerError(ScriptCompilationDiagnostic)
Adds specified error to the error's collection.
- AddCompilerErrors(ScriptCompilationDiagnostic[])
Adds specified errors to the error's collection.
- BeginUpdateState()
Prevents updating until calling DisableUpdateState() method.
- Clear(bool)
Clears error list.
- CreateSvgImages(double)
Creates ImageList with images for the errors panel
- DisableUpdateState()
Prevents updating until calling EnableUpdateState() method.
- EnableUpdateState()
Re-enables object state updating, that was turn of by calling DisableUpdateState() method. Use DisableUpdateState() and EnableUpdateState() to prevent notifying about updating the object state.
- EndUpdateState()
Re-enables updating, that was turn of by calling BeginUpdateState() method.
- Localize()
Localizes string resources.
- Reset(bool)
Resets user control to it's default state.
- UpdateState()
When implemented by a class, updates an object state.
Events
- ErrorClick
Occurs when a user clicks on the compiler error or warning.