Example #1
0
 public void saveObject(XMLControl control, Object obj) {
   super.saveObject(control, obj);
   ElementTrail element = (ElementTrail) obj;
   control.setValue("maximum", element.getMaximumPoints()); // $NON-NLS-1$
   control.setValue("connected", element.isConnected()); // $NON-NLS-1$
   // Don't save the points since loadObject will clear the trail
 }
Example #2
0
 public Object loadObject(XMLControl control, Object obj) {
   super.loadObject(control, obj);
   ElementTrail element = (ElementTrail) obj;
   element.setMaximumPoints(control.getInt("maximum")); // $NON-NLS-1$
   element.setConnected(control.getBoolean("connected")); // $NON-NLS-1$
   // This implies element.clear()
   return obj;
 }