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

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


  }

  @Override
  public void createControl(Composite parent) {
    super.createControl(parent);
    WorkflowWizard wizard = getWizard();
    wizard.setWindowTitle(Messages.TeradataGeoResource_hostPageTitle);

    if(!Activator.checkTeradataDrivers()) {
      wizard.performCancel();
      parent.getShell().close();
    }
  }
View Full Code Here


    private void createExportText(Composite comp, String tooltip) {
        destText = new Text(comp, SWT.SINGLE | SWT.BORDER);
        destText.setToolTipText(tooltip);
        GridData gridData = new GridData(SWT.FILL, SWT.CENTER, true, false);
        destText.setLayoutData(gridData);
        WorkflowWizard wizard2 = getWizard();
    IDialogSettings dialogSettings = wizard2.getDialogSettings();
    String previousLocation = dialogSettings.get(DIRECTORY_KEY);
        if (previousLocation != null) {
            destText.setText(previousLocation);
            getState().setExportDir(previousLocation);
        } else {
View Full Code Here

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

    map.put(state.getClass(), new BasicWorkflowWizardPageFactory(page));

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

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

    bworkflow.setStates(bstates);
   
    Workflow mworkflow = new Workflow();
    mworkflow.setStates(states);
   
    wizard = new WorkflowWizard(workflow, map);
    bwizard = new WorkflowWizard(bworkflow, map);
    mwizard = new MyDataPipelineWizard(mworkflow,map);
   
    shell = new Shell(Display.getDefault());
   
    dialog = new WorkflowWizardDialog(shell, wizard);
View Full Code Here

        }
        members = catalog.members(new DummyMonitor());
        assertTrue(members.isEmpty());
       

        final WorkflowWizard workflowWizard = mapImport.getDialog().getWorkflowWizard();
    workflowWizard.getWorkflow()
            .setContext(context);
        mapImport.run(new DummyMonitor(),context);
       
        UDIGTestUtil.inDisplayThreadWait(3000, new WaitCondition(){

      public boolean isTrue()  {
        State state = workflowWizard.getWorkflow().getCurrentState();
        if ( state instanceof ResourceSelectionState )
          return true;
        return false;
      }
         
        }, true);
        assertTrue(workflowWizard.getWorkflow().getCurrentState() instanceof ResourceSelectionState);
       
        //check the resource page to ensure that it isn't ignored
        ResourceSelectionState currentState = (ResourceSelectionState) workflowWizard.getWorkflow().getCurrentState();

        assertTrue(currentState.getResources()==null || currentState.getResources().isEmpty());
       
        //Set the resources on the state and press finish
        IService service=currentState.getServices().iterator().next();
View Full Code Here

    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.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);
    dialog.setBlockOnOpen(true);
  }
View Full Code Here

    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);
    dialog.setBlockOnOpen(true);
    }
View Full Code Here

            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 )
                return null;
View Full Code Here

TOP

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

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.