out.println(); out.println("package " + asset_package + ";"); out.println("import java.beans.*;"); out.println(); out.println("/** BeanInfo for "+name+" **/"); out.println();
println(out); println(out,"package " + asset_package + ";"); println(out,"import java.beans.*;"); println(out); println(out,"/** BeanInfo for "+name+" **/"); println(out);
    public void writeBeanInfo() {      for (Enumeration cds = classds.elements();           cds.hasMoreElements(); ) {        ClassD cd = (ClassD) cds.nextElement();        // write the class        String name = cd.getName();        String path = name + "BeanInfo.java";        debug("Writing "+cd+" to "+path);        if (cleanp) {          (new File(path)).delete();          continue;        }        String ext = cd.getBase();        if (ext != null && ! ext.equals("")) {          ext = " extends "+ext+"BeanInfo";        } else {          ext = " extends SimpleBeanInfo";        }        try {          noteFile(path);          PrintWriter out = new PrintWriter(new OutputStreamWriter(new FileOutputStream(new File(getTargetDir(),path))));          writeCR(out);          out.println();	  out.println("package " + asset_package + ";");          out.println("import java.beans.*;");          out.println();          out.println("/** BeanInfo for "+name+" **/");          out.println();                            for (Enumeration imps = cd.getImports().elements();               imps.hasMoreElements(); ) {            out.println("import "+imps.nextElement()+";");          }          out.println("public class "+name+"BeanInfo"+ext+" {");          writeBeanInfoBody(out, cd);          out.println("}");          out.close();        } catch (Exception e) {          System.err.println("Caught "+e);        }      }    }