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 }
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; }