示例#1
0
 public VsfVsTestBase()
 {
     if ( Application.Current == null ) {
     new Application();
       }
       this.editorHost = GetOrCreateEditorHost();
 }
示例#2
0
 public VsfVsTestBase()
 {
     if (Application.Current == null)
     {
         new Application();
     }
     this.editorHost = GetOrCreateEditorHost();
 }
示例#3
0
 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);
 }
示例#4
0
 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);
 }
示例#5
0
 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;
 }
示例#6
0
 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;
 }