Package org.locationtech.udig.catalog

Examples of org.locationtech.udig.catalog.IResolveFolder


                }
                return list.toArray();
            }
            if (parentElement instanceof IResolve) {
                if (parentElement instanceof IResolveFolder) {
                    IResolveFolder folder = (IResolveFolder) parentElement;
                    if (schemaSelected != null){
                        try {
                            if(schemaSelected == folder.getTitle()) {
                                List<IResolve> children2 = folder.members(new NullProgressMonitor());
                                return children2.toArray();
                            }else{
                                return null;
                            }
                        } catch (IOException e) {
View Full Code Here


                    return proc.getInfo(new NullProgressMonitor()).getTitle();
                } else if (resolve instanceof ISearch) {
                    ISearch search = (ISearch) element;
                    return search.getInfo(new NullProgressMonitor()).getTitle();
                } else if (resolve instanceof IResolveFolder) {
                    IResolveFolder folder = (IResolveFolder) element;
                    return folder.getID().toString();
                } else {
                    return resolve.getID().toString();
                }
            } catch (IOException e) {
                CatalogUIPlugin.trace("Error fetching the Title for the resource", e); //$NON-NLS-1$
View Full Code Here

                            data.text = proc.getInfo(monitor).getTitle();
                          } else if(element instanceof ISearch) {
                            ISearch search = (ISearch) element;
                            data.text = search.getInfo(monitor).getTitle();
                          } else {
                            IResolveFolder folder = (IResolveFolder) element;
                            data.text = folder.getID().toString();
                          }
                        }
                    } catch (Throwable e) {
                        CatalogUIPlugin.log("Error fetching the Title for the resource", e); //$NON-NLS-1$
                        continue;
View Full Code Here

                        try {
                            List<IResolve> members = resolve.members(monitor);
                            list.addAll(members);
                            if (schemaSelected != null){
                                for( IResolve resolve2 : members ) {
                                    IResolveFolder folder = (IResolveFolder) resolve2;
                                    if (folder.getTitle() != schemaSelected){
                                        list.remove(resolve2);
                                    }
                                }
                            }
                        } catch (Exception e) {
View Full Code Here

    private void setInput( ResourceSelectionState state ) {
        grayedElements.clear();
        int checked=0;
        if (state.getWorkflow().getContext() instanceof IResolveFolder){
            IResolveFolder resolveFolder = (IResolveFolder) state.getWorkflow().getContext();
            IService service = resolveFolder.getService(new NullProgressMonitor());
            schemaSelected = resolveFolder.getTitle();
            viewer.setInput(service);
        }else {
            viewer.setInput(state.getServices()); // initialize viewer input to nothing
            Map<IGeoResource, IService> resources = state.getResources();
           
View Full Code Here

TOP

Related Classes of org.locationtech.udig.catalog.IResolveFolder

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.