コード例 #1
0
 private RefactoringFormViewComponent()
 {
     form = new RefactoringWariningsForm();
     longRunningQueue = new WorkQueue() {ConcurrentLimit = 1};
     shortTaskQueue = new WorkQueue(){ConcurrentLimit = 1};
     GhostFactorComponents.RefactoringCodeIssueComputerComponent.AddGlobalWarnings += OnAddGlobalWarnings;
     GhostFactorComponents.RefactoringCodeIssueComputerComponent.RemoveGlobalWarnings += OnRemoveGlobalWarnings;
     GhostFactorComponents.RefactoringCodeIssueComputerComponent.ProblematicRefactoringCountChanged += OnProblematicRefactoringsCountChanged;
 }
コード例 #2
0
        private RefactoringFormViewComponent()
        {
            form = new RefactoringWariningsForm();
            shortTaskQueue = GhostFactorComponents.configurationComponent.GetGlobalWorkQueue();

            GhostFactorComponents.historyComponent.OnWorkDocumentChanged += OnWorkDocumentChanged;
            GhostFactorComponents.configurationComponent.supportedRefactoringTypesChangedEvent +=
                RefactoringTypesChangedEvent;

            // Create an work item for showing dialog and add this work item
            // to the work longRunningQueue.
            new Thread(ShowingForm).Start();
        }
コード例 #3
0
 internal ResetRefactoringCountWorkItem(RefactoringWariningsForm form, int newCount)
 {
     this.form = form;
     this.newCount = newCount;
 }
コード例 #4
0
 internal RemoveWarningsWorkItem(RefactoringWariningsForm form, 
     Predicate<IRefactoringWarningMessage> removeCondition)
 {
     this.form = form;
     this.removeCondition = removeCondition;
 }
コード例 #5
0
 internal AddWarningsWorkItem(RefactoringWariningsForm form, 
     IEnumerable<IRefactoringWarningMessage> messages)
 {
     this.form = form;
     this.messages = messages;
     this.logger = NLoggerUtil.GetNLogger(typeof (AddWarningsWorkItem));
 }
コード例 #6
0
 public UpdateWorkDocumentWorkItem(RefactoringWariningsForm form, IDocument document)
 {
     this.form = form;
     this.document = document;
 }
コード例 #7
0
 public UpdatedSupportedRefactoringTypesWorkItem(RefactoringWariningsForm form, 
     IEnumerable<RefactoringType> currentTypes)
 {
     this.form = form;
     this.currentTypes = currentTypes;
 }