request.bbox = bbox;
request.layers = context.getMapLayers();
Display.getDefault().asyncExec(new Runnable(){
public void run() {
InfoView2 infoView=(InfoView2) ApplicationGIS.getView(true, InfoView2.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=(InfoView2) ApplicationGIS.getView(false, InfoView2.VIEW_ID);
infoView.search( request );
}
});
} catch ( Throwable e1) {
// Should log problem ..
InfoPlugin.log( "Could not display information", e1 ); //$NON-NLS-1$