From: kruland2607 Date: Tue, 13 Dec 2011 19:07:35 +0000 (+0000) Subject: Access preference keys through the base class net.sf.openrocket.startup.Preferences... X-Git-Tag: upstream/12.03~1^2~243 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=a23bc53952cb25591ed7a0d2395b18e1294788d1;p=debian%2Fopenrocket Access preference keys through the base class net.sf.openrocket.startup.Preferences instead of Prefs. git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@227 180e2498-e6e9-4542-8430-84ac67f01cd8 --- diff --git a/src/net/sf/openrocket/gui/plot/SimulationPlotDialog.java b/src/net/sf/openrocket/gui/plot/SimulationPlotDialog.java index f4e47f4a..d26ea7c2 100644 --- a/src/net/sf/openrocket/gui/plot/SimulationPlotDialog.java +++ b/src/net/sf/openrocket/gui/plot/SimulationPlotDialog.java @@ -39,11 +39,11 @@ import net.sf.openrocket.simulation.FlightDataBranch; import net.sf.openrocket.simulation.FlightDataType; import net.sf.openrocket.simulation.FlightEvent; import net.sf.openrocket.startup.Application; +import net.sf.openrocket.startup.Preferences; import net.sf.openrocket.unit.Unit; import net.sf.openrocket.unit.UnitGroup; import net.sf.openrocket.util.BugException; import net.sf.openrocket.util.MathUtil; -import net.sf.openrocket.util.Prefs; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; @@ -138,7 +138,7 @@ public class SimulationPlotDialog extends JDialog { super(parent, trans.get("PlotDialog.title.Flightdataplot")); this.setModalityType(ModalityType.DOCUMENT_MODAL); - final boolean initialShowPoints = Application.getPreferences().getBoolean(Prefs.PLOT_SHOW_POINTS, false); + final boolean initialShowPoints = Application.getPreferences().getBoolean(Preferences.PLOT_SHOW_POINTS, false); // Fill the auto-selections @@ -432,7 +432,7 @@ public class SimulationPlotDialog extends JDialog { @Override public void actionPerformed(ActionEvent e) { boolean show = check.isSelected(); - Application.getPreferences().putBoolean(Prefs.PLOT_SHOW_POINTS, show); + Application.getPreferences().putBoolean(Preferences.PLOT_SHOW_POINTS, show); for (ModifiedXYItemRenderer r : renderers) { r.setBaseShapesVisible(show); }