Examples of ICatalogInfo


Examples of org.locationtech.udig.catalog.ICatalogInfo

        }
        IResolve record = (IResolve) selection;
        if (record instanceof ICatalog) {
            ICatalog catalog = (ICatalog) record;
            try {
                ICatalogInfo info = catalog.getInfo(searchMonitor);
                showInfo(new Info(catalog.getIdentifier(), info));
            } catch (IOException e) {
                CatalogUIPlugin.log("No information for catalog", e); //$NON-NLS-1$
            }
        } else if (record instanceof IService) {
View Full Code Here

Examples of org.locationtech.udig.catalog.ICatalogInfo

        }
    }

    @Test
    public void testInfo() throws IOException {
        ICatalogInfo info = getResolve().getInfo(null);
        assertNotNull("Info is required", info); //$NON-NLS-1$
    }
View Full Code Here

Examples of org.locationtech.udig.catalog.ICatalogInfo

    }

    @Test
    public void testInfoMonitor() throws IOException {
        FakeProgress monitor = new FakeProgress();
        ICatalogInfo info = getResolve().getInfo(monitor);
        assertNotNull("Info is required", info); //$NON-NLS-1$
        assertEquals( "Monitor must be finished",  monitor.total, monitor.completed); //$NON-NLS-1$
        assertTrue("Monitor must be used.", monitor.total != 0); //$NON-NLS-1$
    }
View Full Code Here

Examples of org.locationtech.udig.catalog.ICatalogInfo

    @Test
    public void testResolve() throws IOException {
        List<?> children = getResolve().resolve(List.class, null);
        if (!isLeaf())
            assertTrue("May not have null children", children != null); //$NON-NLS-1$
        ICatalogInfo info = getResolve().resolve(ICatalogInfo.class, null);
        if (!isLeaf())
            assertTrue("May not have null info", info != null); //$NON-NLS-1$
    }
View Full Code Here

Examples of org.locationtech.udig.catalog.ICatalogInfo

        // should still be taken care of
        assertTrue("Monitor must be used.", //$NON-NLS-1$
                ((monitor.total == monitor.completed) && (monitor.total != 0)));

        monitor = new FakeProgress();
        ICatalogInfo info = getResolve().resolve(ICatalogInfo.class, monitor);
        if (!isLeaf())
            assertTrue("May not have null info", info != null); //$NON-NLS-1$
        // should still be taken care of
        assertTrue("Monitor must be used.", //$NON-NLS-1$
                ((monitor.total == monitor.completed) && (monitor.total != 0)));
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.