added username to generate contact info on help

This commit is contained in:
boccioli_m
2015-09-01 09:35:28 +02:00
parent b65bfcaa31
commit 3057afe60d
5 changed files with 205 additions and 90 deletions

View File

@@ -920,7 +920,7 @@ public class TestingList extends Panel {
*/
public void openNewTestEditor(String type){
try {
JDialog dlg = new JDialog(getView(), "New Test", true);
JDialog dlg = new JDialog(getView(), "New "+ type, true);
//create a class to visualise the details panel
Class testingListDetailsClass = getController().getClassByName("NewTest");
JPanel detailsPanel = (JPanel) testingListDetailsClass.getConstructor(new Class[]{String.class}).newInstance(new Object[]{type});
@@ -991,12 +991,17 @@ public class TestingList extends Panel {
private void moveUp() {
DefaultTableModel model = (DefaultTableModel) jTable1.getModel();
int[] rows = jTable1.getSelectedRows();
if (rows[0] - 1 >= 0) {
jTable1.setAutoCreateRowSorter(false);
model.moveRow(rows[0], rows[rows.length - 1], rows[0] - 1);
jTable1.setAutoCreateRowSorter(true);
jTable1.setRowSelectionInterval(rows[0] - 1, rows[rows.length - 1] - 1);
try{
if (rows[0] - 1 >= 0) {
jTable1.setAutoCreateRowSorter(false);
model.moveRow(rows[0], rows[rows.length - 1], rows[0] - 1);
jTable1.setAutoCreateRowSorter(true);
jTable1.setRowSelectionInterval(rows[0] - 1, rows[rows.length - 1] - 1);
}
}
catch(Exception ex){
//fail silently
}
}
/**
@@ -1005,11 +1010,16 @@ public class TestingList extends Panel {
private void moveDown() {
DefaultTableModel model = (DefaultTableModel) jTable1.getModel();
int[] rows = jTable1.getSelectedRows();
if (rows[rows.length - 1] < jTable1.getRowCount()) {
jTable1.setAutoCreateRowSorter(false);
model.moveRow(rows[0], rows[rows.length - 1], rows[0] + 1);
jTable1.setAutoCreateRowSorter(true);
jTable1.setRowSelectionInterval(rows[0] + 1, rows[rows.length - 1] + 1);
try{
if (rows[rows.length - 1] < jTable1.getRowCount()) {
jTable1.setAutoCreateRowSorter(false);
model.moveRow(rows[0], rows[rows.length - 1], rows[0] + 1);
jTable1.setAutoCreateRowSorter(true);
jTable1.setRowSelectionInterval(rows[0] + 1, rows[rows.length - 1] + 1);
}
}
catch(Exception ex){
//fail silently
}
}