public DartProjectNode(ProjectPackage package) : base(package) { _sharedBuildOptions = new DartBuildOptions(); CanProjectDeleteItems = true; OleServiceProvider.AddService(typeof(VSLangProj.VSProject), HandleCreateService, false); AddCatIdMapping(typeof(DartFileNodeProperties), typeof(FileNodeProperties).GUID); }
/// <summary> /// Explicitly defined default constructor. /// </summary> public NestedProjectNode(ProjectPackage package) : base(package) { this.SupportsProjectDesigner = true; this.CanProjectDeleteItems = true; // Add Category IDs mapping in order to support properties for project items AddCatIdMapping(typeof(FileNodeProperties), typeof(FileNodeProperties).GUID); AddCatIdMapping(typeof(ProjectNodeProperties), typeof(ProjectNodeProperties).GUID); AddCatIdMapping(typeof(FolderNodeProperties), typeof(FolderNodeProperties).GUID); AddCatIdMapping(typeof(ReferenceNodeProperties), typeof(ReferenceNodeProperties).GUID); }
public BooProjectNode(ProjectPackage package, BooLangService.BooLangService languageService) { this.package = package; this.languageService = languageService; imageIndex = this.ImageHandler.ImageList.Images.Count; booFileNodeImageIndex = imageIndex + 1; this.CanDeleteItemsInProject = true; foreach (Image img in imageList.Images) { this.ImageHandler.AddImage(img); } }
private IProjectEvents GetProjectEventsProvider() { ProjectPackage projectPackage = this.package as ProjectPackage; Debug.Assert(projectPackage != null, "Package not inherited from framework"); if(projectPackage != null) { foreach(SolutionListener listener in projectPackage.SolutionListeners) { IProjectEvents projectEvents = listener as IProjectEvents; if(projectEvents != null) { return projectEvents; } } } return null; }
protected ProjectContainerNode(ProjectPackage package) : base(package) { }
//===================================================================== /// <summary> /// Constructor /// </summary> /// <param name="package">The package reference</param> public SandcastleBuilderProjectFactory(ProjectPackage package) : base(package) { }
protected ProjectNode(ProjectPackage package) : base(VSConstants.VSITEMID.Root) { if (package == null) throw new ArgumentNullException("package"); this.package = package; this.tracker = new TrackDocumentsHelper(this); }
public NesteProjectNodeFake(ProjectPackage package) : base(package) { }
//===================================================================== /// <summary> /// Constructor /// </summary> /// <param name="package">The package to which the project node is /// related.</param> public SandcastleBuilderProjectNode(ProjectPackage package) { this.Package = package; // Add the project node images imageIndex = this.ImageHandler.ImageList.Images.Count; foreach(Image img in imageList.Images) this.ImageHandler.AddImage(img); // Allow destructive deletes this.CanProjectDeleteItems = true; // Use the project designer for the property pages this.SupportsProjectDesigner = true; this.InitializeCATIDs(); }
public NodeProjectFactory(ProjectPackage package) : base(package) { _package = package; }