protected CodeDocumentType(ICodeProjectService codeProjectService, IViewService viewService, CodeOptionsModel codeOptionsModel, IWindowService windowService) { this.codeProjectService = codeProjectService; this.viewService = viewService; this.codeOptionsModel = codeOptionsModel; this.windowService = windowService; }
public CodeProject(IProject project, IAssemblyService assemblyService, ICodeProjectService codeProjectService, BuildManager buildManager, IViewService viewService, IDocumentTypeManager documentTypeManager) { this.project = project; this.assemblyService = assemblyService; this.codeProjectService = codeProjectService; this.buildManager = buildManager; this.documentTypeManager = documentTypeManager; this.documentChangeWatcher = new CodeProject.OpenDocumentsChangeWatcher(viewService); this.documentChangeWatcher.DocumentClosed += new EventHandler <CodeProject.DocumentChangedEventArgs>(this.DocumentChangeWatcher_DocumentClosed); this.documentChangeWatcher.DocumentOpened += new EventHandler <CodeProject.DocumentChangedEventArgs>(this.DocumentChangeWatcher_DocumentOpened); this.documentChangeWatcher.InitializeDocuments(); }
internal CodeDocument(DocumentReference documentReference, bool isReadOnly, Encoding encoding, Stream stream, CodeDomProvider codeDomProvider, CodeDocumentType codeDocumentType, ICodeProjectService codeProjectService, ICodeProject codeProject, IProject project, IViewService viewService, IWindowService windowService) : base(documentReference, isReadOnly) { this.filename = documentReference.Path; this.codeDomProvider = codeDomProvider; this.codeDocumentType = codeDocumentType; this.codeOptionsModel = this.codeDocumentType.CodeOptionsModel; this.codeProjectService = codeProjectService; this.viewService = viewService; this.codeProject = codeProject; this.project = project; this.windowService = windowService; this.encoding = encoding; this.stream = stream; }
public FSharpScriptDocumentType(ICodeProjectService codeProjectService, IViewService viewService, CodeOptionsModel codeOptionsModel, IWindowService windowService) : base(codeProjectService, viewService, codeOptionsModel, windowService) { }
public void Load(IServices services) { this.services = services; ICommandService service1 = this.services.GetService <ICommandService>(); this.services.GetService <IDocumentService>(); IDocumentTypeManager service2 = this.services.GetService <IDocumentTypeManager>(); IViewService service3 = this.services.GetService <IViewService>(); IProjectManager service4 = this.services.GetService <IProjectManager>(); IAssemblyService service5 = this.services.GetService <IAssemblyService>(); IMessageDisplayService service6 = this.services.GetService <IMessageDisplayService>(); IWindowService service7 = this.services.GetService <IWindowService>(); CodeOptionsModel codeOptionsModel = new CodeOptionsModel(); this.editingService = new EditingService((IServiceProvider)this.services, codeOptionsModel); this.services.AddService(typeof(ITextEditorService), (object)this.editingService); this.services.AddService(typeof(ITextBufferService), (object)this.editingService); ICodeProjectService codeProjectService = (ICodeProjectService) new CodeProjectService(service4, service5, service6, service3, service2); this.services.AddService(typeof(ICodeModelService), (object)new CodeModelService(this.services, codeProjectService)); if (service2 != null) { this.csharpDocumentType = (IDocumentType) new CSharpDocumentType(codeProjectService, service3, codeOptionsModel, service7); service2.Register(this.csharpDocumentType); this.visualBasicDocumentType = (IDocumentType) new VisualBasicDocumentType(codeProjectService, service3, codeOptionsModel, service7); service2.Register(this.visualBasicDocumentType); this.javascriptDocumentType = (IDocumentType) new JavascriptDocumentType(codeProjectService, service3, codeOptionsModel, service7); service2.Register(this.javascriptDocumentType); this.fSharpDocumentType = (IDocumentType) new FSharpDocumentType(codeProjectService, service3, codeOptionsModel, service7); service2.Register(this.fSharpDocumentType); this.fSharpScriptDocumentType = (IDocumentType) new FSharpScriptDocumentType(codeProjectService, service3, codeOptionsModel, service7); service2.Register(this.fSharpScriptDocumentType); this.fSharpTemplateDocumentType = (IDocumentType) new FSharpTemplateDocumentType(codeProjectService, service3, codeOptionsModel, service7); service2.Register(this.fSharpTemplateDocumentType); this.cPlusPlusDocumentType = (IDocumentType) new CPlusPlusDocumentType(codeProjectService, service3, codeOptionsModel, service7); service2.Register(this.cPlusPlusDocumentType); this.headerDocumentType = (IDocumentType) new HeaderDocumentType(codeProjectService, service3, codeOptionsModel, service7); service2.Register(this.headerDocumentType); this.htmlDocumentType = (IDocumentType) new HTMLDocumentType(this.editingService); service2.Register(this.htmlDocumentType); this.xmlDocumentType = (IDocumentType) new XmlDocumentType(this.editingService); service2.Register(this.xmlDocumentType); this.limitedXamlDocumentType = (IDocumentType) new LimitedXamlDocumentType(this.editingService); service2.Register(this.limitedXamlDocumentType); this.fxgDocumentType = (IDocumentType) new FxgDocumentType(this.editingService); service2.Register(this.fxgDocumentType); } IOptionsDialogService service8 = this.services.GetService <IOptionsDialogService>(); if (service8 != null) { this.codeOptionsPage = (IOptionsPage) new CodeOptionsPage(this.editingService); service8.OptionsPages.Add(this.codeOptionsPage); } if (service1 == null) { return; } this.commandTarget = new CommandTarget(); this.commandTarget.AddCommand("Project_EditVisualStudio", (ICommand) new EditVisualStudioCommand(service4, service1, service6)); service1.AddTarget((ICommandTarget)this.commandTarget); }
public VisualBasicDocumentType(ICodeProjectService codeProjectService, IViewService viewService, CodeOptionsModel codeOptionsModel, IWindowService windowService) : base(codeProjectService, viewService, codeOptionsModel, windowService) { }
public CodeModelService(IServices services, ICodeProjectService codeProjectService) { this.visualStudioCodeModelService = (ICodeModelService) new CodeModelService.VisualStudioCodeModelService(services); this.actiproCodeModelService = (ICodeModelService) new CodeModelService.ActiproCodeModelService(codeProjectService); this.services = services; }
public ActiproCodeModelService(ICodeProjectService codeProjectService) { this.codeProjectService = codeProjectService; }