Package org.locationtech.udig.catalog.internal

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


    /**
     * This method is called upon plug-in activation
     */
    public void start( BundleContext context ) throws Exception {
        super.start(context);
        local = new CatalogImpl();
        catalogs = Collections.emptyList();
        serviceFactory = new ServiceFactoryImpl();
        resolveManager = new ResolveManager2();
       
        // ensure a preference store is around so we can save to it in the shutdown hook
View Full Code Here


     * 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

        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

Related Classes of org.locationtech.udig.catalog.internal.CatalogImpl

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.