C# Class Microsoft.Languages.Editor.Controller.TextViewConnectionListener

Base text view connection listener. Generates norifications to derived classes when text buffer is created, when secondary buffer is connected or when view gets aggregate focus.
Inheritance: IWpfTextViewCreationListener, IWpfTextViewConnectionListener
Afficher le fichier Open project: Microsoft/RTVS

Private Properties

Свойство Type Description
CheckForViewlessTextBuffers void
EnsureInitialized void
OnIdle void
OnTerminateApp void

Méthodes publiques

Méthode Description
GetFirstViewForBuffer ( ITextBuffer textBuffer ) : ITextView
GetTextViewDataForBuffer ( ITextBuffer textBuffer ) : Microsoft.Languages.Editor.Controller.TextViewData
GetViewsForBuffer ( ITextBuffer textBuffer ) : IEnumerable
StaticFlushPendingAction ( ) : void

Can be called from tests when idle doesn't occur

SubjectBuffersConnected ( IWpfTextView textView, ConnectionReason reason, Collection subjectBuffers ) : void
SubjectBuffersDisconnected ( IWpfTextView textView, ConnectionReason reason, Collection subjectBuffers ) : void
TextViewCreated ( IWpfTextView textView ) : void

Méthodes protégées

Méthode Description
FlushPendingAction ( ) : void
OnTextBufferCreated ( ITextView textView, ITextBuffer textBuffer ) : void

Called once for every new text buffer.

OnTextBufferDisposing ( ITextBuffer textBuffer ) : void

Called once per buffer, when it detached from its last view

OnTextViewConnected ( ITextView textView, ITextBuffer textBuffer ) : void

Called when text view is connected to the subject buffer

OnTextViewCreated ( ITextView textView ) : void

Called once for every new text view.

OnTextViewDisconnected ( ITextView textView, ITextBuffer textBuffer ) : void

Called when text view is disconnected from the subject buffer

OnTextViewGotAggregateFocus ( ITextView textView, ITextBuffer textBuffer ) : void

Called when view gets aggregate focus. Typically implemented if derived class needs to access native VS adapters, like IVsTextView.

TextViewConnectionListener ( ) : System

Private Methods

Méthode Description
CheckForViewlessTextBuffers ( ) : void

Called delayed on the main thread to catch text buffers that don't have a view anymore

EnsureInitialized ( ) : void
OnIdle ( object sender, EventArgs e ) : void
OnTerminateApp ( object sender, EventArgs eventArgs ) : void

Method Details

FlushPendingAction() protected méthode

protected FlushPendingAction ( ) : void
Résultat void

GetFirstViewForBuffer() public static méthode

public static GetFirstViewForBuffer ( ITextBuffer textBuffer ) : ITextView
textBuffer ITextBuffer
Résultat ITextView

GetTextViewDataForBuffer() public static méthode

public static GetTextViewDataForBuffer ( ITextBuffer textBuffer ) : Microsoft.Languages.Editor.Controller.TextViewData
textBuffer ITextBuffer
Résultat Microsoft.Languages.Editor.Controller.TextViewData

GetViewsForBuffer() public static méthode

public static GetViewsForBuffer ( ITextBuffer textBuffer ) : IEnumerable
textBuffer ITextBuffer
Résultat IEnumerable

OnTextBufferCreated() protected méthode

Called once for every new text buffer.
protected OnTextBufferCreated ( ITextView textView, ITextBuffer textBuffer ) : void
textView ITextView
textBuffer ITextBuffer
Résultat void

OnTextBufferDisposing() protected méthode

Called once per buffer, when it detached from its last view
protected OnTextBufferDisposing ( ITextBuffer textBuffer ) : void
textBuffer ITextBuffer
Résultat void

OnTextViewConnected() protected méthode

Called when text view is connected to the subject buffer
protected OnTextViewConnected ( ITextView textView, ITextBuffer textBuffer ) : void
textView ITextView
textBuffer ITextBuffer
Résultat void

OnTextViewCreated() protected méthode

Called once for every new text view.
protected OnTextViewCreated ( ITextView textView ) : void
textView ITextView
Résultat void

OnTextViewDisconnected() protected méthode

Called when text view is disconnected from the subject buffer
protected OnTextViewDisconnected ( ITextView textView, ITextBuffer textBuffer ) : void
textView ITextView
textBuffer ITextBuffer
Résultat void

OnTextViewGotAggregateFocus() protected méthode

Called when view gets aggregate focus. Typically implemented if derived class needs to access native VS adapters, like IVsTextView.
protected OnTextViewGotAggregateFocus ( ITextView textView, ITextBuffer textBuffer ) : void
textView ITextView
textBuffer ITextBuffer
Résultat void

StaticFlushPendingAction() public static méthode

Can be called from tests when idle doesn't occur
public static StaticFlushPendingAction ( ) : void
Résultat void

SubjectBuffersConnected() public méthode

public SubjectBuffersConnected ( IWpfTextView textView, ConnectionReason reason, Collection subjectBuffers ) : void
textView IWpfTextView
reason ConnectionReason
subjectBuffers Collection
Résultat void

SubjectBuffersDisconnected() public méthode

public SubjectBuffersDisconnected ( IWpfTextView textView, ConnectionReason reason, Collection subjectBuffers ) : void
textView IWpfTextView
reason ConnectionReason
subjectBuffers Collection
Résultat void

TextViewConnectionListener() protected méthode

protected TextViewConnectionListener ( ) : System
Résultat System

TextViewCreated() public méthode

public TextViewCreated ( IWpfTextView textView ) : void
textView IWpfTextView
Résultat void