public VsfVsTestBase() { if ( Application.Current == null ) { new Application(); } this.editorHost = GetOrCreateEditorHost(); }
public VsfVsTestBase() { if (Application.Current == null) { new Application(); } this.editorHost = GetOrCreateEditorHost(); }
private VsfEditorHost GetOrCreateEditorHost() { if (cachedEditorHost == null) { var editorHostFactory = new EditorHostFactory(); var catalog = new AggregateCatalog( new AssemblyCatalog(typeof(LanguageFactory).Assembly), new AssemblyCatalog(typeof(PkgSource).Assembly), new AssemblyCatalog(typeof(TextBufferBraces).Assembly) ); editorHostFactory.Add(catalog); var compositionContainer = editorHostFactory.CreateCompositionContainer(); cachedEditorHost = new VsfEditorHost(compositionContainer); } return(cachedEditorHost); }
private VsfEditorHost GetOrCreateEditorHost() { if (cachedEditorHost == null) { var editorHostFactory = new EditorHostFactory(); var catalog = new AggregateCatalog( new AssemblyCatalog(typeof(IUpdatableSettings).Assembly), // Viasfora.Settings new AssemblyCatalog(typeof(LanguageFactory).Assembly), // Viasfora.Languages new AssemblyCatalog(typeof(Guids).Assembly), // Viasfora.Core new AssemblyCatalog(typeof(TextBufferBraces).Assembly), // Viasfora.Rainbow new AssemblyCatalog(typeof(XmlTaggerProvider).Assembly) // Viasfora.Xml ); editorHostFactory.Add(catalog); var compositionContainer = editorHostFactory.CreateCompositionContainer(); cachedEditorHost = new VsfEditorHost(compositionContainer); } return(cachedEditorHost); }
private VsfEditorHost GetOrCreateEditorHost() { if ( cachedEditorHost == null ) { var editorHostFactory = new EditorHostFactory(); var catalog = new AggregateCatalog( new AssemblyCatalog(typeof(LanguageFactory).Assembly), new AssemblyCatalog(typeof(PkgSource).Assembly), new AssemblyCatalog(typeof(TextBufferBraces).Assembly) ); editorHostFactory.Add(catalog); var compositionContainer = editorHostFactory.CreateCompositionContainer(); cachedEditorHost = new VsfEditorHost(compositionContainer); } return cachedEditorHost; }
private VsfEditorHost GetOrCreateEditorHost() { if ( cachedEditorHost == null ) { var editorHostFactory = new EditorHostFactory(); editorHostFactory.Add(new AssemblyCatalog(typeof(IVsfSettings).Assembly)); var compositionContainer = editorHostFactory.CreateCompositionContainer(); cachedEditorHost = new VsfEditorHost(compositionContainer); } return cachedEditorHost; }