X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=core%2Fsrc%2Fnet%2Fsf%2Fopenrocket%2Fgui%2Fmain%2FSimulationPanel.java;fp=core%2Fsrc%2Fnet%2Fsf%2Fopenrocket%2Fgui%2Fmain%2FSimulationPanel.java;h=b12b85617a5f27339689a8fb8ec4e45dfb14422b;hb=9349577cdfdff682b2aabd6daa24fdc3a7449b58;hp=719e1cf6a6a3cd3d00cd4e1c7eae45ae19566067;hpb=30ba0a882f0c061176ba14dbf86d3d6fad096c02;p=debian%2Fopenrocket
diff --git a/core/src/net/sf/openrocket/gui/main/SimulationPanel.java b/core/src/net/sf/openrocket/gui/main/SimulationPanel.java
index 719e1cf6..b12b8561 100644
--- a/core/src/net/sf/openrocket/gui/main/SimulationPanel.java
+++ b/core/src/net/sf/openrocket/gui/main/SimulationPanel.java
@@ -135,7 +135,7 @@ public class SimulationPanel extends JPanel {
long t = System.currentTimeMillis();
new SimulationRunDialog(SwingUtilities.getWindowAncestor(
- SimulationPanel.this), sims).setVisible(true);
+ SimulationPanel.this), document, sims).setVisible(true);
log.info("Running simulations took " + (System.currentTimeMillis() - t) + " ms");
fireMaintainSelection();
}
@@ -514,7 +514,7 @@ public class SimulationPanel extends JPanel {
}
private void openDialog(final Simulation sim, int position) {
- new SimulationEditDialog(SwingUtilities.getWindowAncestor(this), sim, position)
+ new SimulationEditDialog(SwingUtilities.getWindowAncestor(this), document, sim, position)
.setVisible(true);
fireMaintainSelection();
}
@@ -571,42 +571,38 @@ public class SimulationPanel extends JPanel {
tip = "" + sim.getName() + "
";
switch (sim.getStatus()) {
case UPTODATE:
- //// Up to date
- tip += "Up to date
";
+ tip += trans.get ("simpanel.ttip.uptodate") + "
";
break;
case LOADED:
- //// Data loaded from a file
- tip += "Data loaded from a file
";
+ tip += trans.get ("simpanel.ttip.loaded") + "
";
break;
case OUTDATED:
- tip += "Data is out of date
";
- tip += "Click Run simulations to simulate.
";
+ tip += trans.get ("simpanel.ttip.outdated") + "
";
break;
case EXTERNAL:
- tip += "Imported data
";
+ tip += trans.get ("simpanel.ttip.external") + "
";
return tip;
case NOT_SIMULATED:
- tip += "Not simulated yet
";
- tip += "Click Run simulations to simulate.";
+ tip += trans.get ("simpanel.ttip.notSimulated");
return tip;
}
if (data == null) {
- tip += "No simulation data available.";
+ tip += trans.get ("simpanel.ttip.noData");
return tip;
}
WarningSet warnings = data.getWarningSet();
if (warnings.isEmpty()) {
- tip += "No warnings.";
+ tip += trans.get ("simpanel.ttip.noWarnings");
return tip;
}
- tip += "Warnings:";
+ tip += trans.get ("simpanel.ttip.warnings");
for (Warning w : warnings) {
tip += "
" + w.toString();
}