Examples of MosaicInfoView


Examples of org.locationtech.udig.render.gridcoverage.tool.info.internal.MosaicInfoView

            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$
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.