C# Class dnSpy.Text.Editor.ReplEditor

Inheritance: IReplEditor2
显示文件 Open project: 0xd4d/dnSpy Class Usage Examples

Private Properties

Property Type Description
ChangedUserInput bool
CreateReplCommandInput ReplCommandInput
TextBuffer_Changed void
ToInputString string

Public Methods

Method Description
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

Private Methods

Method Description
ChangedUserInput ( TextContentChangedEventArgs e ) : bool
CreateReplCommandInput ( TextContentChangedEventArgs e ) : ReplCommandInput
TextBuffer_Changed ( object sender, TextContentChangedEventArgs e ) : void
ToInputString ( string text, string prefixString ) : string

Method Details

AddCode() public method

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
return void

AddCodeSubBuffer() public method

public AddCodeSubBuffer ( ) : void
return void

AddNewDocument() public method

public AddNewDocument ( ) : void
return void

AddOrUpdateOutputSubBuffer() public method

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
return void

AddSubBuffer() public method

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

CanReplace() public method

public CanReplace ( SnapshotSpan span, string newText ) : bool
span SnapshotSpan
newText string
return bool

ClearCurrentInput() public method

public ClearCurrentInput ( bool removePrompt ) : void
removePrompt bool
return void

ClearInput() public method

public ClearInput ( ) : void
return void

ClearPendingOutput() public method

public ClearPendingOutput ( ) : void
return void

ClearScreen() public method

public ClearScreen ( ) : void
return void

ClearUndoRedoHistory() public method

public ClearUndoRedoHistory ( ) : void
return void

CopyCode() public method

public CopyCode ( ) : void
return void

CreateEmptyLastLineIfNeededAndMoveCaret() public method

public CreateEmptyLastLineIfNeededAndMoveCaret ( ) : void
return void

DelayScreenRefresh() public method

public DelayScreenRefresh ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

FilterOffset() public method

public FilterOffset ( int offset ) : int
offset int
return int

FindBuffer() public method

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

FlushScriptOutput() public method

public FlushScriptOutput ( ) : void
return void

FlushScriptOutputUIThread() public method

public FlushScriptOutputUIThread ( ) : void
return void

GetCode() public method

public GetCode ( ) : string
return string

IReplEditor() public method

public IReplEditor ( IEnumerable text ) : void
text IEnumerable
return void

IReplEditor() public method

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

IReplEditor() public method

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

MoveTo() public method

public MoveTo ( int offset ) : void
offset int
return void

MoveToEnd() public method

public MoveToEnd ( ) : void
return void

OnCommandExecuted() public method

public OnCommandExecuted ( ) : void
return void

Options_OptionChanged() public method

public Options_OptionChanged ( object sender, EditorOptionChangedEventArgs e ) : void
sender object
e EditorOptionChangedEventArgs
return void

PrintPrompt() public method

public PrintPrompt ( ) : void
return void

RawAppend() public method

public RawAppend ( string text ) : void
text string
return void

RefreshScreen() public method

public RefreshScreen ( ) : void
return void

RefreshScreenHandler() public method

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

ReplEditor() public method

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
return System

Reset() public method

public Reset ( ) : void
return void

SaveCode() public method

public SaveCode ( string filenameNoExtension, string fileExtension, string filesFilter ) : void
filenameNoExtension string
fileExtension string
filesFilter string
return void

SaveText() public method

public SaveText ( string filenameNoExtension, string fileExtension, string filesFilter ) : void
filenameNoExtension string
fileExtension string
filesFilter string
return void

SaveToFile() public method

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

SelectNextCommand() public method

public SelectNextCommand ( ) : void
return void

SelectPreviousCommand() public method

public SelectPreviousCommand ( ) : void
return void

SelectSameTextNextCommand() public method

public SelectSameTextNextCommand ( ) : void
return void

SelectSameTextPreviousCommand() public method

public SelectSameTextPreviousCommand ( ) : void
return void

StopRefreshTimer() public method

public StopRefreshTimer ( ) : void
return void

TextBuffer_ChangedLowPriority() public method

public TextBuffer_ChangedLowPriority ( object sender, TextContentChangedEventArgs e ) : void
sender object
e TextContentChangedEventArgs
return void

TrySubmit() public method

public TrySubmit ( bool force ) : bool
force bool
return bool

UpdateCommand() public method

public UpdateCommand ( bool clearSearchText ) : void
clearSearchText bool
return void

UpdateRefreshScreenOnChange() public method

public UpdateRefreshScreenOnChange ( ) : void
return void

WpfTextView_Closed() public method

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

WpfTextView_Loaded() public method

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

WriteOffsetOfPrompt() public method

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