C# Class Microsoft.R.Components.History.Implementation.RHistory

Inheritance: IRHistory
Show file Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method Description
AddToHistory ( string text ) : void
ClearHistoryEntrySelection ( ) : void
CopySelection ( ) : void
DeleteAllHistoryEntries ( ) : void
DeleteSelectedHistoryEntries ( ) : void
DeselectHistoryEntry ( int lineNumber ) : SnapshotSpan
Dispose ( ) : void
GetAllHistoryEntrySpans ( ) : IReadOnlyList
GetOrCreateVisualComponent ( IRHistoryVisualComponentContainerFactory visualComponentContainerFactory, int instanceId ) : IRHistoryWindowVisualComponent
GetSelectedHistoryEntrySpans ( ) : IReadOnlyList
GetSelectedText ( ) : string
NextEntry ( ) : void
PreviousEntry ( ) : void
RHistory ( IRInteractiveWorkflow interactiveWorkflow, ITextBuffer textBuffer, IFileSystem fileSystem, IRSettings settings, IEditorOperationsFactoryService editorOperationsFactory, IRtfBuilderService rtfBuilderService, System.Action dispose ) : System
ScrollPageDown ( ) : void
ScrollPageUp ( ) : void
ScrollToBottom ( ) : void
ScrollToTop ( ) : void
SelectAllEntries ( ) : void
SelectHistoryEntries ( IEnumerable lineNumbers ) : void
SelectHistoryEntry ( int lineNumber ) : SnapshotSpan
SelectNextHistoryEntry ( ) : void
SelectPreviousHistoryEntry ( ) : void
SendSelectedToRepl ( ) : void
SendSelectedToTextView ( ITextView textView ) : void
ToggleHistoryEntrySelection ( int lineNumber ) : SnapshotSpan
TryLoadFromFile ( string path ) : bool
TrySaveToFile ( string path ) : bool

Private Methods

Method Description
AdjustAddToHistoryScrolling ( ) : IDisposable
CreateEntries ( string historyLines ) : void
DeleteAllEntries ( ) : void
DeleteSelectedTrackingSpans ( ) : void
EditTextBuffer ( ) : IDisposable
GetHistoryEntryFromLineNumber ( int lineNumber ) : IRHistoryEntry
GetHistoryEntryFromPosition ( int position ) : IRHistoryEntry
MakeTextBufferReadOnly ( ) : void
OnSelectionChanged ( ) : void
SelectAndDispalyEntry ( IRHistoryEntry entryToSelect, ViewRelativePosition relativeTo ) : void

Method Details

AddToHistory() public method

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

ClearHistoryEntrySelection() public method

public ClearHistoryEntrySelection ( ) : void
return void

CopySelection() public method

public CopySelection ( ) : void
return void

DeleteAllHistoryEntries() public method

public DeleteAllHistoryEntries ( ) : void
return void

DeleteSelectedHistoryEntries() public method

public DeleteSelectedHistoryEntries ( ) : void
return void

DeselectHistoryEntry() public method

public DeselectHistoryEntry ( int lineNumber ) : SnapshotSpan
lineNumber int
return SnapshotSpan

Dispose() public method

public Dispose ( ) : void
return void

GetAllHistoryEntrySpans() public method

public GetAllHistoryEntrySpans ( ) : IReadOnlyList
return IReadOnlyList

GetOrCreateVisualComponent() public method

public GetOrCreateVisualComponent ( IRHistoryVisualComponentContainerFactory visualComponentContainerFactory, int instanceId ) : IRHistoryWindowVisualComponent
visualComponentContainerFactory IRHistoryVisualComponentContainerFactory
instanceId int
return IRHistoryWindowVisualComponent

GetSelectedHistoryEntrySpans() public method

public GetSelectedHistoryEntrySpans ( ) : IReadOnlyList
return IReadOnlyList

GetSelectedText() public method

public GetSelectedText ( ) : string
return string

NextEntry() public method

public NextEntry ( ) : void
return void

PreviousEntry() public method

public PreviousEntry ( ) : void
return void

RHistory() public method

public RHistory ( IRInteractiveWorkflow interactiveWorkflow, ITextBuffer textBuffer, IFileSystem fileSystem, IRSettings settings, IEditorOperationsFactoryService editorOperationsFactory, IRtfBuilderService rtfBuilderService, System.Action dispose ) : System
interactiveWorkflow IRInteractiveWorkflow
textBuffer ITextBuffer
fileSystem IFileSystem
settings IRSettings
editorOperationsFactory IEditorOperationsFactoryService
rtfBuilderService IRtfBuilderService
dispose System.Action
return System

ScrollPageDown() public method

public ScrollPageDown ( ) : void
return void

ScrollPageUp() public method

public ScrollPageUp ( ) : void
return void

ScrollToBottom() public method

public ScrollToBottom ( ) : void
return void

ScrollToTop() public method

public ScrollToTop ( ) : void
return void

SelectAllEntries() public method

public SelectAllEntries ( ) : void
return void

SelectHistoryEntries() public method

public SelectHistoryEntries ( IEnumerable lineNumbers ) : void
lineNumbers IEnumerable
return void

SelectHistoryEntry() public method

public SelectHistoryEntry ( int lineNumber ) : SnapshotSpan
lineNumber int
return SnapshotSpan

SelectNextHistoryEntry() public method

public SelectNextHistoryEntry ( ) : void
return void

SelectPreviousHistoryEntry() public method

public SelectPreviousHistoryEntry ( ) : void
return void

SendSelectedToRepl() public method

public SendSelectedToRepl ( ) : void
return void

SendSelectedToTextView() public method

public SendSelectedToTextView ( ITextView textView ) : void
textView ITextView
return void

ToggleHistoryEntrySelection() public method

public ToggleHistoryEntrySelection ( int lineNumber ) : SnapshotSpan
lineNumber int
return SnapshotSpan

TryLoadFromFile() public method

public TryLoadFromFile ( string path ) : bool
path string
return bool

TrySaveToFile() public method

public TrySaveToFile ( string path ) : bool
path string
return bool