public SilverlightMsTestMetadataExplorer(IShellLocks shellLocks, ISettingsStore settingsStore, SilverlightUnitTestProvider provider, Lifetime lifetime, ISolution solution, 
     IUnitTestElementManager unitTestElementManager, mstestlegacy::JetBrains.ReSharper.UnitTestProvider.MSTest.IMsTestElementFactory elementFactory, 
     IMainWindow mainWindow, IApplicationDescriptor applicationDescriptor)
 {
     Provider = provider;
     msTestAttributesProvider = new mstest10::JetBrains.ReSharper.UnitTestProvider.MSTest10.MsTestAttributesProvider();
     var msTestProvider = new mstest10::JetBrains.ReSharper.UnitTestProvider.MSTest10.MsTestProvider(shellLocks, settingsStore, msTestAttributesProvider, mainWindow, applicationDescriptor);
     var msTestServices = new mstest10::JetBrains.ReSharper.UnitTestProvider.MSTest10.MsTestServices(lifetime, solution, msTestProvider, settingsStore);
     msTestElementFactory = new mstest10::JetBrains.ReSharper.UnitTestProvider.MSTest10.MsTestElementFactory(msTestServices, unitTestElementManager);
     this.shellLocks = shellLocks;
     this.elementFactory = elementFactory;
 }
        public SilverlightMsTestMetadataExplorer(IShellLocks shellLocks, ISettingsStore settingsStore, SilverlightUnitTestProvider provider, Lifetime lifetime, ISolution solution,
                                                 IUnitTestElementManager unitTestElementManager, mstestlegacy::JetBrains.ReSharper.UnitTestProvider.MSTest.IMsTestElementFactory elementFactory,
                                                 IMainWindow mainWindow, IApplicationDescriptor applicationDescriptor)
        {
            Provider = provider;
            msTestAttributesProvider = new mstest10::JetBrains.ReSharper.UnitTestProvider.MSTest10.MsTestAttributesProvider();
            var msTestProvider = new mstest10::JetBrains.ReSharper.UnitTestProvider.MSTest10.MsTestProvider(shellLocks, settingsStore, msTestAttributesProvider, mainWindow, applicationDescriptor);
            var msTestServices = new mstest10::JetBrains.ReSharper.UnitTestProvider.MSTest10.MsTestServices(lifetime, solution, msTestProvider, settingsStore);

            msTestElementFactory = new mstest10::JetBrains.ReSharper.UnitTestProvider.MSTest10.MsTestElementFactory(msTestServices, unitTestElementManager);
            this.shellLocks      = shellLocks;
            this.elementFactory  = elementFactory;
        }
 public SettingsUpgrader(ISettingsStore settingsStore, IApplicationDescriptor applicationDescriptor, IShellLocks locks, ProductSettingsLocation productSettingsLocation, RunsProducts.ProductConfigurations productConfigurations)
 {
   var boundSettingsStore = settingsStore.BindToContextTransient(ContextRange.ManuallyRestrictWritesToOneContext((l, contexts) => contexts.Empty));
   Expression<Func<ZenCodingSettings, bool>> isUpgradedProperty = settings => settings.IsUpgraded;
   if (!boundSettingsStore.GetValue(isUpgradedProperty))
   {
     var settingsComponent = new ShellSettingsComponent(applicationDescriptor, locks, productSettingsLocation, productConfigurations);
     var oldSettings = new Settings();
     settingsComponent.LoadSettings(oldSettings, XmlExternalizationScope.UserSettings, oldSettings.GetType().Name);
     for (int i = 0; i < oldSettings.FileAssociations.Count; i++)
     {
       var association = oldSettings.FileAssociations[i];
       boundSettingsStore.SetIndexedValue((ZenCodingSettings settings) => settings.FileAssociations, i, association);
     }
     
     boundSettingsStore.SetValue(isUpgradedProperty, true);
   }
 }
        public SettingsUpgrader(ISettingsStore settingsStore, IApplicationDescriptor applicationDescriptor, IShellLocks locks, ProductSettingsLocation productSettingsLocation, RunsProducts.ProductConfigurations productConfigurations)
        {
            var boundSettingsStore = settingsStore.BindToContextTransient(ContextRange.ManuallyRestrictWritesToOneContext((l, contexts) => contexts.Empty));
            Expression <Func <ZenCodingSettings, bool> > isUpgradedProperty = settings => settings.IsUpgraded;

            if (!boundSettingsStore.GetValue(isUpgradedProperty))
            {
                var settingsComponent = new ShellSettingsComponent(applicationDescriptor, locks, productSettingsLocation, productConfigurations);
                var oldSettings       = new Settings();
                settingsComponent.LoadSettings(oldSettings, XmlExternalizationScope.UserSettings, oldSettings.GetType().Name);
                for (int i = 0; i < oldSettings.FileAssociations.Count; i++)
                {
                    var association = oldSettings.FileAssociations[i];
                    boundSettingsStore.SetIndexedValue((ZenCodingSettings settings) => settings.FileAssociations, i, association);
                }

                boundSettingsStore.SetValue(isUpgradedProperty, true);
            }
        }
 public GraphCodeToolWindow(IApplicationDescriptor applicationDescriptor)
     : base(applicationDescriptor)
 {
 }
Exemplo n.º 6
0
 public YouTrackExplorerWindowDescriptor(IApplicationDescriptor applicationDescriptor)
     : base(applicationDescriptor)
 {
 }
 public YouTrackExplorerWindowDescriptor(IApplicationDescriptor applicationDescriptor)
     : base(applicationDescriptor)
 {
 }
 public TypeInterfaceToolWindowDescriptor(IApplicationDescriptor applicationDescriptor)
     : base(applicationDescriptor)
 {
 }
Exemplo n.º 9
0
 public GraphCodeToolWindow(IApplicationDescriptor applicationDescriptor)
     : base(applicationDescriptor)
 {
 }
 public TypeInterfaceToolWindowDescriptor(IApplicationDescriptor applicationDescriptor)
   : base(applicationDescriptor)
 {
 }