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

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


        setControl(composite);
        getWizard().getContainer().updateButtons();
       
        Display.getCurrent().asyncExec(new Runnable() {
            public void run() {
                EndConnectionState currentState = getState();
                Map<IService, Throwable> errors = currentState.getErrors();
                if( errors!=null && !errors.isEmpty()){
                    for (Map.Entry<IService, Throwable> entry : errors.entrySet()) {
                        if( entry.getKey() instanceof WWService ){
                            Throwable value = entry.getValue();
                            String message = Messages.Wizard_WW_ConnectionProblem+value.getLocalizedMessage();
View Full Code Here


        setControl(composite);
       
        Display.getCurrent().asyncExec(new Runnable() {
            public void run() {
               
                EndConnectionState currentState = getState();
                Map<IService, Throwable> errors = currentState.getErrors();
                if( errors!=null && !errors.isEmpty()){
                    for (Map.Entry<IService, Throwable> entry : errors.entrySet()) {
                        if( entry.getKey() instanceof WMSCServiceImpl ){
                            Throwable value = entry.getValue();
                            if( value instanceof ConnectException){
View Full Code Here

   
        
        Display.getCurrent().asyncExec(new Runnable() {
      public void run() {
       
        EndConnectionState currentState = getState();
        Map<IService, Throwable> errors = currentState.getErrors();
        if( errors!=null && !errors.isEmpty()){
          for (Map.Entry<IService, Throwable> entry : errors.entrySet()) {
            if( entry.getKey() instanceof WFSServiceImpl ){
              Throwable value = entry.getValue();
              if( value instanceof ConnectException){
View Full Code Here

    protected boolean performFinish(IProgressMonitor monitor) {
        String name = Messages.MapImport_createMap;
        monitor.beginTask(name, IProgressMonitor.UNKNOWN);
        monitor.setTaskName(name);
       
        EndConnectionState catalogImportState = getWorkflow().getState(EndConnectionState.class);
        if( catalogImportState != null ){
            boolean superFinished = super.performFinish(monitor);
            if (!superFinished){
                return superFinished; // connection failed unable to add to catalog
            }
View Full Code Here

     * adds them to the local catalog.
     */
    @Override
    protected boolean performFinish(IProgressMonitor monitor) {
        // get the connection state from the pipe
        EndConnectionState connState = getWorkflow().getState(EndConnectionState.class);

        if (connState == null)
            return false;

        // wizard page is responsible for sorting out the services
        // to add to the catalog.
        final Collection<IService> services = connState.getServices();
        if (services == null || services.isEmpty())
            return false;

        // add the services to the catalog
        ICatalog catalog = CatalogPlugin.getDefault().getLocalCatalog();
View Full Code Here

        UDIGConnectionPage tmp;

        // create the specific connection page
        if (state instanceof IntermediateState) {
            IntermediateState intermediateState = (IntermediateState) state;
            EndConnectionState endConnectionState = (EndConnectionState) intermediateState
                    .getEndState();

            tmp = endConnectionState.getConnectionFactory().createConnectionPage(
                    intermediateState.getIndex());
        } else {
            EndConnectionState endConnectionState = (EndConnectionState) state;
            tmp = (endConnectionState).getConnectionFactory().createConnectionPage(
                    endConnectionState.getDescriptor().getWizardPageCount() - 1);
        }
       
        this.page = tmp;
       
        // we do the instance check to allow the connection page to
View Full Code Here

              return false; // not ready yet
          }
          boolean complete = page.isPageComplete();
          if (complete && getState() instanceof EndConnectionState) {
              // set some context for the connection state
              EndConnectionState state = (EndConnectionState) getState();
              state.setServices(page.getServices());
              if (page instanceof AbstractUDIGImportPage) {
                  AbstractUDIGImportPage importPage = (AbstractUDIGImportPage) page;
                  state.setSelectedResources(importPage.getResourceIDs());
              }
          }
        return complete;
    }
View Full Code Here

     
     @Override
    public boolean leavingPage() {
         if (getState() instanceof EndConnectionState) {
             // set some context for the connection state
             EndConnectionState state = (EndConnectionState) getState();
             Collection<IService> services = page.getServices();
       state.setServices(services);
      
             if (page instanceof AbstractUDIGImportPage) {
                 AbstractUDIGImportPage importPage = (AbstractUDIGImportPage) page;
                 Collection<URL> resourceIDs = importPage.getResourceIDs();
                
         state.setSelectedResources(resourceIDs);
             }
         }
        
         if (page instanceof AbstractUDIGImportPage) {
             AbstractUDIGImportPage importPage = (AbstractUDIGImportPage) page;
View Full Code Here

        });
    }

    public void stateFailed( State state ) {
        if (state instanceof EndConnectionState) {
            EndConnectionState connectionState = (EndConnectionState) state;
            Map<IService, Throwable> errors = connectionState.getErrors();
            Iterator<Entry<IService, Throwable>> iterator = errors.entrySet().iterator();
            if (iterator.hasNext()) {
                Entry<IService, Throwable> entry = iterator.next();
                Throwable t = entry.getValue();
                final String message = formatException(entry.getKey(), t);
View Full Code Here

        setControl(composite);
       
        Display.getCurrent().asyncExec(new Runnable() {
      public void run() {
       
        EndConnectionState currentState = getState();
        Map<IService, Throwable> errors = currentState.getErrors();
        if( errors!=null && !errors.isEmpty()){
          for (Map.Entry<IService, Throwable> entry : errors.entrySet()) {
            if( entry.getKey() instanceof WMSServiceImpl ){
              Throwable value = entry.getValue();
              if( value instanceof ConnectException){
View Full Code Here

TOP

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

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.