Inheritance: Microsoft.VisualStudio.Shell.Package
コード例 #1
0
ファイル: DartProjectNode.cs プロジェクト: modulexcite/DartVS
        public DartProjectNode(ProjectPackage package)
            : base(package)
        {
            _sharedBuildOptions = new DartBuildOptions();
            CanProjectDeleteItems = true;
            OleServiceProvider.AddService(typeof(VSLangProj.VSProject), HandleCreateService, false);

            AddCatIdMapping(typeof(DartFileNodeProperties), typeof(FileNodeProperties).GUID);
        }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
        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);
              }
        }
コード例 #4
0
        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;
        }
コード例 #5
0
 protected ProjectContainerNode(ProjectPackage package)
     : base(package)
 {
 }
コード例 #6
0
 protected ProjectContainerNode(ProjectPackage package)
     : base(package)
 {
 }
コード例 #7
0
        //=====================================================================

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="package">The package reference</param>
        public SandcastleBuilderProjectFactory(ProjectPackage package) : base(package)
        {
        }
コード例 #8
0
ファイル: ProjectNode.cs プロジェクト: sharwell/MPFProj10
        protected ProjectNode(ProjectPackage package)
            : base(VSConstants.VSITEMID.Root)
        {
            if (package == null)
                throw new ArgumentNullException("package");

            this.package = package;
            this.tracker = new TrackDocumentsHelper(this);
        }
コード例 #9
0
 public NesteProjectNodeFake(ProjectPackage package)
     : base(package)
 {
 }
コード例 #10
0
        //=====================================================================

        /// <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();
        }
コード例 #11
0
 public NodeProjectFactory(ProjectPackage package)
     : base(package)
 {
     _package = package;
 }