public synchronized void addNewSimulation( Context context ) {\r
isModified = true;\r
Rocket rocket = rocketDocument.getRocket();\r
- // FIXME - hopefully the change to the Simulation object will be reverted soon.\r
- Simulation newSim = new Simulation(rocketDocument, rocket);\r
+ Simulation newSim = new Simulation(rocket);\r
newSim.setName(rocketDocument.getNextSimulationName());\r
rocketDocument.addSimulation(newSim);\r
notifySimsChanged(context);\r
return configId;\r
}\r
\r
+ public synchronized void deleteMotorConfig( Context context, String config ) {\r
+ rocketDocument.getRocket().removeMotorConfigurationID(config);\r
+ notifyMotorConfigChanged(context);\r
+ }\r
+ \r
/**\r
* @param rocketDocument the rocketDocument to set\r
*/\r