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; }
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(); }
internal ResetRefactoringCountWorkItem(RefactoringWariningsForm form, int newCount) { this.form = form; this.newCount = newCount; }
internal RemoveWarningsWorkItem(RefactoringWariningsForm form, Predicate<IRefactoringWarningMessage> removeCondition) { this.form = form; this.removeCondition = removeCondition; }
internal AddWarningsWorkItem(RefactoringWariningsForm form, IEnumerable<IRefactoringWarningMessage> messages) { this.form = form; this.messages = messages; this.logger = NLoggerUtil.GetNLogger(typeof (AddWarningsWorkItem)); }
public UpdateWorkDocumentWorkItem(RefactoringWariningsForm form, IDocument document) { this.form = form; this.document = document; }
public UpdatedSupportedRefactoringTypesWorkItem(RefactoringWariningsForm form, IEnumerable<RefactoringType> currentTypes) { this.form = form; this.currentTypes = currentTypes; }