Package org.locationtech.udig.tool.info.internal

Examples of org.locationtech.udig.tool.info.internal.InfoView2$InfoRequest


            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$
View Full Code Here

TOP

Related Classes of org.locationtech.udig.tool.info.internal.InfoView2$InfoRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.