Пример #1
0
 /*
  * TODO dont call ((Command) list[i]).execute(); call .override_do() to
  * avoid registration in the CommandProcessorList, same for the other
  * methods here!
  */
 @Override
 public boolean override_do() {
   if (myList.myLength > 0) {
     Log.d("Commands", "CG '" + this + "' (size=" + myList.myLength + ") NO parameter");
     boolean result = true;
     for (int i = 0; i < myList.myLength; i++) {
       if (myProcessListener != null)
         myProcessListener.onProcessStep(i, myList.myLength, myList.get(i));
       Log.d("Commands", "   + CG " + this + " EXECUTING " + myList.get(i) + " (NO parameter)");
       result |= myList.get(i).execute();
     }
     return result;
   }
   return false;
 }