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); } } }
private void PerformRegistrations(GeneralOptionsPage generalOptions) { if (generalOptions.FolderOrganizationEnabled) { SetupMenu(); RegisterPriorityCommandTarget(); } if (generalOptions.TaskListCommentsEnabled) { taskListCommentManager = new CrossSolutionTaskListCommentManager(this); taskListCommentManager.Activate(); } }
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); } } }