Allow for discontinuous row selection
No idea why this was once implemented
This commit is contained in:
parent
bb97ce6987
commit
e3a9786551
@ -617,6 +617,7 @@ simpanel.ttip.notSimulated = <i>Not simulated yet</i><br>Click <i><b>Run simulat
|
|||||||
simpanel.ttip.noData = No simulation data available.
|
simpanel.ttip.noData = No simulation data available.
|
||||||
simpanel.ttip.noWarnings = <font color=\"gray\">No warnings.</font>
|
simpanel.ttip.noWarnings = <font color=\"gray\">No warnings.</font>
|
||||||
simpanel.ttip.warnings = <font color=\"red\">Warnings:</font>
|
simpanel.ttip.warnings = <font color=\"red\">Warnings:</font>
|
||||||
|
simpanel.msg.invalidCopySelection = Invalid copy selection
|
||||||
|
|
||||||
! SimulationRunDialog
|
! SimulationRunDialog
|
||||||
SimuRunDlg.title.RunSim = Running simulations\u2026
|
SimuRunDlg.title.RunSim = Running simulations\u2026
|
||||||
|
@ -489,8 +489,9 @@ public class SimulationPanel extends JPanel {
|
|||||||
int numRows = simulationTable.getSelectedRowCount();
|
int numRows = simulationTable.getSelectedRowCount();
|
||||||
int[] rowsSelected = simulationTable.getSelectedRows();
|
int[] rowsSelected = simulationTable.getSelectedRows();
|
||||||
|
|
||||||
if (numRows != (rowsSelected[rowsSelected.length-1] - rowsSelected[0] + 1) || numRows != rowsSelected.length) {
|
if (numRows != rowsSelected.length) {
|
||||||
JOptionPane.showMessageDialog(null, "Invalid Copy Selection", "Invalid Copy Selection", JOptionPane.ERROR_MESSAGE);
|
JOptionPane.showMessageDialog(this, trans.get("simpanel.msg.invalidCopySelection"),
|
||||||
|
trans.get("simpanel.msg.invalidCopySelection"), JOptionPane.ERROR_MESSAGE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user