Fix the "Simulate & Plot" button in the Simulation Dialog when multiple
simulations are selected. In this case, it now says "Simulate" and the dialog closes when finished.
This commit is contained in:
parent
c3a7b80a3e
commit
ee38ef2d3d
@ -389,6 +389,7 @@ simedtdlg.IntensityDesc.Extreme = Extreme
|
||||
SimulationEditDialog.btn.plot = Plot
|
||||
SimulationEditDialog.btn.export = Export
|
||||
SimulationEditDialog.btn.edit = Edit
|
||||
SimulationEditDialog.btn.simulate = Simulate
|
||||
SimulationEditDialog.btn.simulateAndPlot = Simulate & Plot
|
||||
|
||||
GeodeticComputationStrategy.flat.name = Flat Earth
|
||||
|
@ -206,6 +206,9 @@ public class SimulationEditDialog extends JDialog {
|
||||
|
||||
//// Run simulation button
|
||||
button = new JButton(trans.get("SimulationEditDialog.btn.simulateAndPlot"));
|
||||
if (!isSingleEdit()) {
|
||||
button.setText(trans.get("SimulationEditDialog.btn.simulate"));
|
||||
}
|
||||
button.addActionListener(new ActionListener() {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
@ -214,6 +217,8 @@ public class SimulationEditDialog extends JDialog {
|
||||
refreshView();
|
||||
if (allowsPlotMode()) {
|
||||
setPlotMode();
|
||||
} else {
|
||||
setVisible(false);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user