Class CallStackViewModel
- Namespace
- Loehnert.Lisrt.Scripting.CallStack.ViewModels
- Assembly
- Loehnert.Lisrt.Scripting.dll
View model for a IronPython.Runtime.Exceptions.TraceBackFrame call stack.
public class CallStackViewModel : Tool, IViewAware, IChild, ICallStackViewModel, ITool, ILayoutItem, IScreen, IHaveDisplayName, IActivate, IDeactivate, IGuardClose, IClose, INotifyPropertyChangedEx, INotifyPropertyChanged
- Inheritance
-
PropertyChangedBaseViewAwareScreenCallStackViewModel
- Implements
-
IViewAwareIChildIScreenIHaveDisplayNameIActivateIDeactivateIGuardCloseICloseINotifyPropertyChangedEx
- Inherited Members
-
Screen.OnInitialize()Screen.OnActivate()Screen.ParentScreen.IsActiveScreen.IsInitializedScreen.ActivatedScreen.AttemptingDeactivationScreen.DeactivatedViewAware.DefaultContextViewAware.ViewsViewAware.ViewAttachedPropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Constructors
CallStackViewModel(ObservableStack<TraceBackFrame>, IShell)
Initializes a new instance of the CallStackViewModel class. Calls the CallStackViewModel(ObservableStack<TraceBackFrame>, IShell, IEventAggregator, IEnumerable<IEditorFactory>) constructor. Missing parameters are initialized by the Caliburn.Micro.IoC.
public CallStackViewModel(ObservableStack<TraceBackFrame> stack, IShell shell)
Parameters
stack
ObservableStack<TraceBackFrame>Stack to show.
shell
IShellIScriptShell which holds the view model.
Exceptions
- ArgumentException
Thrown when shell isn't of type IScriptShell.
- ArgumentNullException
Thrown when
stack
orshell
is null.
CallStackViewModel(ObservableStack<TraceBackFrame>, IShell, IEventAggregator, IEnumerable<IEditorFactory>)
Initializes a new instance of the CallStackViewModel class.
public CallStackViewModel(ObservableStack<TraceBackFrame> stack, IShell shell, IEventAggregator eventAggregator, IEnumerable<IEditorFactory> editorFactories)
Parameters
stack
ObservableStack<TraceBackFrame>Stack to show.
shell
IShellIScriptShell which holds the view model.
eventAggregator
IEventAggregatorEvent aggregator.
editorFactories
IEnumerable<IEditorFactory>Editor factories.
Exceptions
- ArgumentException
Thrown when shell isn't of type IScriptShell.
- ArgumentNullException
Thrown when
stack
orshell
is null.
Properties
CallStack
Gets the call stack.
public ObservableStack<TraceBackFrame> CallStack { get; }
Property Value
- ObservableStack<TraceBackFrame>
DebugIsDisabled
Gets a value indicating whether debug is enabled.
public bool DebugIsDisabled { get; }
Property Value
DisplayName
Gets the display name.
public override string DisplayName { get; }
Property Value
PreferredLocation
Gets the preferred location for the tool.
public override PaneLocation PreferredLocation { get; }
Property Value
Methods
OpenDocument(TraceBackFrame)
Opens the document for the frame in the parent shell.
public void OpenDocument(TraceBackFrame frame)
Parameters
frame
TraceBackFrameTrace back frame with file name and called line.