/** * Saves object data to an XMLControl. * * @param control the control to save to * @param obj the object to save */ public void saveObject(XMLControl xmlControl, Object obj) { OSPControl ospControl = (OSPControl) obj; saveControlProperites(xmlControl, ospControl); // save the model if the control is the top level if (xmlControl.getLevel() == 0) { xmlControl.setValue("model", ospControl.model); // $NON-NLS-1$ } }