C# Class Nitra.VisualStudio.Models.FileModel

Inheritance: IDisposable
Show file Open project: JetBrains/Nitra

Public Methods

Method Description
Dispose ( ) : void
FileModel ( FileId id, ITextBuffer textBuffer, Server server, Dispatcher dispatcher, IVsHierarchy hierarchy, string fullPath ) : Microsoft.VisualStudio.Text.Editor
GetOrAdd ( IWpfTextView wpfTextView ) : TextViewModel
Remove ( IWpfTextView wpfTextView ) : void
Response ( AsyncServerMessage msg ) : void
TextBuffer_Changed ( object sender, TextContentChangedEventArgs e ) : void
UpdateSpanInfos ( HighlightingType highlightingType, ImmutableArray spanInfos, FileVersion version ) : void

Private Methods

Method Description
ConvertMessageType ( CompilerMessageType type ) : TaskErrorCategory
GetClassifierOpt ( ) : NitraEditorClassifier
GetTextViewModel ( ) : TextViewModel
OnMouseHover ( TextViewModel textViewModel ) : void
SpanClassToBrush ( string spanClass, IWpfTextView _wpfTextView ) : Brush
Task_Navigate ( object sender, EventArgs e ) : void
UpdateCompilerMessages ( int index, CompilerMessage messages, int version ) : void
ViewActivated ( TextViewModel textViewModel ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

FileModel() public method

public FileModel ( FileId id, ITextBuffer textBuffer, Server server, Dispatcher dispatcher, IVsHierarchy hierarchy, string fullPath ) : Microsoft.VisualStudio.Text.Editor
id FileId
textBuffer ITextBuffer
server Server
dispatcher System.Windows.Threading.Dispatcher
hierarchy IVsHierarchy
fullPath string
return Microsoft.VisualStudio.Text.Editor

GetOrAdd() public method

public GetOrAdd ( IWpfTextView wpfTextView ) : TextViewModel
wpfTextView IWpfTextView
return TextViewModel

Remove() public method

public Remove ( IWpfTextView wpfTextView ) : void
wpfTextView IWpfTextView
return void

Response() public method

public Response ( AsyncServerMessage msg ) : void
msg AsyncServerMessage
return void

TextBuffer_Changed() public method

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

UpdateSpanInfos() public method

public UpdateSpanInfos ( HighlightingType highlightingType, ImmutableArray spanInfos, FileVersion version ) : void
highlightingType HighlightingType
spanInfos ImmutableArray
version FileVersion
return void