Table of Contents

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
PropertyChangedBase
ViewAware
Screen
CallStackViewModel
Implements
IViewAware
IChild
IScreen
IHaveDisplayName
IActivate
IDeactivate
IGuardClose
IClose
INotifyPropertyChangedEx
Inherited Members
Screen.OnInitialize()
Screen.OnActivate()
Screen.Parent
Screen.IsActive
Screen.IsInitialized
Screen.Activated
Screen.AttemptingDeactivation
Screen.Deactivated
ViewAware.DefaultContext
ViewAware.Views
ViewAware.ViewAttached
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.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 IShell

IScriptShell which holds the view model.

Exceptions

ArgumentException

Thrown when shell isn't of type IScriptShell.

ArgumentNullException

Thrown when stack or shell 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 IShell

IScriptShell which holds the view model.

eventAggregator IEventAggregator

Event aggregator.

editorFactories IEnumerable<IEditorFactory>

Editor factories.

Exceptions

ArgumentException

Thrown when shell isn't of type IScriptShell.

ArgumentNullException

Thrown when stack or shell 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

bool

DisplayName

Gets the display name.

public override string DisplayName { get; }

Property Value

string

PreferredLocation

Gets the preferred location for the tool.

public override PaneLocation PreferredLocation { get; }

Property Value

PaneLocation

Methods

OpenDocument(TraceBackFrame)

Opens the document for the frame in the parent shell.

public void OpenDocument(TraceBackFrame frame)

Parameters

frame TraceBackFrame

Trace back frame with file name and called line.