コード例 #1
0
        private void PerformRegistrations(IGeneralOptions generalOptions)
        {
            if (generalOptions.FolderOrganizationEnabled)
            {
                SetupFolderMenu();
                RegisterPriorityCommandTarget();
            }

            if (generalOptions.GenerateReferencesEnabled)
            {
                SetupReferenceMenu();
            }

            if (generalOptions.TaskListCommentsEnabled)
            {
                try
                {
                    var componentModel = GetService(typeof(SComponentModel)) as IComponentModel;
                    taskListCommentManager = componentModel.DefaultExportProvider.GetExportedValue <CrossSolutionTaskListCommentManager>();
                    Debug.Assert(taskListCommentManager != null, "This instance should have been MEF exported.");
                    taskListCommentManager.Activate();
                }
                catch (Exception ex)
                {
                    LoggingModule.logException(ex);
                }
            }
        }
コード例 #2
0
        private void PerformRegistrations(GeneralOptionsPage generalOptions)
        {
            if (generalOptions.FolderOrganizationEnabled)
            {
                SetupMenu();
                RegisterPriorityCommandTarget();
            }

            if (generalOptions.TaskListCommentsEnabled)
            {
                taskListCommentManager = new CrossSolutionTaskListCommentManager(this);
                taskListCommentManager.Activate();
            }
        }
コード例 #3
0
        private void PerformRegistrations(IGeneralOptions generalOptions)
        {
            if (generalOptions.FolderOrganizationEnabled)
            {
                SetupFolderMenu();
                RegisterPriorityCommandTarget();
            }

            if (generalOptions.GenerateReferencesEnabled)
            {
                SetupReferenceMenu();
            }

            if (generalOptions.TaskListCommentsEnabled)
            {
                try
                {
                    var componentModel = GetService(typeof(SComponentModel)) as IComponentModel;
                    taskListCommentManager = componentModel.DefaultExportProvider.GetExportedValue<CrossSolutionTaskListCommentManager>();
                    Debug.Assert(taskListCommentManager != null, "This instance should have been MEF exported.");
                    taskListCommentManager.Activate();
                }
                catch (Exception ex)
                {
                    LoggingModule.logException(ex);
                }
            }
        }