Exemplo n.º 1
0
 public static boolean processContext(
     final Context context, final List<CompileParameter> parameters) {
   try {
     context.notify("PROCESS", parameters);
     for (final CompileParameter cp : parameters) {
       if (!cp.check(context)) {
         if (cp.getDetailedDescription() != null) {
           context.show();
           context.show();
           context.show(cp.getDetailedDescription());
         }
         return false;
       }
     }
     for (final CompileParameter cp : parameters) {
       cp.run(context);
     }
     return true;
   } catch (ExitException ex) {
     return false;
   }
 }