Merge "Issue #2112 Fix volume browser sounding errors." into development
Former-commit-id:008f2f98ad
[formerly8a4506e794
] [formerlyc57aa39ddd
[formerly 019b1d63f11c9d1d57593e26f939d6b089730693]] Former-commit-id:c57aa39ddd
Former-commit-id:5d53ab253d
This commit is contained in:
commit
5c59b1257c
2 changed files with 16 additions and 4 deletions
|
@ -68,7 +68,8 @@ import com.raytheon.viz.alerts.observers.ProductAlertObserver;
|
|||
* SOFTWARE HISTORY
|
||||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Jan 8, 2010 rjpeter Initial creation
|
||||
* Jan 08, 2010 rjpeter Initial creation
|
||||
* Jul 25, 2013 2112 bsteffen Fix volume browser sounding errors.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -149,6 +150,13 @@ public class CoverageUtils implements IAlertObserver {
|
|||
set.add(new UniqueIdGridCoverageWrapper(coverage));
|
||||
}
|
||||
rval = coverageCache.get(datasetId);
|
||||
if (rval == null) {
|
||||
HashSet<UniqueIdGridCoverageWrapper> set = new HashSet<UniqueIdGridCoverageWrapper>(
|
||||
0);
|
||||
coverageCache.put(datasetId, set);
|
||||
rval = set;
|
||||
|
||||
}
|
||||
}
|
||||
List<GridCoverage> finalSet = new ArrayList<GridCoverage>(rval.size());
|
||||
for (UniqueIdGridCoverageWrapper wrapper : rval) {
|
||||
|
|
|
@ -61,7 +61,8 @@ import com.raytheon.viz.volumebrowser.vbui.VolumeBrowserAction;
|
|||
* SOFTWARE HISTORY
|
||||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Apr 14, 2010 bsteffen Initial creation
|
||||
* Apr 14, 2010 bsteffen Initial creation
|
||||
* Jul 25, 2013 2112 bsteffen Fix volume browser sounding errors.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -241,11 +242,14 @@ public abstract class AbstractInventoryDataCatalog extends AbstractDataCatalog {
|
|||
|
||||
public List<String> getSupportedSourcesInternal() {
|
||||
BlockingQueue<String> returnQueue = new LinkedBlockingQueue<String>();
|
||||
try {
|
||||
getInventory().checkSources(null, null, null, returnQueue);
|
||||
AbstractInventory inventory = getInventory();
|
||||
if (inventory != null) {
|
||||
try {
|
||||
inventory.checkSources(null, null, null, returnQueue);
|
||||
} catch (InterruptedException e) {
|
||||
statusHandler.handle(Priority.PROBLEM, e.getLocalizedMessage(), e);
|
||||
}
|
||||
}
|
||||
List<String> result = new ArrayList<String>(returnQueue);
|
||||
result.retainAll(MenuItemManager.getInstance()
|
||||
.getMapOfKeys(DataSelection.SOURCES).keySet());
|
||||
|
|
Loading…
Add table
Reference in a new issue