Merge "Issue #2064 - Fixes for sort column in subscription manager and lat/lon text fields in area comp" into omaha_13.5.1
Former-commit-id:46914a095c
[formerly 8418598ba30fa601b13bbe435618acc1a6d152c2] Former-commit-id:4b387ae85b
This commit is contained in:
commit
73ec15180f
4 changed files with 46 additions and 29 deletions
|
@ -90,6 +90,7 @@ import com.vividsolutions.jts.geom.Coordinate;
|
|||
* Dec 10, 2012 1259 bsteffen Switch Data Delivery from LatLon to referenced envelopes.
|
||||
* Dec 11, 2012 1264 mpduff Fix validaiton of lat/lon text fields.
|
||||
* Mar 21, 2013 1638 mschenke Changed map scales not tied to d2d
|
||||
* Jun 14, 2013 2064 mpduff Reset controls on load.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -237,6 +238,7 @@ public class AreaComp extends Composite implements ISubset {
|
|||
setupData();
|
||||
|
||||
createControls();
|
||||
updateRegionControls();
|
||||
if (regionRdo.getSelection()) {
|
||||
// Try to find the smallest region that intersects, assum regions
|
||||
// are listed largest to smallest.
|
||||
|
@ -879,6 +881,10 @@ public class AreaComp extends Composite implements ISubset {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void updateBounds(ReferencedEnvelope envelope) {
|
||||
Coordinate ul = EnvelopeUtils.getUpperLeftLatLon(envelope);
|
||||
Coordinate lr = EnvelopeUtils.getLowerRightLatLon(envelope);
|
||||
|
@ -941,7 +947,6 @@ public class AreaComp extends Composite implements ISubset {
|
|||
}
|
||||
index++;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -125,6 +125,7 @@ import com.raytheon.viz.ui.presenter.IDisplay;
|
|||
* May 28, 2013 1650 djohnson Allow specifying filters for what subscriptions to show.
|
||||
* Jun 05, 2013 2064 mpduff Fix for filtering combo boxes.
|
||||
* Jun 06, 2013 2030 mpduff Refactored help.
|
||||
* Jun 14, 2013 2064 mpduff Check for null/disposed sort column.
|
||||
* </pre>
|
||||
*
|
||||
* @author mpduff
|
||||
|
@ -1050,6 +1051,11 @@ public class SubscriptionManagerDlg extends CaveSWTDialog implements
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// If null get the first one
|
||||
if (sortedTableColumn == null) {
|
||||
sortedTableColumn = tableComp.getTable().getColumn(0);
|
||||
}
|
||||
tableComp.updateSortDirection(sortedTableColumn,
|
||||
tableComp.getSubscriptionData(), false);
|
||||
tableComp.populateTable();
|
||||
|
|
|
@ -102,6 +102,7 @@ import com.raytheon.uf.viz.datadelivery.utils.DataDeliveryUtils.TABLE_TYPE;
|
|||
* May 15, 2013 1040 mpduff Place markNotBusyInUIThread in a finally block.
|
||||
* May 23, 2013 2020 mpduff Call updateControls();
|
||||
* May 28, 2013 1650 djohnson More information when failing to schedule subscriptions.
|
||||
* Jun 14, 2013 2064 mpduff Null check for sorted column.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -573,6 +574,11 @@ public class SubscriptionTableComp extends TableComp implements IGroupAction {
|
|||
sortDirectionMap.put(tc.getText(), SortDirection.ASCENDING);
|
||||
}
|
||||
|
||||
// If no sorted column specified then use the first column
|
||||
if (sortedColumn == null || sortedColumn.isDisposed()) {
|
||||
sortedColumn = table.getColumn(0);
|
||||
}
|
||||
|
||||
populateTable();
|
||||
}
|
||||
|
||||
|
|
|
@ -59,6 +59,7 @@ import com.raytheon.uf.viz.datadelivery.utils.DataDeliveryUtils;
|
|||
* Dec 18, 2012 1439 mpduff Redo subset name validation.
|
||||
* Dec 10, 2012 1259 bsteffen Switch Data Delivery from LatLon to referenced envelopes.
|
||||
* Feb 20, 2013 1589 mpduff Fix to allow saving custom areas.
|
||||
* Jun 14, 2013 2064 mpudff Force an update of region controls.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -333,10 +334,9 @@ public class SpatialSubsetTab extends SubsetTab implements IDataSize {
|
|||
i++;
|
||||
}
|
||||
|
||||
} else {
|
||||
areaComp.updateRegionControls();
|
||||
}
|
||||
|
||||
areaComp.updateRegionControls();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue