Ejemplo n.º 1
0
 /** @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;
 }
Ejemplo n.º 2
0
 /**
  * @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()]);
 }