Merge "Issue #2139 Run async job for loading maps in warngen." into omaha_13.5.1

Former-commit-id: 9282a3be3b [formerly 8cc7eefd84] [formerly a60afe6640] [formerly 9282a3be3b [formerly 8cc7eefd84] [formerly a60afe6640] [formerly 10baafed63 [formerly a60afe6640 [formerly e1588427f01c1a6048d0dc423a6a706b3aa7529f]]]]
Former-commit-id: 10baafed63
Former-commit-id: a56dc79f87 [formerly 9374463bac] [formerly 81b3d5ac13949746ea2fab31914ba17a9472bd55 [formerly 214fd8689c]]
Former-commit-id: 2caa259af186898c4d7b26d87c908e624f2ee4d1 [formerly b4c6a79741]
Former-commit-id: 586cb967aa
This commit is contained in:
Nate Jensen 2013-06-26 11:14:03 -05:00 committed by Gerrit Code Review
commit 108c9173d2
2 changed files with 18 additions and 2 deletions

View file

@ -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

View file

@ -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();
}
}