コード例 #1
0
 @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;
   }
 }
コード例 #2
0
 @Override
 public void safeRun(ContributedProcessorDescriptor desc) throws Exception {
   IQuickAssistProcessor processor =
       (IQuickAssistProcessor)
           desc.getProcessor(fContext.getCompilationUnit(), IQuickAssistProcessor.class);
   if (processor != null && processor.hasAssists(fContext)) {
     fHasAssists = true;
   }
 }
コード例 #3
0
 @Override
 public void safeRun(ContributedProcessorDescriptor desc) throws Exception {
   IQuickAssistProcessor curr =
       (IQuickAssistProcessor)
           desc.getProcessor(fContext.getCompilationUnit(), IQuickAssistProcessor.class);
   if (curr != null) {
     IDartCompletionProposal[] res = curr.getAssists(fContext, fLocations);
     if (res != null) {
       for (int k = 0; k < res.length; k++) {
         fProposals.add(res[k]);
       }
     }
   }
 }