request.bbox = bbox;
request.layers = context.getMapLayers();
Display.getDefault().asyncExec(new Runnable(){
public void run() {
MosaicInfoView infoView = (MosaicInfoView) ApplicationGIS.getView(true,
MosaicInfoView.VIEW_ID);
// JONES: deselect current feature so it won't flash when view is activated (it
// won't be valid
// one the new search passes.
if (infoView != null)
if (infoView.getSite().getSelectionProvider() != null)
infoView.getSite().getSelectionProvider().setSelection(
new StructuredSelection());
// JONES: activate view now that there is no current selection.
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
if (!page.isPartVisible(infoView))
page.bringToTop(infoView);
// we got here and info was null? Don't want to fail on first attempt
infoView = (MosaicInfoView) ApplicationGIS.getView(false,MosaicInfoView.VIEW_ID);
infoView.updateInfo(request);
}
});
} catch (Throwable e1) {
// Should log problem ..
RendererPlugin.log("Could not display information", e1); //$NON-NLS-1$