Package org.locationtech.udig.catalog.ui.workflow

Examples of org.locationtech.udig.catalog.ui.workflow.BasicWorkflowWizardPageFactory


    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


    }
    protected WorkflowWizardPageProvider pageProvider(Class< ? extends WorkflowWizardPage> workflowPage ){
        return new ReflectionWorkflowWizardPageProvider( workflowPage );
    }
    protected WorkflowWizardPageProvider pageProvider( WorkflowWizardPage page ){
        return new BasicWorkflowWizardPageFactory( page );
    }
View Full Code Here

  public void setUp() throws Exception {
    state = new DataSourceSelectionState(true);
    page = new DataSourceSelectionPage();

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

    workflow = new Workflow();
    workflow.setStates(new State[] { state });
   
    wizard = new WorkflowWizard(workflow, map);
View Full Code Here

    protected Map<Class<? extends State>, WorkflowWizardPageProvider> createPageMapping() {
        HashMap<Class<? extends State>, WorkflowWizardPageProvider> map = new HashMap<Class<? extends State>, WorkflowWizardPageProvider>();
        String title = Messages.LayerSelectionPage_title;
        ImageDescriptor banner = CatalogUIPlugin.getDefault().getImageDescriptor(ImageConstants.PATH_WIZBAN+"exportshapefile_wiz.gif"); //$NON-NLS-1$
        ExportResourceSelectionPage page = new ExportResourceSelectionPage("Select Layers", title, banner );
        map.put(ExportResourceSelectionState.class, new BasicWorkflowWizardPageFactory(page));

        //TODO: add export support for formats other than shapefile

        return map;
    }
View Full Code Here

    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()));
    map.put(state.getClass(), new BasicWorkflowWizardPageFactory(page));
   
    Workflow workflow = new Workflow();
    workflow.setStates(new State[] { connState, state });
    workflow.setContext(new URL(DummyService.url.toExternalForm() + "#dummy")); //$NON-NLS-1$
    wizard = new WorkflowWizard(workflow, map);
View Full Code Here

    UDIGConnectionFactoryDescriptor d = ConnectionFactoryManager.instance().getConnectionFactoryDescriptors(l).get(0);
    state = new EndConnectionState(d,true);
    page = new ConnectionPageDecorator();

    Map<Class<? extends State>, WorkflowWizardPageProvider> map = new HashMap<Class<? extends State>, WorkflowWizardPageProvider>();
    map.put(state.getClass(), new BasicWorkflowWizardPageFactory(page));
    map.put(SimpleState.class, new SimplePage());

    workflow = new Workflow();
    workflow.setStates(new State[] { state, new SimpleState() });
    wizard = new WorkflowWizard(workflow, map);
View Full Code Here

    UDIGConnectionFactoryDescriptor d = ConnectionFactoryManager.instance().getConnectionFactoryDescriptors(l).get(0);
    state = new EndConnectionState(d,true);
    page = new ConnectionPageDecorator();

    Map<Class<? extends State>, WorkflowWizardPageProvider> map = new HashMap<Class<? extends State>, WorkflowWizardPageProvider>();
    map.put(state.getClass(), new BasicWorkflowWizardPageFactory(page));
    map.put(SimpleState.class, new SimplePage());

    workflow = new Workflow();
    workflow.setStates(new State[] { state, new SimpleState() });
    wizard = new WorkflowWizard(workflow, map);
View Full Code Here

    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));
    map.put(conn.getClass(), new BasicWorkflowWizardPageFactory(connPage));

    workflow = new Workflow();
    workflow.setStates(new State[] { conn, state });
   
    wizard = new WorkflowWizard(workflow, map);
View Full Code Here

            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);
            WorkflowWizard wizard = new WorkflowWizard(workflow, pageMapping);
View Full Code Here

TOP

Related Classes of org.locationtech.udig.catalog.ui.workflow.BasicWorkflowWizardPageFactory

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.