Package org.locationtech.udig.catalog.internal.ui

Examples of org.locationtech.udig.catalog.internal.ui.CatalogView


        // of their action - in this case selecting the first service added
        // TODO: this has threading issues
        PlatformGIS.asyncInDisplayThread(new Runnable() {
            public void run() {
                try {
                    CatalogView view = getCatalogView();
                    if (view != null) {
                        CatalogTreeViewer treeviewer = view.getTreeviewer();
                        treeviewer
                                .setSelection(new StructuredSelection(services.iterator().next()));
                    }
                } catch (Exception e) {
                    CatalogUIPlugin.log(e.getLocalizedMessage(), e);


    protected boolean isShowCatalogView() {
        return true;
    }

    protected CatalogView getCatalogView() throws PartInitException {
        CatalogView view;
        if (isShowCatalogView()) {
            view = (CatalogView) PlatformUI.getWorkbench().getActiveWorkbenchWindow()
                    .getActivePage().showView(CatalogView.VIEW_ID);
        } else {
            view = (CatalogView) PlatformUI.getWorkbench().getActiveWorkbenchWindow()

            exported.addAll(data.getExportedResources());
        }

        PlatformGIS.asyncInDisplayThread(new Runnable(){
            public void run() {
                CatalogView catalogView = getCatalogView();
                if (catalogView != null) {
                    catalogView.getSite().getPage().activate(catalogView);
                    catalogView.getTreeviewer().setSelection(toTreePathSelection(exported), true);
                }
            }

            private ISelection toTreePathSelection( List<IGeoResource> exported ) {

TOP

Related Classes of org.locationtech.udig.catalog.internal.ui.CatalogView

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.