C# 클래스 dnSpy.Text.Editor.ReplEditor

상속: IReplEditor2
파일 보기 프로젝트 열기: 0xd4d/dnSpy 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ChangedUserInput bool
CreateReplCommandInput ReplCommandInput
TextBuffer_Changed void
ToInputString string

공개 메소드들

메소드 설명
AddCode ( StringBuilder sb, dnSpy.Text.Editor.ReplSubBuffer buf, int startOffset, int endOffset ) : void
AddCodeSubBuffer ( ) : void
AddNewDocument ( ) : void
AddOrUpdateOutputSubBuffer ( ) : void

If the previous completed sub buffer is an output sub buffer, update it to include the new output, else create a new one.

AddSubBuffer ( dnSpy.Text.Editor.ReplSubBuffer buffer ) : void
CanReplace ( SnapshotSpan span, string newText ) : bool
ClearCurrentInput ( bool removePrompt ) : void
ClearInput ( ) : void
ClearPendingOutput ( ) : void
ClearScreen ( ) : void
ClearUndoRedoHistory ( ) : void
CopyCode ( ) : void
CreateEmptyLastLineIfNeededAndMoveCaret ( ) : void
DelayScreenRefresh ( ) : void
Dispose ( ) : void
FilterOffset ( int offset ) : int
FindBuffer ( int offset ) : dnSpy.Text.Editor.ReplSubBufferInfo
FlushScriptOutput ( ) : void
FlushScriptOutputUIThread ( ) : void
GetCode ( ) : string
IReplEditor ( IEnumerable text ) : void
IReplEditor ( string text, TextColor color, bool startOnNewLine ) : void
IReplEditor ( string text, object color, bool startOnNewLine ) : void
MoveTo ( int offset ) : void
MoveToEnd ( ) : void
OnCommandExecuted ( ) : void
Options_OptionChanged ( object sender, EditorOptionChangedEventArgs e ) : void
PrintPrompt ( ) : void
RawAppend ( string text ) : void
RefreshScreen ( ) : void
RefreshScreenHandler ( object sender, EventArgs e ) : void
ReplEditor ( dnSpy.Contracts.Text.Editor.ReplEditorOptions options, IDsTextEditorFactoryService dsTextEditorFactoryService, IContentTypeRegistryService contentTypeRegistryService, ITextBufferFactoryService textBufferFactoryService, IEditorOperationsFactoryService editorOperationsFactoryService, IEditorOptionsFactoryService editorOptionsFactoryService, IClassificationTypeRegistryService classificationTypeRegistryService, IThemeClassificationTypeService themeClassificationTypeService, IPickSaveFilename pickSaveFilename, ITextViewUndoManagerProvider textViewUndoManagerProvider ) : System
Reset ( ) : void
SaveCode ( string filenameNoExtension, string fileExtension, string filesFilter ) : void
SaveText ( string filenameNoExtension, string fileExtension, string filesFilter ) : void
SaveToFile ( string filenameNoExtension, string fileExtension, string filesFilter, string fileContents ) : void
SelectNextCommand ( ) : void
SelectPreviousCommand ( ) : void
SelectSameTextNextCommand ( ) : void
SelectSameTextPreviousCommand ( ) : void
StopRefreshTimer ( ) : void
TextBuffer_ChangedLowPriority ( object sender, TextContentChangedEventArgs e ) : void
TrySubmit ( bool force ) : bool
UpdateCommand ( bool clearSearchText ) : void
UpdateRefreshScreenOnChange ( ) : void
WpfTextView_Closed ( object sender, EventArgs e ) : void
WpfTextView_Loaded ( object sender, RoutedEventArgs e ) : void
WriteOffsetOfPrompt ( int newValue, bool force = false ) : void

비공개 메소드들

메소드 설명
ChangedUserInput ( TextContentChangedEventArgs e ) : bool
CreateReplCommandInput ( TextContentChangedEventArgs e ) : ReplCommandInput
TextBuffer_Changed ( object sender, TextContentChangedEventArgs e ) : void
ToInputString ( string text, string prefixString ) : string

메소드 상세

AddCode() 공개 메소드

public AddCode ( StringBuilder sb, dnSpy.Text.Editor.ReplSubBuffer buf, int startOffset, int endOffset ) : void
sb StringBuilder
buf dnSpy.Text.Editor.ReplSubBuffer
startOffset int
endOffset int
리턴 void

AddCodeSubBuffer() 공개 메소드

public AddCodeSubBuffer ( ) : void
리턴 void

AddNewDocument() 공개 메소드

public AddNewDocument ( ) : void
리턴 void

AddOrUpdateOutputSubBuffer() 공개 메소드

If the previous completed sub buffer is an output sub buffer, update it to include the new output, else create a new one.
public AddOrUpdateOutputSubBuffer ( ) : void
리턴 void

AddSubBuffer() 공개 메소드

public AddSubBuffer ( dnSpy.Text.Editor.ReplSubBuffer buffer ) : void
buffer dnSpy.Text.Editor.ReplSubBuffer
리턴 void

CanReplace() 공개 메소드

public CanReplace ( SnapshotSpan span, string newText ) : bool
span SnapshotSpan
newText string
리턴 bool

ClearCurrentInput() 공개 메소드

public ClearCurrentInput ( bool removePrompt ) : void
removePrompt bool
리턴 void

ClearInput() 공개 메소드

public ClearInput ( ) : void
리턴 void

ClearPendingOutput() 공개 메소드

public ClearPendingOutput ( ) : void
리턴 void

ClearScreen() 공개 메소드

public ClearScreen ( ) : void
리턴 void

ClearUndoRedoHistory() 공개 메소드

public ClearUndoRedoHistory ( ) : void
리턴 void

CopyCode() 공개 메소드

public CopyCode ( ) : void
리턴 void

CreateEmptyLastLineIfNeededAndMoveCaret() 공개 메소드

public CreateEmptyLastLineIfNeededAndMoveCaret ( ) : void
리턴 void

DelayScreenRefresh() 공개 메소드

public DelayScreenRefresh ( ) : void
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

FilterOffset() 공개 메소드

public FilterOffset ( int offset ) : int
offset int
리턴 int

FindBuffer() 공개 메소드

public FindBuffer ( int offset ) : dnSpy.Text.Editor.ReplSubBufferInfo
offset int
리턴 dnSpy.Text.Editor.ReplSubBufferInfo

FlushScriptOutput() 공개 메소드

public FlushScriptOutput ( ) : void
리턴 void

FlushScriptOutputUIThread() 공개 메소드

public FlushScriptOutputUIThread ( ) : void
리턴 void

GetCode() 공개 메소드

public GetCode ( ) : string
리턴 string

IReplEditor() 공개 메소드

public IReplEditor ( IEnumerable text ) : void
text IEnumerable
리턴 void

IReplEditor() 공개 메소드

public IReplEditor ( string text, TextColor color, bool startOnNewLine ) : void
text string
color TextColor
startOnNewLine bool
리턴 void

IReplEditor() 공개 메소드

public IReplEditor ( string text, object color, bool startOnNewLine ) : void
text string
color object
startOnNewLine bool
리턴 void

MoveTo() 공개 메소드

public MoveTo ( int offset ) : void
offset int
리턴 void

MoveToEnd() 공개 메소드

public MoveToEnd ( ) : void
리턴 void

OnCommandExecuted() 공개 메소드

public OnCommandExecuted ( ) : void
리턴 void

Options_OptionChanged() 공개 메소드

public Options_OptionChanged ( object sender, EditorOptionChangedEventArgs e ) : void
sender object
e EditorOptionChangedEventArgs
리턴 void

PrintPrompt() 공개 메소드

public PrintPrompt ( ) : void
리턴 void

RawAppend() 공개 메소드

public RawAppend ( string text ) : void
text string
리턴 void

RefreshScreen() 공개 메소드

public RefreshScreen ( ) : void
리턴 void

RefreshScreenHandler() 공개 메소드

public RefreshScreenHandler ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void

ReplEditor() 공개 메소드

public ReplEditor ( dnSpy.Contracts.Text.Editor.ReplEditorOptions options, IDsTextEditorFactoryService dsTextEditorFactoryService, IContentTypeRegistryService contentTypeRegistryService, ITextBufferFactoryService textBufferFactoryService, IEditorOperationsFactoryService editorOperationsFactoryService, IEditorOptionsFactoryService editorOptionsFactoryService, IClassificationTypeRegistryService classificationTypeRegistryService, IThemeClassificationTypeService themeClassificationTypeService, IPickSaveFilename pickSaveFilename, ITextViewUndoManagerProvider textViewUndoManagerProvider ) : System
options dnSpy.Contracts.Text.Editor.ReplEditorOptions
dsTextEditorFactoryService IDsTextEditorFactoryService
contentTypeRegistryService IContentTypeRegistryService
textBufferFactoryService ITextBufferFactoryService
editorOperationsFactoryService IEditorOperationsFactoryService
editorOptionsFactoryService IEditorOptionsFactoryService
classificationTypeRegistryService IClassificationTypeRegistryService
themeClassificationTypeService IThemeClassificationTypeService
pickSaveFilename IPickSaveFilename
textViewUndoManagerProvider ITextViewUndoManagerProvider
리턴 System

Reset() 공개 메소드

public Reset ( ) : void
리턴 void

SaveCode() 공개 메소드

public SaveCode ( string filenameNoExtension, string fileExtension, string filesFilter ) : void
filenameNoExtension string
fileExtension string
filesFilter string
리턴 void

SaveText() 공개 메소드

public SaveText ( string filenameNoExtension, string fileExtension, string filesFilter ) : void
filenameNoExtension string
fileExtension string
filesFilter string
리턴 void

SaveToFile() 공개 메소드

public SaveToFile ( string filenameNoExtension, string fileExtension, string filesFilter, string fileContents ) : void
filenameNoExtension string
fileExtension string
filesFilter string
fileContents string
리턴 void

SelectNextCommand() 공개 메소드

public SelectNextCommand ( ) : void
리턴 void

SelectPreviousCommand() 공개 메소드

public SelectPreviousCommand ( ) : void
리턴 void

SelectSameTextNextCommand() 공개 메소드

public SelectSameTextNextCommand ( ) : void
리턴 void

SelectSameTextPreviousCommand() 공개 메소드

public SelectSameTextPreviousCommand ( ) : void
리턴 void

StopRefreshTimer() 공개 메소드

public StopRefreshTimer ( ) : void
리턴 void

TextBuffer_ChangedLowPriority() 공개 메소드

public TextBuffer_ChangedLowPriority ( object sender, TextContentChangedEventArgs e ) : void
sender object
e TextContentChangedEventArgs
리턴 void

TrySubmit() 공개 메소드

public TrySubmit ( bool force ) : bool
force bool
리턴 bool

UpdateCommand() 공개 메소드

public UpdateCommand ( bool clearSearchText ) : void
clearSearchText bool
리턴 void

UpdateRefreshScreenOnChange() 공개 메소드

public UpdateRefreshScreenOnChange ( ) : void
리턴 void

WpfTextView_Closed() 공개 메소드

public WpfTextView_Closed ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void

WpfTextView_Loaded() 공개 메소드

public WpfTextView_Loaded ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
리턴 void

WriteOffsetOfPrompt() 공개 메소드

public WriteOffsetOfPrompt ( int newValue, bool force = false ) : void
newValue int
force bool
리턴 void