public IFileTabUIContext Create <T>() where T : class, IFileTabUIContext { if (typeof(T) == typeof(ITextEditorUIContext)) { var ttRefFinder = new ToolTipReferenceFinder(); var uiContext = new TextEditorUIContext(wpfCommandManager, textEditorUIContextManagerImpl); var tec = new TextEditorControl(themeManager, new ToolTipHelper(codeToolTipManager, ttRefFinder), textEditorSettings, uiContext, uiContext, textLineObjectManager, imageManager, iconBarCommandManager); uiContext.Initialize(menuManager, tec); ttRefFinder.UIContext = uiContext; textEditorUIContextManagerImpl.RaiseAddedEvent(uiContext); return(uiContext); } return(null); }
public GuidObjectsCreator(TextEditorUIContext uiContext) { this.uiContext = uiContext; }