Issue #3045 Change column label to "Data Set".

Change-Id: I4088fb29fd942ecc07c82e3da24d9561cb3b1b13

Former-commit-id: dd679c7978 [formerly 8eb4c91ab3] [formerly 3a2a6afaf1] [formerly dd679c7978 [formerly 8eb4c91ab3] [formerly 3a2a6afaf1] [formerly cf6d1c8ca1 [formerly 3a2a6afaf1 [formerly f00ce42d8e79ef47d9b14125dc61129fc60fc0cf]]]]
Former-commit-id: cf6d1c8ca1
Former-commit-id: f88302b94d [formerly 555c8cf617] [formerly 675b98f9712eaa32b9b8d18b880b9cabd81a288f [formerly 0490023b2c]]
Former-commit-id: e456e77496a0301296471813c64c0022c292f98e [formerly 3d744452af]
Former-commit-id: 0ece281810
This commit is contained in:
Roger Ferrel 2014-04-24 16:02:31 -05:00
parent 4b7ab25bbe
commit 541ee5a81d
3 changed files with 13 additions and 6 deletions

View file

@ -899,7 +899,7 @@ public class SizeJob extends Job {
public LoadDisplayDataJob(
ILoadDisplayDataListener loadDisplayDataListener,
int loadDisplayDataCnt) {
super("Loading Category labels");
super("Loading Data Sets");
this.loadDisplayDataListener = loadDisplayDataListener;
this.loadDisplayDataCnt = loadDisplayDataCnt;
}

View file

@ -64,7 +64,7 @@ import com.raytheon.uf.viz.archive.data.SizeJob;
* Aug 06, 2013 #2222 rferrel Changes to display all selected data.
* Aug 14, 2013 #2220 rferrel Add refresh method.
* Aug 26, 2013 #2225 rferrel Add missing updates.
* Apr 23, 2014 #3045 rferrel Added clearTable method.
* Apr 23, 2014 #3045 rferrel Added clearTable method and new column name.
*
* </pre>
*
@ -73,12 +73,19 @@ import com.raytheon.uf.viz.archive.data.SizeJob;
*/
public class ArchiveTableComp extends Composite {
/** Column label when table displaying category information. */
private final String CATEGORY_COL_LABEL = "Data Set";
/** Column label when table displaying select all information. */
private final String SEL_ALL_COL_LABEL = "Archive | Category | Data Set";
/** Column to display label information. */
private final int LABEL_COL_INDEX = 0;
/** Column to display size information,. */
private final int SIZE_COL_INDEX = 1;
/** Flag to indicate all selections are being displayed. */
private boolean showSelectAll = false;
/** Name of table's archive. */
@ -207,7 +214,7 @@ public class ArchiveTableComp extends Composite {
});
TableColumn pathColumn = new TableColumn(table, SWT.LEFT);
pathColumn.setText("Label");
pathColumn.setText(CATEGORY_COL_LABEL);
TableColumn sizeColumn = new TableColumn(table, SWT.CENTER);
if (type == Type.Retention) {
@ -466,7 +473,7 @@ public class ArchiveTableComp extends Composite {
protected void populateTable(String archiveName, String categoryName,
List<DisplayData> displayDatas) {
showSelectAll = false;
table.getColumn(0).setText("Label");
table.getColumn(0).setText(CATEGORY_COL_LABEL);
populateTable(displayDatas);
}
@ -484,7 +491,7 @@ public class ArchiveTableComp extends Composite {
*/
protected void populateSelectAll(List<DisplayData> displayDatas) {
showSelectAll = true;
table.getColumn(0).setText("Archive | Category | Label");
table.getColumn(0).setText(SEL_ALL_COL_LABEL);
populateTable(displayDatas);
}

View file

@ -495,7 +495,7 @@ public class CaseCreationDlg extends AbstractArchiveDlg {
// }
// });
String tooltip = "Waiting on loading of table labels.";
String tooltip = "Waiting on loading of Data Sets.";
Color color = shell.getDisplay().getSystemColor(SWT.COLOR_YELLOW);
saveBtn = new Button(actionControlComp, SWT.PUSH);
saveBtn.setText(" Save ");