Пример #1
0
 public static void Initialize(OleMenuCommandService commandService)
 {
     Instance = new CodeXmlFetchXmlPasteFromClipboardCommand(commandService);
 }
Пример #2
0
 public static void Initialize(OleMenuCommandService commandService)
 {
     Instance = new CodeJavaScriptUpdateGlobalOptionSetSingleFileCommand(commandService);
 }
 public static void Initialize(OleMenuCommandService commandService)
 {
     Instance = new OutputCheckComponentTypeEnumCommand(commandService);
 }
Пример #4
0
 private ProjectCompareToCrmAssemblyCommand(OleMenuCommandService commandService)
     : base(commandService, PackageIds.guidCommandSet.ProjectCompareToCrmAssemblyCommandId)
 {
 }
 private CommonCrmConnectionSelectAndPublishEntityCommand(OleMenuCommandService commandService)
     : base(commandService, PackageIds.guidCommandSet.CommonCrmConnectionSelectAndPublishEntityCommandId)
 {
 }
Пример #6
0
 private CommonSystemSavedQueryVisualizationExplorerCommand(OleMenuCommandService commandService)
     : base(commandService, PackageIds.guidCommandSet.CommonSystemSavedQueryVisualizationExplorerCommandId)
 {
 }
 public static void Initialize(OleMenuCommandService commandService)
 {
     Instance = new CodeXmlSavedQueryUpdateCommand(commandService);
 }
Пример #8
0
 private FolderWebResourceLinkCreateCommand(OleMenuCommandService commandService)
     : base(commandService, PackageIds.guidCommandSet.FolderWebResourceLinkCreateCommandId)
 {
 }
Пример #9
0
 public static void Initialize(OleMenuCommandService commandService)
 {
     Instance = new FolderWebResourceLinkCreateCommand(commandService);
 }
Пример #10
0
 protected abstract void InitializeMenuCommands(OleMenuCommandService menuCommandService);
Пример #11
0
 public JsHintMenu(DTE2 dte, OleMenuCommandService mcs)
 {
     _dte = dte;
     _mcs = mcs;
 }
 public static void Initialize(OleMenuCommandService commandService)
 {
     Instance = new CodeXmlCommonShowDifferenceCommand(commandService);
 }
 private CodeXmlCommonShowDifferenceCommand(OleMenuCommandService commandService)
     : base(commandService, PackageIds.guidCommandSet.CodeXmlCommonShowDifferenceCommandId)
 {
 }
Пример #14
0
 private CodeXmlFetchXmlPasteFromClipboardCommand(OleMenuCommandService commandService)
     : base(commandService, PackageIds.guidCommandSet.CodeXmlFetchXmlPasteFromClipboardCommandId)
 {
 }
Пример #15
0
 public AddOutliningCommand(VsfPackage package, OleMenuCommandService omcs)
     : base(package, omcs)
 {
     Initialize(new Guid(Guids.guidVsfTextEditorCmdSet), PkgCmdIdList.cmdidAddOutlining);
 }
Пример #16
0
 public static void Initialize(OleMenuCommandService commandService)
 {
     Instance = new CodeJavaScriptFileGenerationOptionsCommand(commandService);
 }
Пример #17
0
 public static void Initialize(OleMenuCommandService commandService)
 {
     Instance = new CommonSystemSavedQueryVisualizationExplorerCommand(commandService);
 }
Пример #18
0
 private CodeJavaScriptFileGenerationOptionsCommand(OleMenuCommandService commandService)
     : base(commandService, PackageIds.guidCommandSet.CodeJavaScriptFileGenerationOptionsCommandId)
 {
 }
 private CodeXmlSavedQueryUpdateCommand(OleMenuCommandService commandService)
     : base(commandService, PackageIds.guidCommandSet.CodeXmlSavedQueryUpdateCommandId)
 {
 }
 public static void Initialize(OleMenuCommandService commandService)
 {
     Instance = new CommonEntityRelationshipManyToManyExplorerCommand(commandService);
 }
Пример #21
0
 public static void Initialize(OleMenuCommandService commandService)
 {
     Instance = new ProjectCompareToCrmAssemblyCommand(commandService);
 }
 private CommonEntityRelationshipManyToManyExplorerCommand(OleMenuCommandService commandService)
     : base(commandService, PackageIds.guidCommandSet.CommonEntityRelationshipManyToManyExplorerCommandId)
 {
 }
 public static void Initialize(OleMenuCommandService commandService)
 {
     Instance = new CommonCrmConnectionSelectAndPublishEntityCommand(commandService);
 }
Пример #24
0
 private CodeXmlSystemFormExplorerCommand(OleMenuCommandService commandService)
     : base(commandService, PackageIds.guidCommandSet.CodeXmlSystemFormExplorerCommandId)
 {
 }
Пример #25
0
 protected ExtendedBaseCodeCleanupCommand(OleMenuCommandService menu, uint commandID, CodeCleanerType cleanerType)
     : base(menu, commandID)
 {
     CleanerType = cleanerType;
 }
Пример #26
0
 public static void Initialize(OleMenuCommandService commandService)
 {
     Instance = new CodeXmlSystemFormExplorerCommand(commandService);
 }
Пример #27
0
        protected override void Initialize()
        {
            base.Initialize();
            try
            {
                Log.OpenFile(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\VSAnything\\VSAnything.log");
                VSAnythingPackage.m_Inst = this;
                Log.WriteLine("----------------------------------------------------------");
                Log.WriteLine("FastFind Initialise");
                Log.WriteLine("FastFind Version: 4.8");
                this.m_Settings.Read();
                EnvDTE.DTE env_dte = (EnvDTE.DTE)base.GetService(typeof(SDTE));
                string     vs_version;
                try
                {
                    vs_version = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName;
                }
                catch (Exception e)
                {
                    vs_version = "Error getting VS version: " + e.Message;
                }
                Log.WriteLine("Visual Studio Version: " + vs_version);
                this.m_DTE        = new DTE(env_dte);
                this.m_TextFinder = new TextFinder();
                this.m_FileFinder = new FileFinder(this.m_Settings);
                this.m_FileFinder.SetSolutionFiles(new List <string>(this.m_Settings.SolutionFiles));
                this.m_SolutionFiles      = new SolutionFiles(this.m_DTE);
                this.m_GetOpenFilesThread = new GetOpenFilesThread(env_dte);
                this.m_SolutionFiles.SolutionFileListChanged += new SolutionFiles.SolutionFileListChangedHandler(this.SolutionFilesChanged);
                this.m_DocumentEvents = env_dte.Events.get_DocumentEvents(null);
                this.m_SolutionEvents = env_dte.Events.SolutionEvents;
                this.m_WindowEvents   = env_dte.Events.get_WindowEvents(null);

                //mariotodo 改成下面那样,不知道对不对
                //this.m_DocumentEvents.DocumentSaved += new _dispDocumentEvents_DocumentSavedEventHandler(this, (UIntPtr)System.Reflection.Emit.OpCodes.Ldftn(DocumentSaved));
                //this.m_SolutionEvents.ProjectAdded += new _dispSolutionEvents_ProjectAddedEventHandler(this, (UIntPtr)ldftn(ProjectAddedOrRemoved));
                //this.m_SolutionEvents.ProjectRemoved += new _dispSolutionEvents_ProjectRemovedEventHandler(this, (UIntPtr)ldftn(ProjectAddedOrRemoved));
                //this.m_WindowEvents.WindowActivated += new _dispWindowEvents_WindowActivatedEventHandler(this, (UIntPtr)ldftn(WindowActivated));

                this.m_DocumentEvents.DocumentSaved  += new _dispDocumentEvents_DocumentSavedEventHandler(this.DocumentSaved);
                this.m_SolutionEvents.ProjectAdded   += new _dispSolutionEvents_ProjectAddedEventHandler(this.ProjectAddedOrRemoved);
                this.m_SolutionEvents.ProjectRemoved += new _dispSolutionEvents_ProjectRemovedEventHandler(this.ProjectAddedOrRemoved);
                this.m_WindowEvents.WindowActivated  += new _dispWindowEvents_WindowActivatedEventHandler(this.WindowActivated);

                FastFindToolWindowPane.Initialise(this.m_DTE, this.m_SolutionFiles, this.m_FileFinder, this.m_TextFinder, this.m_GetOpenFilesThread, this.m_Settings);
                OleMenuCommandService mcs = base.GetService(typeof(IMenuCommandService)) as OleMenuCommandService;
                this.m_FastFindCmd.Initialise(this.m_DTE, this.m_SolutionFiles, this.m_FileFinder, this.m_TextFinder, this.m_GetOpenFilesThread, mcs, this.m_Settings);
                this.m_FastFindWindowCmd.Initialise(this, this.m_DTE, mcs, this.m_Settings);
                this.m_SourceHeaderToggleCmd.Initialise(this.m_DTE, this.m_SolutionFiles, mcs);
                this.m_SettingsCmd.Initialise(mcs);
                this.m_Solution = (base.GetService(typeof(SVsSolution)) as IVsSolution2);
                if (this.m_Solution != null)
                {
                    int ret = this.m_Solution.AdviseSolutionEvents(this, out this.m_SolutionEventsCookie);
                    Log.WriteLine("AdviseSolutionEvents returned " + ret);
                }
                this.AddSolutionFileToSettings();
                if (this.m_DTE.EnvDTE.Solution != null)
                {
                    foreach (Project project in this.m_DTE.EnvDTE.Solution.Projects)
                    {
                        IVsHierarchy pHierarchy = null;
                        if (this.m_Solution.GetProjectOfUniqueName(project.UniqueName, out pHierarchy) == 0 && pHierarchy != null)
                        {
                            this.AdviseHierarchyEvents(pHierarchy);
                        }
                    }
                }
                if (!this.m_Settings.ShownWelcomeForm)
                {
                    new System.Threading.Thread(new ThreadStart(this.WelcomeThread)).Start();
                }
            }
            catch (Exception arg_368_0)
            {
                Utils.LogException(arg_368_0);
            }
        }
        /// <summary>
        /// Initializes the singleton instance of the command.
        /// </summary>
        /// <param name="package">Owner package, not null.</param>
        public static void Initialize(GraphicalWatchPackage package)
        {
            OleMenuCommandService commandService = package.GetService(typeof(IMenuCommandService)) as OleMenuCommandService;

            Instance = new PlotWatchCommand(package, commandService);
        }
 public static void Initialize(OleMenuCommandService commandService)
 {
     Instance = new CommonReportExplorerCommand(commandService);
 }
 private ListForPublishClearListCommand(OleMenuCommandService commandService)
     : base(commandService, PackageIds.guidCommandSet.ListForPublishClearListCommandId)
 {
 }