for (Enumeration es = oplan.getForcePackages(); es.hasMoreElements(); ) { publishAdd(es.nextElement()); } for (Enumeration es = oplan.getOrgActivities(); es.hasMoreElements(); ) { publishAdd(es.nextElement()); } for (Enumeration es = oplan.getOrgRelations(); es.hasMoreElements(); ) { publishAdd(es.nextElement()); }  for (Enumeration es = oplan.getPolicies(); es.hasMoreElements(); ) { publishAdd(es.nextElement());
for (Iterator iterator = oplanComponents.iterator(); iterator.hasNext();) { publishAdd(iterator.next());
  private void publishOplan() {    // Get the PlugIn Parameters    Vector params = getParameters();    ArrayList oplans = new ArrayList(params.size());    // Instantiate the OPlanFileReader to create the OPlan    if ( params.size() != 0 ) {      for (int i = 0, n = params.size(); i < n; i++) {        String fileName = (String)(params.elementAt(i));        OplanFileReader ofr =          new OplanFileReader(fileName, subscriber, getFactory(), getCluster());        Oplan oplan = ofr.readOplan();        oplans.add(oplan);      }    } else {      System.err.println("OPlanPlugIn : No parameters were specified");    }    openTransaction();    int n = oplans.size();    if (n > 0) {      for (int i = 0; i < n; i++) {        Oplan oplan = (Oplan) oplans.get(i);        // Add the OPLAN to the LogPlan.        publishAdd(oplan);        // publish the subs        for (Enumeration es = oplan.getForcePackages(); es.hasMoreElements(); ) {          publishAdd(es.nextElement());        }        for (Enumeration es = oplan.getOrgActivities(); es.hasMoreElements(); ) {          publishAdd(es.nextElement());        }        for (Enumeration es = oplan.getOrgRelations(); es.hasMoreElements(); ) {          publishAdd(es.nextElement());        }        // policies are not oplan-associated        for (Enumeration es = oplan.getPolicies(); es.hasMoreElements(); ) {          publishAdd(es.nextElement());        }        OplanCoupon ow = new OplanCoupon(oplan.getUID(), getClusterIdentifier());        getCluster().getUIDServer().registerUniqueObject(ow);        publishAdd(ow);      }      myPrivateState.oplanExists = true;    } else {      myPrivateState.errorOccurred = true;    }    /** XXX **/    /*    try {      FileOutputStream os = new FileOutputStream("oplan.ser");            class MyObjectOutputStream extends ObjectOutputStream {        MyObjectOutputStream(FileOutputStream fos) throws IOException {          super(fos);          enableReplaceObject(true);        }        protected Object replaceObject(Object o) throws IOException {          System.err.println(""+o.getClass()+"/"+o.toString());          return o;        }      }      ObjectOutputStream p = new MyObjectOutputStream(os);      p.writeObject(oplan);      p.flush();      os.close();    } catch (Exception e) {      e.printStackTrace();    }    */    /** XXX **/    publishChange(myPrivateState);    closeTransaction(false);    checkButtonEnable();  }