Ejemplo n.º 1
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();
		}
Ejemplo n.º 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();
        }