Пример #1
0
		public TextEditor CreateProjectedEditor (DocumentContext originalContext)
		{
			if (projectedEditor == null) {
				projectedEditor = TextEditorFactory.CreateNewEditor (Document, TextEditorType.Projection);
				projectedDocumentContext = new ProjectedDocumentContext (projectedEditor, originalContext);
				projectedEditor.InitializeExtensionChain (projectedDocumentContext);
				projectedProjections.InstallListener (projectedEditor);
			}
			return projectedEditor;
		}
Пример #2
0
 public TextEditor CreateProjectedEditor(DocumentContext originalContext)
 {
     if (projectedEditor == null)
     {
         projectedEditor          = TextEditorFactory.CreateNewEditor(Document, TextEditorType.Projection);
         projectedDocumentContext = new ProjectedDocumentContext(projectedEditor, originalContext);
         projectedEditor.InitializeExtensionChain(projectedDocumentContext);
         projectedProjections.InstallListener(projectedEditor);
     }
     return(projectedEditor);
 }