C# 클래스 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.
상속: IWpfTextViewCreationListener, IWpfTextViewConnectionListener
파일 보기 프로젝트 열기: Microsoft/RTVS

Private Properties

프로퍼티 타입 설명
CheckForViewlessTextBuffers void
EnsureInitialized void
OnIdle void
OnTerminateApp void

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

FlushPendingAction() 보호된 메소드

protected FlushPendingAction ( ) : void
리턴 void

GetFirstViewForBuffer() 공개 정적인 메소드

public static GetFirstViewForBuffer ( ITextBuffer textBuffer ) : ITextView
textBuffer ITextBuffer
리턴 ITextView

GetTextViewDataForBuffer() 공개 정적인 메소드

public static GetTextViewDataForBuffer ( ITextBuffer textBuffer ) : Microsoft.Languages.Editor.Controller.TextViewData
textBuffer ITextBuffer
리턴 Microsoft.Languages.Editor.Controller.TextViewData

GetViewsForBuffer() 공개 정적인 메소드

public static GetViewsForBuffer ( ITextBuffer textBuffer ) : IEnumerable
textBuffer ITextBuffer
리턴 IEnumerable

OnTextBufferCreated() 보호된 메소드

Called once for every new text buffer.
protected OnTextBufferCreated ( ITextView textView, ITextBuffer textBuffer ) : void
textView ITextView
textBuffer ITextBuffer
리턴 void

OnTextBufferDisposing() 보호된 메소드

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

OnTextViewConnected() 보호된 메소드

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

OnTextViewCreated() 보호된 메소드

Called once for every new text view.
protected OnTextViewCreated ( ITextView textView ) : void
textView ITextView
리턴 void

OnTextViewDisconnected() 보호된 메소드

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

OnTextViewGotAggregateFocus() 보호된 메소드

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
리턴 void

StaticFlushPendingAction() 공개 정적인 메소드

Can be called from tests when idle doesn't occur
public static StaticFlushPendingAction ( ) : void
리턴 void

SubjectBuffersConnected() 공개 메소드

public SubjectBuffersConnected ( IWpfTextView textView, ConnectionReason reason, Collection subjectBuffers ) : void
textView IWpfTextView
reason ConnectionReason
subjectBuffers Collection
리턴 void

SubjectBuffersDisconnected() 공개 메소드

public SubjectBuffersDisconnected ( IWpfTextView textView, ConnectionReason reason, Collection subjectBuffers ) : void
textView IWpfTextView
reason ConnectionReason
subjectBuffers Collection
리턴 void

TextViewConnectionListener() 보호된 메소드

protected TextViewConnectionListener ( ) : System
리턴 System

TextViewCreated() 공개 메소드

public TextViewCreated ( IWpfTextView textView ) : void
textView IWpfTextView
리턴 void