Merge "Issue #2139 Run async job for loading maps in warngen." into omaha_13.5.1
Former-commit-id:a60afe6640
[formerlya60afe6640
[formerly e1588427f01c1a6048d0dc423a6a706b3aa7529f]] Former-commit-id:10baafed63
Former-commit-id:214fd8689c
This commit is contained in:
commit
b4c6a79741
2 changed files with 18 additions and 2 deletions
|
@ -27,4 +27,5 @@ Bundle-ActivationPolicy: lazy
|
|||
Bundle-ClassPath: .
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
|
||||
Export-Package: com.raytheon.viz.ui.personalities.awips
|
||||
Import-Package: com.raytheon.uf.common.pypies
|
||||
Import-Package: com.raytheon.uf.common.pypies,
|
||||
com.raytheon.uf.viz.core.maps
|
||||
|
|
|
@ -19,6 +19,13 @@
|
|||
**/
|
||||
package com.raytheon.viz.ui.personalities.awips;
|
||||
|
||||
import org.eclipse.core.runtime.IProgressMonitor;
|
||||
import org.eclipse.core.runtime.IStatus;
|
||||
import org.eclipse.core.runtime.Status;
|
||||
import org.eclipse.core.runtime.jobs.Job;
|
||||
|
||||
import com.raytheon.uf.viz.core.maps.MapStore;
|
||||
|
||||
/**
|
||||
* TODO Add Description
|
||||
*
|
||||
|
@ -28,6 +35,7 @@ package com.raytheon.viz.ui.personalities.awips;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Aug 9, 2010 mschenke Initial creation
|
||||
* Jun 25, 2013 2139 jsanchez Loaded the map tree on CAVE start up.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -50,7 +58,14 @@ public class CAVE extends AbstractCAVEComponent {
|
|||
*/
|
||||
@Override
|
||||
protected void startInternal(String componentName) throws Exception {
|
||||
|
||||
Job job = new Job("Loading Map Tree") {
|
||||
@Override
|
||||
protected IStatus run(IProgressMonitor monitor) {
|
||||
MapStore.getMapTree();
|
||||
return Status.OK_STATUS;
|
||||
}
|
||||
};
|
||||
job.schedule();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue