コード例 #1
0
ファイル: TemplateProcessHandler.java プロジェクト: zhaog/cdt
 /** @return the union of all macros used in this template's process groups */
 public Set<String> getAllMacros() {
   Set<String> set = new HashSet<String>();
   for (ConditionalProcessGroup cpg : conditionalProcessGroupList) {
     Set<String> subSet = cpg.getAllMacros();
     if (subSet != null) {
       set.addAll(subSet);
     }
   }
   return set;
 }
コード例 #2
0
ファイル: TemplateProcessHandler.java プロジェクト: zhaog/cdt
 /**
  * @param monitor
  * @return IStatus, as an array of status info
  * @throws ProcessFailureException
  */
 public IStatus[] processAll(IProgressMonitor monitor) throws ProcessFailureException {
   List<IStatus> allStatuses = new ArrayList<IStatus>();
   for (ConditionalProcessGroup cpg : conditionalProcessGroupList) {
     try {
       allStatuses.addAll(cpg.process(monitor));
     } catch (ProcessFailureException e) {
       throw new ProcessFailureException(e.getMessage(), e, allStatuses);
     }
   }
   return allStatuses.toArray(new IStatus[allStatuses.size()]);
 }