コード例 #1
0
        public void CreateInstance()
        {
            PythonProjectPackage package = new PythonProjectPackage();

            MockILocalRegistry3.LocalRegistryRoot = "Software\\Microsoft\\VisualStudio\\9.0Exp";

            ((IServiceContainer)package).AddService(typeof(SLocalRegistry), (ILocalRegistry3)MockILocalRegistry3.GetInstance());

            Assert.IsNotNull(new PythonProjectFactory(package));
        }
コード例 #2
0
        public PythonProjectNode(PythonProjectPackage pkg)
        {
            this.package = pkg;
            this.CanFileNodesHaveChilds = true;
            this.OleServiceProvider.AddService(typeof(VSLangProj.VSProject), new OleServiceProvider.ServiceCreatorCallback(this.CreateServices), false);
            this.SupportsProjectDesigner = true;

            //Store the number of images in ProjectNode so we know the offset of the python icons.
            ImageOffset = this.ImageHandler.ImageList.Images.Count;
            foreach (Image img in PythonImageList.Images)
            {
                this.ImageHandler.AddImage(img);
            }

            InitializeCATIDs();
        }
コード例 #3
0
 public EditorFactory(PythonProjectPackage package)
 {
     this.package = package;
 }
コード例 #4
0
 /// <summary>
 /// Constructor for PythonProjectFactory
 /// </summary>
 /// <param name="package">the package who created this object</param>
 public PythonProjectFactory(PythonProjectPackage package)
     : base(package)
 {
 }
コード例 #5
0
 public void CreateInstance()
 {
     PythonProjectPackage package = new PythonProjectPackage();
     Assert.IsNotNull(package);
 }
コード例 #6
0
 /// <summary>
 /// Constructor for PythonProjectFactory
 /// </summary>
 /// <param name="package">the package who created this object</param>
 public PythonProjectFactory(PythonProjectPackage package)
     : base(package)
 {
 }
コード例 #7
0
        public PythonProjectNode(PythonProjectPackage pkg)
        {
            this.package = pkg;
            this.CanFileNodesHaveChilds = true;
            this.OleServiceProvider.AddService(typeof(VSLangProj.VSProject), new OleServiceProvider.ServiceCreatorCallback(this.CreateServices), false);
            this.SupportsProjectDesigner = true;

            //Store the number of images in ProjectNode so we know the offset of the python icons.
            ImageOffset = this.ImageHandler.ImageList.Images.Count;
            foreach (Image img in PythonImageList.Images)
            {
                this.ImageHandler.AddImage(img);
            }

            InitializeCATIDs();
        }
コード例 #8
0
 public EditorFactory(PythonProjectPackage package)
 {
     this.package = package;
 }