public DropDownBarClient(IWpfTextView textView, AnalysisItem classifier) { Assert.NotNull(textView, classifier); _classifier = classifier; _classifier.OnNewParseTree += ParserOnNewParseTree; _textView = textView; _dispatcher = Dispatcher.CurrentDispatcher; _textView.Caret.PositionChanged += CaretPositionChanged; BuildModel(); }
internal static bool TryGetAnalysis(ITextBuffer /*!*/ buffer, out AnalysisItem analysis) { return(buffer.Properties.TryGetProperty <AnalysisItem>(typeof(AnalysisItem), out analysis)); }
internal static bool TryGetAnalysis(ITextBuffer/*!*/ buffer, out AnalysisItem analysis) { return buffer.Properties.TryGetProperty<AnalysisItem>(typeof(AnalysisItem), out analysis); }