Issue #1436 Fixed selection icon reset, Fixed area text box display check.
Change-Id: Ib7545ff9e23eadac26daf927ce428b805f3be4b2 Former-commit-id:6874e17cc2
[formerly701c572625
] [formerlyc9c68424f9
] [formerly6874e17cc2
[formerly701c572625
] [formerlyc9c68424f9
] [formerlya78c49e2b1
[formerlyc9c68424f9
[formerly 4fb8c74153e6da96943cf6ee71b03f5c3ff73176]]]] Former-commit-id:a78c49e2b1
Former-commit-id:d718fc9152
[formerly21e8f98ee8
] [formerly 553ebc60db83a2e112000434759c7a3802e8a245 [formerly5a5644a2c5
]] Former-commit-id: 7f5c50677bfe787243a2f7b0a0fe271558dd4fd7 [formerly720a30f639
] Former-commit-id:2dfc5f99c5
This commit is contained in:
parent
820f10df05
commit
89f7d9e7a9
2 changed files with 19 additions and 18 deletions
|
@ -113,6 +113,7 @@ import com.vividsolutions.jts.geom.Coordinate;
|
|||
* Dec 11, 2012 1405 mpduff Move close confirmation dialog after event.doit = false.
|
||||
* Dec 10, 2012 1259 bsteffen Switch Data Delivery from LatLon to referenced envelopes.
|
||||
* Dec 12, 2012 1391 bgonzale Added job for dataset retrieval.
|
||||
* Jan 08, 2012 1436 bgonzale Fixed area text box display update check.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -735,27 +736,27 @@ public class DataBrowserDlg extends CaveSWTDialog implements IDataTableUpdate,
|
|||
if (envelope == null || envelope.isEmpty()) {
|
||||
areaSelectedLbl.setText("");
|
||||
clearBtn.setEnabled(false);
|
||||
}
|
||||
} else {
|
||||
NumberFormat formatter = new DecimalFormat(".0000");
|
||||
|
||||
NumberFormat formatter = new DecimalFormat(".0000");
|
||||
Coordinate ul = EnvelopeUtils.getUpperLeftLatLon(envelope);
|
||||
Coordinate lr = EnvelopeUtils.getLowerRightLatLon(envelope);
|
||||
|
||||
Coordinate ul = EnvelopeUtils.getUpperLeftLatLon(envelope);
|
||||
Coordinate lr = EnvelopeUtils.getLowerRightLatLon(envelope);
|
||||
// Check for empty values
|
||||
if (ul.x == 0 && ul.y == 0 && lr.x == 0 && lr.y == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Check for empty values
|
||||
if (ul.x == 0 && ul.y == 0 && lr.x == 0 && lr.y == 0) {
|
||||
return;
|
||||
}
|
||||
StringBuilder sb = new StringBuilder("UL: ");
|
||||
sb.append(formatter.format(ul.x) + "," + formatter.format(ul.y));
|
||||
sb.append(", LR: " + formatter.format(lr.x) + ","
|
||||
+ formatter.format(lr.y));
|
||||
|
||||
StringBuilder sb = new StringBuilder("UL: ");
|
||||
sb.append(formatter.format(ul.x) + "," + formatter.format(ul.y));
|
||||
sb.append(", LR: " + formatter.format(lr.x) + ","
|
||||
+ formatter.format(lr.y));
|
||||
areaSelectedLbl.setText(sb.toString());
|
||||
|
||||
areaSelectedLbl.setText(sb.toString());
|
||||
|
||||
if (areaSelectedLbl.getText().length() > 0) {
|
||||
clearBtn.setEnabled(true);
|
||||
if (areaSelectedLbl.getText().length() > 0) {
|
||||
clearBtn.setEnabled(true);
|
||||
}
|
||||
}
|
||||
|
||||
this.areaDirty = true;
|
||||
|
|
|
@ -77,7 +77,8 @@ import com.raytheon.viz.ui.widgets.duallist.DualListConfig;
|
|||
* Dec 12, 2012 1391 bgonzale Added a job for the dataset query.
|
||||
* Dec 10, 2012 1259 bsteffen Switch Data Delivery from LatLon to referenced envelopes.
|
||||
* Dec 18, 2012 1436 bgonzale When creating the filter dialogs, use the loaded
|
||||
* configuration when populating the filters.
|
||||
* configuration when populating the filters. Fixed selection
|
||||
* icon update when loading from a file.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -326,7 +327,6 @@ public class FilterExpandBar extends Composite implements IFilterUpdate, IExpand
|
|||
FilterComp filterComp = new FilterComp(expandBar, SWT.NONE, this, filterConfig, idx);
|
||||
|
||||
expItem.setHeight(filterComp.computeSize(SWT.DEFAULT, SWT.DEFAULT).y);
|
||||
expItem.setImage(filterImgs.getExpandItemImage(ExpandItemState.NoEntries));
|
||||
expItem.setControl(filterComp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue