예제 #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;
 }