Skip to content

Commit 6911f8b

Browse files
new column order: status, description, indicators, execution time
1 parent 535ea91 commit 6911f8b

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

sqldev/src/main/java/org/utplsql/sqldev/ui/runner/TestOverviewTableModel.java

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -108,34 +108,34 @@ public int getColumnCount() {
108108
public Object getValueAt(final int row, final int col) {
109109
final Test test = getTest(row);
110110
switch (col) {
111-
case 0:
112-
return test.getStatusIcon();
113-
case 1:
114-
return test.getWarningIcon();
115-
case 2:
116-
return test.getInfoIcon();
117-
case 3:
118-
if (showDescription && test.getDescription() != null) {
119-
return test.getDescription();
120-
} else {
121-
return test.getId().substring(commonPrefix == null ? 0 : commonPrefix.length());
122-
}
123-
case 4:
124-
return test.getExecutionTime();
125-
default:
126-
return null;
111+
case 0:
112+
return test.getStatusIcon();
113+
case 1:
114+
if (showDescription && test.getDescription() != null) {
115+
return test.getDescription();
116+
} else {
117+
return test.getId().substring(commonPrefix == null ? 0 : commonPrefix.length());
118+
}
119+
case 2:
120+
return test.getWarningIcon();
121+
case 3:
122+
return test.getInfoIcon();
123+
case 4:
124+
return test.getExecutionTime();
125+
default:
126+
return null;
127127
}
128128
}
129129

130130
@Override
131131
public String getColumnName(final int col) {
132132
switch (col) {
133-
case 0:
134133
case 1:
134+
return UtplsqlResources.getString(showDescription ? "RUNNER_DESCRIPTION_LABEL" : "RUNNER_TEST_ID_COLUMN");
135+
case 0:
135136
case 2:
136-
return ""; // icons are used instead of descriptions
137137
case 3:
138-
return UtplsqlResources.getString(showDescription ? "RUNNER_DESCRIPTION_LABEL" : "RUNNER_TEST_ID_COLUMN");
138+
return ""; // icons are used instead of descriptions
139139
case 4:
140140
return getTimeColumnName();
141141
default:
@@ -153,8 +153,8 @@ public boolean isCellEditable(final int row, final int column) {
153153
public Class<?> getColumnClass(final int col) {
154154
switch (col) {
155155
case 0:
156-
case 1:
157156
case 2:
157+
case 3:
158158
return Icon.class;
159159
case 4:
160160
return Double.class;

0 commit comments

Comments
 (0)