Esempio n. 1
0
 public IDocumentTabUIContext Create <T>() where T : class, IDocumentTabUIContext
 {
     if (typeof(T) == typeof(IDocumentViewer))
     {
         var helper    = new DocumentViewerHelper();
         var uiCtxCtrl = new DocumentViewerControl(textBufferFactoryService, dsTextEditorFactoryService, helper);
         var uiContext = new DocumentViewer(wpfCommandService, documentViewerServiceImpl, menuService, uiCtxCtrl);
         helper.RealInstance = uiContext;
         documentViewerServiceImpl.RaiseAddedEvent(uiContext);
         return(uiContext);
     }
     return(null);
 }
Esempio n. 2
0
 DocumentViewer TryGetInstance() =>
 __documentViewer ?? (__documentViewer = DocumentViewer.TryGetInstance(textView));
Esempio n. 3
0
			public GuidObjectsProvider(DocumentViewer documentViewer) {
				this.documentViewer = documentViewer;
			}
Esempio n. 4
0
 public GuidObjectsProvider(DocumentViewer documentViewer)
 {
     this.documentViewer = documentViewer;
 }