@Override public void safeRun(ContributedProcessorDescriptor desc) throws Exception { IQuickFixProcessor processor = (IQuickFixProcessor) desc.getProcessor(fCu, IQuickFixProcessor.class); if (processor != null && processor.hasCorrections(fCu, fProblemId)) { fHasCorrections = true; } }
@Override public void safeRun(ContributedProcessorDescriptor desc) throws Exception { IQuickFixProcessor curr = (IQuickFixProcessor) desc.getProcessor(fContext.getCompilationUnit(), IQuickFixProcessor.class); if (curr != null) { IDartCompletionProposal[] res = curr.getCorrections(fContext, fLocations); if (res != null) { for (int k = 0; k < res.length; k++) { fProposals.add(res[k]); } } } }