protected override void OnDragDrop(DragEventArgs e) { try { base.OnDragDrop(e); if (e.Data != null && e.Data.GetDataPresent(DataFormats.FileDrop)) { string[] files = (string[])e.Data.GetData(DataFormats.FileDrop); foreach (string file in files) { if (File.Exists(file)) { IProjectLoader loader = ProjectService.GetProjectLoader(file); if (loader != null) { FileUtility.ObservedLoad(new NamedFileOperationDelegate(loader.Load), file); } else { FileService.OpenFile(file); } } } } } catch (Exception ex) { MessageService.ShowError(ex); } }
public ProjectsRepository(ProjectTreeLoader treeLoader) { AllProjects = treeLoader.AllProjects; _allProjectNodes = treeLoader.AllProjectNodes; _loader = new ProjectLoader(); }
void TreeViewDragDrop(object sender, DragEventArgs e) { Point clientcoordinate = PointToClient(new Point(e.X, e.Y)); ExtTreeNode node = treeView.GetNodeAt(clientcoordinate) as ExtTreeNode; if (node == null) { // did not drag onto any node if (e.Data.GetDataPresent(DataFormats.FileDrop)) { string[] files = (string[])e.Data.GetData(DataFormats.FileDrop); foreach (string file in files) { try { IProjectLoader loader = ProjectService.GetProjectLoader(file); if (loader != null) { FileUtility.ObservedLoad(new NamedFileOperationDelegate(loader.Load), file); } else { FileService.OpenFile(file); } } catch (Exception ex) { MessageService.ShowException(ex, "unable to open file " + file); } } } } }
/// <summary> /// Loads projects. /// </summary> /// <param name="msbuildExeFileInfo">The <see cref="FileInfo" /> of MSBuild.exe.</param> /// <param name="projectCollection">The <see cref="ProjectCollection" /> to use when loading projects.</param> /// <param name="entryProjects">The <see cref="IEnumerable{String}" /> of entry projects.</param> /// <param name="globalProperties">The <see cref="IDictionary{String,String}" /> of global properties to use.</param> /// <param name="logger">A <see cref="ISlnGenLogger" /> to use as a logger.</param> /// <returns>A <see cref="Tuple{TimeSpan, Int32}" /> with the amount of time it took to load projects and the total number of projects that were loaded.</returns> public static (TimeSpan projectEvaluation, int projectCount) LoadProjects(FileInfo msbuildExeFileInfo, ProjectCollection projectCollection, IEnumerable <string> entryProjects, IDictionary <string, string> globalProperties, ISlnGenLogger logger) { if (logger.HasLoggedErrors) { return(TimeSpan.Zero, 0); } logger.LogMessageHigh("Loading project references..."); Stopwatch sw = Stopwatch.StartNew(); IProjectLoader projectLoader = Create(msbuildExeFileInfo, logger); try { projectLoader.LoadProjects(entryProjects, projectCollection, globalProperties); } catch (InvalidProjectFileException) { return(TimeSpan.Zero, 0); } catch (Exception e) { logger.LogError(e.ToString()); return(TimeSpan.Zero, 0); } sw.Stop(); logger.LogMessageNormal($"Loaded {projectCollection.LoadedProjects.Count:N0} project(s) in {sw.ElapsedMilliseconds:N0}ms"); return(sw.Elapsed, projectCollection.LoadedProjects.Count); }
public ProjectService(IAppContext context, IFileDialogService fileService, IBroadcasterService broadcaster, IProjectLoader projectLoader, ProjectLoaderLegacy projectLoaderLegacy) { if (context == null) { throw new ArgumentNullException("context"); } if (fileService == null) { throw new ArgumentNullException("fileService"); } if (broadcaster == null) { throw new ArgumentNullException("broadcaster"); } if (projectLoader == null) { throw new ArgumentNullException("projectLoader"); } if (projectLoaderLegacy == null) { throw new ArgumentNullException("projectLoaderLegacy"); } _context = context; _fileService = fileService; _broadcaster = broadcaster; _projectLoader = projectLoader; _projectLoaderLegacy = projectLoaderLegacy; }
public AutomaticModulePackager( IProjectLoader projectLoader, IServiceInputGenerator serviceInputGenerator) { this.m_ProjectLoader = projectLoader; this.m_ServiceInputGenerator = serviceInputGenerator; }
public void Run_RunsEntryMethod(string projectDir) { // Arrange string tempDir = $"{_tempDir}{projectDir}"; _directoryService.Empty(tempDir); // TODO for netstandard2.0 and earlier, AssemblyLoadContexts cannot be unloaded (can't reuse same directory within same process) string solutionDir = Path.GetFullPath(typeof(ProjectHostEndToEndTests).GetTypeInfo().Assembly.Location + "../../../../../../.."); string projectName = projectDir; string projectAbsSrcDir = $"{solutionDir}/test/{projectDir}"; string projectAbsFilePath = $"{tempDir}/{projectName}.csproj"; string assemblyName = projectName; string className = $"{projectName}.EntryStubClass"; int testExitCode = 10; // Arbitrary string[] stubArgs = new string[] { testExitCode.ToString() }; _directoryService.Copy(projectAbsSrcDir, tempDir, excludePatterns: new string[] { "^bin$", "^obj$" }); IServiceCollection services = new ServiceCollection(); services.AddProjectHost(); IServiceProvider serviceProvider = services.BuildServiceProvider(); IProjectLoader loader = serviceProvider.GetService <IProjectLoader>(); IMethodRunner runner = serviceProvider.GetService <IMethodRunner>(); // Act Assembly assembly = loader.Load(projectAbsFilePath, assemblyName); int result = runner.Run(assembly, className, args: stubArgs); // Assert Assert.Equal(testExitCode, result); (serviceProvider as IDisposable).Dispose(); }
public void Load_BuildsProjectAndLoadsAssembly() { // Arrange // TODO if any tests are added and still using netstandard2.0 and earlier, note that AssemblyLoadContexts cannot be unloaded string solutionDir = Path.GetFullPath(typeof(MethodRunnerIntegrationTests).GetTypeInfo().Assembly.Location + "../../../../../../.."); string projectDir = "StubProject.OlderFramework"; string projectName = projectDir; string projectAbsSrcDir = $"{solutionDir}/test/{projectDir}"; string projectAbsFilePath = $"{_tempDir}/{projectName}.csproj"; string entryAssemblyName = projectName; int testExitCode = 10; // Arbitrary string[] stubArgs = new string[] { testExitCode.ToString() }; _directoryService.Copy(projectAbsSrcDir, _tempDir, excludePatterns: new string[] { "^bin$", "^obj$" }); IServiceCollection services = new ServiceCollection(); services.AddProjectHost(); IServiceProvider serviceProvider = services.BuildServiceProvider(); IProjectLoader loader = serviceProvider.GetService <IProjectLoader>(); // Act Assembly result = loader.Load(projectAbsFilePath, entryAssemblyName); // Assert Assert.Equal(entryAssemblyName, result.GetName().Name); (serviceProvider as IDisposable).Dispose(); }
public OpenProjectMenuItem(IFileOpener<IProject> projectFileOpener, IOpenFileDialog<IProject> openFileDialog, IProjectLoader projectLoader) { this.projectFileOpener = projectFileOpener; this.openFileDialog = openFileDialog; this.projectLoader = projectLoader; }
public SpaceController(IProjectLoader projectLoader, IDbContextRegistry dbContextRegistry, IFormBuilderController formBuilderController, IQueryController queryController) { _projectLoader = projectLoader; _formBuilderController = formBuilderController; _queryController = queryController; _registeredContexts = dbContextRegistry.GetContexts(); _formCodeGenerator = new FormCodeGenerator(); CreateNewProject(); // ToDo: remove demo data initialization LoadModel(@"C:\Repos\MasterDetailsDataEntry\Seed\App.SqlForms.DevSpace\SqlForms.DevSpace\data\Project1"); //var sch = "Schema1"; //var s1 = new StoreSchema { Name = sch }; //Model.Schemas.Add(new SchemaDetails { Schema = s1 }); //var f1 = new StoreForm { Name = "CustomerEdit" }; //ActiveWindowName = "CustomerEdit"; //Model.Forms.Add(new FormDetails { Form = f1 }); //Model.Forms.Add(new FormDetails { Form = new StoreForm { Name = "CustomerList" } }); //Model.Forms.Add(new FormDetails { Form = new StoreForm { Name = "CustomerAddressList" } }); ////Model.EditWindows.Add(new EditWindowDetails { StoreObject = s1, Type = EditWindowType.Schema }); //Model.Queries.Add(new QueryDetails { Query = new StoreQuery { Name = "GetCustomerAddressList" } }); //Model.Queries.Add(new QueryDetails { Query = new StoreQuery { Name = "GetCustomerList" } }); //Model.EditWindows.Add(new EditWindowDetails { StoreObject = f1, Type = EditWindowType.Form }); //UpdateFormBuilder(); }
private static ItemSerializer SetupClass(IProjectLoader projectLoader = null, IXmlSerializer xmlSerializer = null) { projectLoader = projectLoader ?? new StubIProjectLoader(); xmlSerializer = xmlSerializer ?? new StubIXmlSerializer(); return new ItemSerializer(new StubIPathFacade(), new StubIEditorLogger(), projectLoader, xmlSerializer, new StubIFileWriter()); }
public void Run(IList <string> fileList) { Form f = (Form)WorkbenchSingleton.Workbench; f.Show(); bool didLoadCombineOrFile = false; foreach (string file in fileList) { didLoadCombineOrFile = true; try { IProjectLoader loader = ProjectService.GetProjectLoader(file); if (loader != null) { FileUtility.ObservedLoad(new NamedFileOperationDelegate(loader.Load), file); } else { FileService.OpenFile(file); } } catch (Exception e) { MessageService.ShowError(e, "unable to open file " + file); } } // load previous combine if (!didLoadCombineOrFile && PropertyService.Get("SharpDevelop.LoadPrevProjectOnStartup", false)) { if (FileService.RecentOpen.RecentProject.Count > 0) { ProjectService.LoadSolution(FileService.RecentOpen.RecentProject[0].ToString()); didLoadCombineOrFile = true; } } if (!didLoadCombineOrFile) { foreach (ICommand command in AddInTree.BuildItems("/Workspace/AutostartNothingLoaded", null, false)) { command.Run(); } } f.Focus(); // windows.forms focus workaround ParserService.StartParserThread(); // finally run the workbench window ... Application.AddMessageFilter(new FormKeyHandler()); Application.Run(f); // save the workbench memento in the ide properties try { PropertyService.Set(workbenchMemento, WorkbenchSingleton.Workbench.CreateMemento()); } catch (Exception e) { MessageService.ShowError(e, "Exception while saving workbench state."); } }
public ProjectFactory(IProjectSerializer projectSerializer, IProjectLoader projectLoader) { Check.IfIsNull(projectSerializer).Throw<ArgumentNullException>(() => projectSerializer); Check.IfIsNull(projectLoader).Throw<ArgumentNullException>(() => projectLoader); this.projectSerializer = projectSerializer; this.projectLoader = projectLoader; }
public CachingProjectLoader(IDictionary <string, string> globalMsBuildProperties, IConsole console) { _globalMsBuildProperties = globalMsBuildProperties; _console = console; _projectCollection = new ProjectCollection(); _projectsByGuid = new Dictionary <Guid, IVsProject>(); _projectLoader = this; }
public ProjectFactory BuildProjectCreator(IProjectSerializer projectSerializer = null, IProjectLoader projectLoader = null) { projectSerializer = projectSerializer ?? new StubIProjectSerializer(); projectLoader = projectLoader ?? new StubIProjectLoader(); return new ProjectFactory(projectSerializer, projectLoader); }
public CachingProjectLoader(IDictionary<string, string> globalMsBuildProperties, IConsole console) { _globalMsBuildProperties = globalMsBuildProperties; _console = console; _projectCollection = new ProjectCollection(); _projectsByGuid = new Dictionary<Guid, IVsProject>(); _projectLoader = this; }
public TimeRegistrationSaveBusinessService( IProjectLoader projectLoader, ITimeRegistrationSaver timeRegistrationSaver, IDateTimeService dateTimeService) { this.projectLoader = projectLoader; this.timeRegistrationSaver = timeRegistrationSaver; this.dateTimeService = dateTimeService; }
public AutomaticModulePackager( IProjectLoader projectLoader, IServiceInputGenerator serviceInputGenerator, IProjectOutputPathCalculator projectOutputPathCalculator) { this.m_ProjectLoader = projectLoader; this.m_ServiceInputGenerator = serviceInputGenerator; this.m_ProjectOutputPathCalculator = projectOutputPathCalculator; }
public ProtobuildAutomaticModulePackager( IProjectLoader projectLoader, IServiceInputGenerator serviceInputGenerator, IProjectOutputPathCalculator projectOutputPathCalculator) { this.m_ProjectLoader = projectLoader; this.m_ServiceInputGenerator = serviceInputGenerator; this.m_ProjectOutputPathCalculator = projectOutputPathCalculator; }
/// <summary> /// Initializes a new instance of the <see cref="BaseSerializer" /> class. /// </summary> /// <param name="pathFacade">The path facade.</param> /// <param name="logger">The logger.</param> /// <param name="projectLoader">The project loader.</param> /// <exception cref="System.NotImplementedException"></exception> protected BaseSerializer(IPathFacade pathFacade, IEditorLogger logger, IProjectLoader projectLoader) { Check.IfIsNull(pathFacade).Throw<ArgumentNullException>(() => pathFacade); Check.IfIsNull(logger).Throw<ArgumentNullException>(() => logger); Check.IfIsNull(projectLoader).Throw<ArgumentNullException>(() => projectLoader); this.pathFacade = pathFacade; this.logger = logger; this.projectLoader = projectLoader; }
internal ProjectTreeLoader(string fileOrFolderName, bool fileBasedRepo) { _rootPath = Path.GetFullPath(fileOrFolderName); _fileBasedRepo = fileBasedRepo; _loader = new ProjectLoader(); // REVIEW: DI??? AllProjects = new List <IProject>(); AllProjectNodes = new List <ProjectNode>(); }
private static ItemDeserializer SetupClass(IPathFacade pathFacade = null, IEditorLogger logger = null, IProjectLoader projectLoader = null, IObjectDumper objectDumper = null, IXmlDeserializer xmlDeserializer = null, IFileReader fileReader = null) { return new ItemDeserializer(pathFacade, logger, projectLoader, objectDumper, xmlDeserializer, fileReader); }
public GenerateProjectsTask( IProjectLoader projectLoader, IProjectGenerator projectGenerator, ISolutionGenerator solutionGenerator, IJSILProvider jsilProvider) { this.m_ProjectLoader = projectLoader; this.m_ProjectGenerator = projectGenerator; this.m_SolutionGenerator = solutionGenerator; this.m_JSILProvider = jsilProvider; }
public ItemSerializer(IPathFacade pathFacade, IEditorLogger logger, IProjectLoader projectLoader, IXmlSerializer xmlSerializer, IFileWriter fileWriter) : base(pathFacade, logger, projectLoader) { Check.IfIsNull(xmlSerializer).Throw<ArgumentNullException>(() => xmlSerializer); Check.IfIsNull(fileWriter).Throw<ArgumentNullException>(() => fileWriter); this.xmlSerializer = xmlSerializer; this.fileWriter = fileWriter; }
private static ProjectExplorerViewModel SetupClass( IEnumerable<IProjectExplorerItem> fixedItems = null, IProjectLoader projectLoader = null, IProjectExplorerItemFactory projectExplorerItemFactory = null) { fixedItems = fixedItems ?? new List<IProjectExplorerItem>(); projectLoader = projectLoader ?? new StubIProjectLoader(); projectExplorerItemFactory = projectExplorerItemFactory ?? new StubIProjectExplorerItemFactory(); return new ProjectExplorerViewModel(fixedItems, projectLoader, projectExplorerItemFactory); }
private static ItemDeserializer SetupClassWithDefaults(IProjectLoader projectLoader = null, IXmlDeserializer xmlDeserializer = null) { projectLoader = projectLoader ?? new StubIProjectLoader(); xmlDeserializer = xmlDeserializer ?? new StubIXmlDeserializer(); return SetupClass(new StubIPathFacade(), new StubIEditorLogger(), projectLoader, new StubIObjectDumper(), xmlDeserializer, new StubIFileReader()); }
public GenerateProjectsTask( IProjectLoader projectLoader, IProjectGenerator projectGenerator, ISolutionGenerator solutionGenerator, IJSILProvider jsilProvider, IPackageRedirector packageRedirector) { this.m_ProjectLoader = projectLoader; this.m_ProjectGenerator = projectGenerator; this.m_SolutionGenerator = solutionGenerator; this.m_JSILProvider = jsilProvider; this.m_PackageRedirector = packageRedirector; }
public StartupWindowViewModel(ISettingsSerializer settingsSerializer, IProjectLoader projectLoader, IFileOpener<IProject> projectOpener) { Check.IfIsNull(settingsSerializer).Throw<ArgumentNullException>(() => settingsSerializer); Check.IfIsNull(projectLoader).Throw<ArgumentNullException>(() => projectLoader); Check.IfIsNull(projectOpener).Throw<ArgumentNullException>(() => projectOpener); this.projectLoader = projectLoader; this.projectOpener = projectOpener; var settings = settingsSerializer.Read(); recentProjects = settings.RecentProjects; }
public static void LoadSolutionOrProject(string fileName) { IProjectLoader loader = GetProjectLoader(fileName); if (loader != null) { loader.Load(fileName); } else { MessageService.ShowError(StringParser.Parse("${res:ICSharpCode.SharpDevelop.Commands.OpenCombine.InvalidProjectOrCombine}", new StringTagPair("FileName", fileName))); } }
public ProjectExplorerViewModel( [ImportMany(ImportConstants.FixedProjectExplorerItemKey)] IEnumerable<IProjectExplorerItem> fixedProjectExplorerItems, IProjectLoader projectLoader, IProjectExplorerItemFactory projectExplorerItemFactory) { Check.IfIsNull(fixedProjectExplorerItems).Throw<ArgumentNullException>(() => fixedProjectExplorerItems); Check.IfIsNull(projectLoader).Throw<ArgumentNullException>(() => projectLoader); Check.IfIsNull(projectExplorerItemFactory).Throw<ArgumentNullException>(() => projectExplorerItemFactory); this.fixedProjectExplorerItems = fixedProjectExplorerItems; this.projectExplorerItemFactory = projectExplorerItemFactory; projectLoader.ProjectLoaded += OnProjectLoad; }
void FileSelected(object sender, EventArgs e) { foreach (FileList.FileListItem item in filelister.SelectedItems) { IProjectLoader loader = ProjectService.GetProjectLoader(item.FullName); if (loader != null) { loader.Load(item.FullName); } else { FileService.OpenFile(item.FullName); } } }
public StartupWindowViewModel Setup(ISettingsSerializer settingsSerializer = null, IProjectLoader projectLoader = null, IFileOpener<IProject> fileOpener = null) { projectLoader = projectLoader ?? new StubIProjectLoader(); fileOpener = fileOpener ?? new StubIFileOpener<IProject>(); settingsSerializer = settingsSerializer ?? new StubISettingsSerializer { Read = () => new StubIEditorSettings { RecentProjectsGet = () => recentProjects } }; return new StartupWindowViewModel(settingsSerializer, projectLoader, fileOpener); ; }
public ItemDeserializer(IPathFacade pathFacade, IEditorLogger logger, IProjectLoader projectLoader, IObjectDumper objectDumper, IXmlDeserializer xmlDeserializer, IFileReader fileReader) : base(pathFacade, logger, projectLoader) { Check.IfIsNull(objectDumper).Throw<ArgumentNullException>(() => objectDumper); Check.IfIsNull(xmlDeserializer).Throw<ArgumentNullException>(() => xmlDeserializer); Check.IfIsNull(fileReader).Throw<ArgumentNullException>(() => fileReader); this.objectDumper = objectDumper; this.xmlDeserializer = xmlDeserializer; this.fileReader = fileReader; }
private (TimeSpan projectEvaluation, int projectCount) LoadProjects(ProjectCollection projectCollection, ISlnGenLogger logger) { List <string> entryProjects = GetEntryProjectPaths(logger).ToList(); if (logger.HasLoggedErrors) { return(TimeSpan.Zero, 0); } logger.LogMessageHigh("Loading project references..."); Stopwatch sw = Stopwatch.StartNew(); IProjectLoader projectLoader = ProjectLoaderFactory.Create(_msbuildExePath, logger); IDictionary <string, string> globalProperties = GetGlobalProperties(); using (new MSBuildFeatureFlags { CacheFileEnumerations = true, LoadAllFilesAsReadOnly = true, MSBuildSkipEagerWildCardEvaluationRegexes = true, UseSimpleProjectRootElementCacheConcurrency = true, MSBuildExePath = _msbuildExePath.FullName, }) { try { projectLoader.LoadProjects(entryProjects, projectCollection, globalProperties); } catch (InvalidProjectFileException) { return(TimeSpan.Zero, 0); } catch (Exception e) { logger.LogError(e.ToString()); return(TimeSpan.Zero, 0); } } sw.Stop(); logger.LogMessageNormal($"Loaded {projectCollection.LoadedProjects.Count:N0} project(s) in {sw.ElapsedMilliseconds:N0}ms"); return(sw.Elapsed, projectCollection.LoadedProjects.Count); }
public GenerateProjectsTask( IProjectLoader projectLoader, IProjectGenerator projectGenerator, ISolutionGenerator solutionGenerator, IJSILProvider jsilProvider, IPackageRedirector packageRedirector, IModuleExecution moduleExecution, IFeatureManager featureManager) { m_ProjectLoader = projectLoader; m_ProjectGenerator = projectGenerator; m_SolutionGenerator = solutionGenerator; m_JSILProvider = jsilProvider; m_PackageRedirector = packageRedirector; _moduleExecution = moduleExecution; _featureManager = featureManager; }
public GenerateProjectsTask( IProjectLoader projectLoader, IProjectGenerator projectGenerator, ISolutionGenerator solutionGenerator, IJSILProvider jsilProvider, IPackageRedirector packageRedirector, IModuleExecution moduleExecution, IFeatureManager featureManager) { m_ProjectLoader = projectLoader; m_ProjectGenerator = projectGenerator; m_SolutionGenerator = solutionGenerator; m_JSILProvider = jsilProvider; m_PackageRedirector = packageRedirector; _moduleExecution = moduleExecution; _featureManager = featureManager; }
public Program(ISqlServerMetadataMapper sqlServerMapper, IPostgresMetadataMapper postgresMapper, IEnumerable <IGenerator> generators, IProjectLoader projectLoader) { _sqlServerMetadataMapper = sqlServerMapper; _postgresMetadataMapper = postgresMapper; _projectLoader = projectLoader; foreach (var generator in generators) { if (generator.GetType() == typeof(EntityGenerator)) { _entityGenerator = generator; } else if (generator.GetType() == typeof(RepoDbMapperGenerator)) { _mapperGenerator = generator; } } }
void pane_WebBrowser_Navigating(object sender, WebBrowserNavigatingEventArgs e) { try { if (e.Url.IsFile) { e.Cancel = true; string file = e.Url.LocalPath; IProjectLoader loader = ProjectService.GetProjectLoader(file); if (loader != null) { FileUtility.ObservedLoad(new NamedFileOperationDelegate(loader.Load), file); } else { FileService.OpenFile(file); } } } catch (Exception ex) { MessageService.ShowError(ex); } }
public ProjectAdapter(Project project, IProjectLoader projectLoader) { _project = project; _projectLoader = projectLoader; }
public ProjectAdapter(Project project, IProjectLoader projectLoader) { _project = project; _projectLoader = projectLoader; }
public void Run(IList <string> fileList) { //WorkbenchSingleton.MainForm.Show(); bool didLoadSolutionOrFile = false; NavigationService.SuspendLogging(); foreach (string file in fileList) { LoggingService.Info("Open file " + file); didLoadSolutionOrFile = true; try { string fullFileName = Path.GetFullPath(file); IProjectLoader loader = ProjectService.GetProjectLoader(fullFileName); if (loader != null) { loader.Load(fullFileName); } else { FileService.OpenFile(fullFileName); } } catch (Exception e) { MessageService.ShowError(e, "unable to open file " + file); } } // load previous solution if (!didLoadSolutionOrFile && PropertyService.Get("SharpDevelop.LoadPrevProjectOnStartup", false)) { if (FileService.RecentOpen.RecentProject.Count > 0) { ProjectService.LoadSolution(FileService.RecentOpen.RecentProject[0].ToString()); didLoadSolutionOrFile = true; } } if (!didLoadSolutionOrFile) { foreach (ICommand command in AddInTree.BuildItems <ICommand>("/Workspace/AutostartNothingLoaded", null, false)) { try { command.Run(); } catch (Exception ex) { MessageService.ShowError(ex); } } } NavigationService.ResumeLogging(); //WorkbenchSingleton.MainForm.Focus(); // windows.forms focus workaround ParserService.StartParserThread(); // finally run the workbench window ... Application.AddMessageFilter(new FormKeyHandler()); Application.Run(WorkbenchSingleton.MainForm); // save the workbench memento in the ide properties try { PropertyService.Set(workbenchMemento, WorkbenchSingleton.Workbench.CreateMemento()); } catch (Exception e) { MessageService.ShowError(e, "Exception while saving workbench state."); } }
public PortfolioController(IProjectLoader projectLoader, IClientLoader clientLoader) { _projectLoader = projectLoader; _clientLoader = clientLoader; }
public PortfolioController(IProjectLoader projectLoader, IClientLoader clientLoader) { _projectLoader = projectLoader; _clientLoader = clientLoader; }
public PokemonSerializer(IXmlSerializer writer, IProjectLoader projectLoader) { this.writer = writer; this.projectLoader = projectLoader; }
public Validator(IEnumerable <IRule> rules, IProjectLoader projectLoader, IOutput output) { _projectLoader = projectLoader; _output = output; _rules = rules.ToList(); }
public SolutionLoader(IFileService fileService, IProjectLoader projectLoader) { _fileService = fileService; _projectLoader = projectLoader; }