Package org.locationtech.udig.catalog.internal.ui

Examples of org.locationtech.udig.catalog.internal.ui.ResourceSelectionPage$ServiceTreeProvider


     */
    public static java.util.Map<Class<? extends State>, WorkflowWizardPageProvider> addResourceSelectionPage(
            Map<Class<? extends State>, WorkflowWizardPageProvider> pageMapping) {
        Map<Class<? extends State>, WorkflowWizardPageProvider> map = pageMapping;
       
        ResourceSelectionPage page = new ResourceSelectionPage(Messages.MapImport_selectLayers);
        map.put(ResourceSelectionState.class, new BasicWorkflowWizardPageFactory(page));

        return map;
    }
View Full Code Here


      UDIGTestUtil.inDisplayThreadWait(5000, object, true);
//      UDIGTestUtil.inDisplayThreadWait(5000000, object, true);

       
        if (mapImport.getDialog().getShell().isVisible()) {
            ResourceSelectionPage page = (ResourceSelectionPage) mapImport.getDialog()
                    .getWorkflowWizard().getPage(Messages.MapImport_selectLayers);
            // set a selection on the viewer
            page.getViewer().setChecked(page.getViewer().getTree().getItem(0).getItem(0).getData(),
                    true);
            page.syncWithUI();
            UDIGTestUtil.inDisplayThreadWait(5000, object, true);
        }
    }
View Full Code Here

        };
        job.schedule();
    }

    private List<IGeoResource> getResourcesFromUser( List<IResolve> unChosenServices ) {
        final ResourceSelectionPage page = new ResourceSelectionPage(
            Messages.ProjectUIPlugin_resourceSelectionPage_title);
        page.setResources(unChosenServices, null);
        final List<IGeoResource> chosenResources = new ArrayList<IGeoResource>();

        PlatformGIS.syncInDisplayThread(new Runnable(){
            public void run() {
                Wizard wizard = new Wizard(){
                    public void addPages() {
                        addPage(page);
                    }

                    @Override
                    public boolean performFinish() {
                        List<Object> list = page.getCheckedElements();
                        for( Object object : list ) {
                            if (object instanceof IGeoResource)
                                chosenResources.add((IGeoResource) object);
                        }
                        return true;
View Full Code Here

   
    UDIGConnectionFactoryDescriptor d = ConnectionFactoryManager.instance().getConnectionFactoryDescriptors(l).get(0);

    connState = new EndConnectionState(d,true);
    state = new ResourceSelectionState();
    page = new ResourceSelectionPage("foo"); //$NON-NLS-1$
   
    Map<Class<? extends State>, WorkflowWizardPageProvider> map =
      new HashMap<Class<? extends State>, WorkflowWizardPageProvider>();
   
    map.put(connState.getClass(), new BasicWorkflowWizardPageFactory(new ConnectionPageDecorator()));
View Full Code Here

   
    conn = new EndConnectionState(d,true);
    state = new ResourceSelectionState();
 
    connPage = new ConnectionPageDecorator();
    page = new ResourceSelectionPage("foo"); //$NON-NLS-1$

    Map<Class<? extends State>, WorkflowWizardPageProvider> map =
      new HashMap<Class<? extends State>, WorkflowWizardPageProvider>();
   
    map.put(state.getClass(), new BasicWorkflowWizardPageFactory(page));
View Full Code Here

            IWorkbench workbench = PlatformUI.getWorkbench();
            IWorkbenchWindow activeWorkbenchWindow = workbench.getActiveWorkbenchWindow();
            Shell shell = activeWorkbenchWindow.getShell();
            shell.setActive();
            Map<Class< ? extends State>, WorkflowWizardPageProvider> pageMapping=new HashMap<Class<? extends State>, WorkflowWizardPageProvider>();
            ResourceSelectionPage resourceSelectionPage = new ResourceSelectionPage(Messages.AddToNewMap_resource_selection_page_title);
            resourceSelectionPage.setCollapseCheckedInput(true);
            pageMapping.put(ResourceSelectionState.class, new BasicWorkflowWizardPageFactory(resourceSelectionPage));
            ResourceSelectionState resourceSelectionState = new ResourceSelectionState();
            resourceSelectionState.setServices(services);
            Workflow workflow=new Workflow(new State[]{resourceSelectionState});
            workflow.setContext(resources);
View Full Code Here

TOP

Related Classes of org.locationtech.udig.catalog.internal.ui.ResourceSelectionPage$ServiceTreeProvider

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.