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

Examples of org.locationtech.udig.catalog.ui.workflow.Workflow$WorkflowRunner


    }

    protected Workflow createWorkflow() {
        // can we look up the work bench selection here?
        ExportResourceSelectionState layerState = new ExportResourceSelectionState();
        Workflow workflow = new Workflow(new State[]{layerState});
        return workflow;
    }
View Full Code Here


      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);
   
    shell = new Shell(Display.getDefault());
    dialog = new WorkflowWizardDialog(shell, wizard);
    dialog.setBlockOnOpen(true);
View Full Code Here

    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);

    shell = new Shell(Display.getDefault());
    dialog = new WorkflowWizardDialog(shell, wizard);
View Full Code Here

    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);

    shell = new Shell(Display.getDefault());
    dialog = new WorkflowWizardDialog(shell, wizard);
View Full Code Here

      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);

    shell = new Shell(Display.getDefault());
View Full Code Here

            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);
            WorkflowWizardDialog dialog = new WorkflowWizardDialog(Display.getCurrent().getActiveShell(), wizard);
            dialog.setBlockOnOpen(true);
            dialog.open();
            if (dialog.getReturnCode()==IDialogConstants.CANCEL_ID )
View Full Code Here

  State1 s1;
  State4 s4;
 
  @Before
  public void setUp() throws Exception {
    pipe = new Workflow();
    s1 = new State1();
    s4 = new State4();
   
    pipe.setStates(new State[]{s1,s4});
    i = 1;
View Full Code Here

TOP

Related Classes of org.locationtech.udig.catalog.ui.workflow.Workflow$WorkflowRunner

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.