public VisualsFactory(ITextView textView, IClassifier classifier, Double maxLineWidth)
		{
			_textView = textView;
			_classifier = classifier;
			_maxLineWidth = maxLineWidth;

			/* 
			 * DocumentType("text.xml") = XmlWordClassificationLookup
			 * DocumentType("C#"), DocumentType("VB"), DocumentType("text") = ClassificationFormatMap
			 * Else = DefaultClassificationFormatMap
			 */

			_classificationFormatMap = Connector.Assets.ClassificationFormatMapSelector.Invoke(_textView.TextBuffer.DocumentType);
			_paragraphProperties = new TextFormattingParagraphProperties();
		}
Exemple #2
0
        public VisualsFactory(ITextView textView, IClassifier classifier, Double maxLineWidth)
        {
            _textView     = textView;
            _classifier   = classifier;
            _maxLineWidth = maxLineWidth;

            /*
             * DocumentType("text.xml") = XmlWordClassificationLookup
             * DocumentType("C#"), DocumentType("VB"), DocumentType("text") = ClassificationFormatMap
             * Else = DefaultClassificationFormatMap
             */

            _classificationFormatMap = Connector.Assets.ClassificationFormatMapSelector.Invoke(_textView.TextBuffer.DocumentType);
            _paragraphProperties     = new TextFormattingParagraphProperties();
        }