Examples of canResolve()


Examples of org.locationtech.udig.catalog.IService.canResolve()

            boolean isFeature = resource.canResolve(FeatureSource.class);
            String iconId = iconInternalResource( resource.getID(), isFeature );
            return CatalogUIPlugin.getDefault().getImage( iconId );
        } else if (resolve instanceof IService) {
            IService service = (IService) resolve;
            boolean isFeature = service.canResolve(DataStore.class);
           
            String iconId = iconInternalService( service.getID(), isFeature );
            return CatalogUIPlugin.getDefault().getImage( iconId );
        } else if (resolve instanceof ICatalog) {
            return CatalogUIPlugin.getDefault().getImage(ISharedImages.CATALOG_OBJ);
View Full Code Here

Examples of org.locationtech.udig.catalog.tests.DummyService.canResolve()

public class ResolveFactoryTest {

    @Test
    public void testResolve() throws Exception {
        DummyService service=new DummyService();
        assertTrue(service.canResolve(ResolvedTo.class));
        assertNotNull(service.resolve(ResolvedTo.class, new NullProgressMonitor()));
    }
}
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.visualization.model.VisualItemValueResolver.canResolve()

            // XXX also need to check if delegate can resolve...
        }

        for (VisualItem visualItem : visualItems) {
            if (!resolver.canResolve(visualItem, this)) {
                /*
                 * TODO potential optimization: only change error model if state
                 * for view item has changed (delta update).
                 */
                errorModel.reportError(slot, visualItem);
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.