X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=android%2Fsrc%2Fnet%2Fsf%2Fopenrocket%2Fandroid%2FCurrentRocket.java;h=36446063955e82b39a326779b03bf061e96acaa7;hb=77f2457dc781c8c517ddef157c18491ad770f6c6;hp=17e2929a02b46c36d478195021e411269af00529;hpb=60711b784f4f3f331f49e28a7e2af3fa2a5b8644;p=debian%2Fopenrocket diff --git a/android/src/net/sf/openrocket/android/CurrentRocket.java b/android/src/net/sf/openrocket/android/CurrentRocket.java index 17e2929a..36446063 100644 --- a/android/src/net/sf/openrocket/android/CurrentRocket.java +++ b/android/src/net/sf/openrocket/android/CurrentRocket.java @@ -75,8 +75,7 @@ public class CurrentRocket { public synchronized void addNewSimulation( Context context ) { isModified = true; Rocket rocket = rocketDocument.getRocket(); - // FIXME - hopefully the change to the Simulation object will be reverted soon. - Simulation newSim = new Simulation(rocketDocument, rocket); + Simulation newSim = new Simulation(rocket); newSim.setName(rocketDocument.getNextSimulationName()); rocketDocument.addSimulation(newSim); notifySimsChanged(context); @@ -95,6 +94,11 @@ public class CurrentRocket { return configId; } + public synchronized void deleteMotorConfig( Context context, String config ) { + rocketDocument.getRocket().removeMotorConfigurationID(config); + notifyMotorConfigChanged(context); + } + /** * @param rocketDocument the rocketDocument to set */