Merge pull request #3 from teyrana/fix-reflection

[fix] fixed deprecated method reflection references.
This commit is contained in:
Daniel Williams 2017-09-02 11:02:51 -04:00 committed by GitHub
commit 724c41e2d3
2 changed files with 4 additions and 4 deletions

View File

@ -215,7 +215,7 @@ public class DefaultSimulationModifierService implements SimulationModifierServi
trans.get("optimization.modifier.internalcomponent.position"),
trans.get("optimization.modifier.internalcomponent.position.desc"),
c, UnitGroup.UNITS_LENGTH,
1.0, c.getClass(), c.getID(), "PositionValue");
1.0, c.getClass(), c.getID(), "RelativePosition");
mod.setMinValue(0);
mod.setMaxValue(parent.getLength());
modifiers.add(mod);
@ -229,7 +229,7 @@ public class DefaultSimulationModifierService implements SimulationModifierServi
trans.get("optimization.modifier.finset.position"),
trans.get("optimization.modifier.finset.position.desc"),
c, UnitGroup.UNITS_LENGTH,
1.0, c.getClass(), c.getID(), "PositionValue");
1.0, c.getClass(), c.getID(), "RelativePosition");
mod.setMinValue(0);
mod.setMaxValue(parent.getLength());
modifiers.add(mod);
@ -243,7 +243,7 @@ public class DefaultSimulationModifierService implements SimulationModifierServi
trans.get("optimization.modifier.launchlug.position"),
trans.get("optimization.modifier.launchlug.position.desc"),
c, UnitGroup.UNITS_LENGTH,
1.0, c.getClass(), c.getID(), "PositionValue");
1.0, c.getClass(), c.getID(), "RelativePosition");
mod.setMinValue(0);
mod.setMaxValue(parent.getLength());
modifiers.add(mod);

View File

@ -82,7 +82,7 @@ public class ScaleDialog extends JDialog {
List<Scaler> list;
// RocketComponent
addScaler(RocketComponent.class, "PositionValue");
addScaler(RocketComponent.class, "RelativePosition");
SCALERS.get(RocketComponent.class).add(new OverrideScaler());
// BodyComponent