Examples of CatalogImpl


Examples of org.locationtech.udig.catalog.internal.CatalogImpl

     * Load the getLocalCatalogFile() into the local catalog() and restore any external catalogs.
     */
    public void restoreFromPreferences() {
        try {
            if( getLocalCatalog() instanceof CatalogImpl){
                CatalogImpl localCatalog = (CatalogImpl) getLocalCatalog();
                File catalogFile = getLocalCatalogFile();
                IServiceFactory serviceFactory = CatalogPlugin.getDefault().getServiceFactory();
                localCatalog.loadFromFile(catalogFile, serviceFactory);
            }
        } catch (Throwable t) {
            CatalogPlugin.log("Trouble restoring local catalog:"+t, t);
        }
        try {
View Full Code Here

Examples of org.locationtech.udig.catalog.internal.CatalogImpl

        return instance;
    }

    @Before
    public void setUp() throws Exception {
        instance = new CatalogImpl();
        instance.add(new IService(){

            public <T> T resolve( Class<T> adaptee, IProgressMonitor monitor ) throws IOException {
                return null;
            }
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.