Package org.locationtech.udig.image.georeferencing.internal.ui.message

Examples of org.locationtech.udig.image.georeferencing.internal.ui.message.InfoMessage


          return;
      }
      // if the code reach this point, the coordinate wasn't added, show
      // an advertise message.
      getMainComposite()
            .setMessage(new InfoMessage(Messages.CoordinateTableComposite_cant_add_gcp, Type.WARNING));
    }
  }
View Full Code Here


  protected void executeGeoReferencingCommand(){
    try{
      showEnabled(false);
      cmd.execute();
    } catch (Exception e){
      this.mainComposite.displayMessage(new InfoMessage("Fail!. The georeferencing process didn't genereate the raster image", InfoMessage.Type.FAIL));
    }finally{
      showEnabled(true);
    }

  }
View Full Code Here

        if (this.marksStore.canLoadMarks(marksFile, cmd.getCRS())) {

          this.mainComposite.deleteAllPoints();
          this.mainComposite.createMarks(this.marksStore.loadMarks(marksFile));
        } else {
          InfoMessage message = new InfoMessage(Messages.GeoreferencingView_errorLoadingMarks
                + this.marksStore.getLoadedCrsName(), Type.WARNING);
          this.mainComposite.setMessage(message);
        }
        // store the path
        File file = new File(marksFile);
View Full Code Here

    gridData8.grabExcessVerticalSpace = true;
    gridData8.verticalAlignment = GridData.FILL;
    this.messageText.setLayoutData(gridData8);
    this.messageText.setFont(JFaceResources.getDialogFont());

    InfoMessage message = this.cmd.getMessage();
    displayMessage(message);
  }
View Full Code Here

  public void displayMessage(final InfoMessage message) {

    assert message != null;

    // The following sentences does a filter of those obvious messages
    InfoMessage filteredMessage = message;
    // shows the message
    this.informationComposite.setVisible(true);
    this.messageImage.setImage(filteredMessage.getImage());
    this.messageText.setToolTipText(filteredMessage.getText());
    this.messageText.setText(filteredMessage.getText());

  }
View Full Code Here

      pane.setCursor(display.getSystemCursor(SWT.CURSOR_WAIT));

      this.cmd.execute();

    } catch (IOException e) {
      displayMessage(new InfoMessage( e.getMessage(), InfoMessage.Type.FAIL ) );     
    } finally {
      pane.setCursor(null);

      setEnabled(true);
    }
View Full Code Here

  }

  public void update(Observable o, Object arg) {

    InfoMessage message = this.cmd.getMessage();

    // listen to the map change notification so it can broadcast the set
    // enable=false to all his children's.

    if (!(arg instanceof GeoreferencingCommandEventChange))
      return;
    GeoreferencingCommandEventChange cmdEvent = (GeoreferencingCommandEventChange) arg;

    switch (cmdEvent.getEvent()) {
    case MAP_CHANGE:

      message.setType(Type.WARNING);
      setEnabled(false);
      break;
    case MAP_CHANGE_TO_ORIGINAL:

      message.setType(Type.INFORMATION);
      setEnabled(true);
    default:

      break;
    }
View Full Code Here

      // create the mapGraphics
      try {
        createTheMapGraphic(map);
      } catch (IOException e) {
        InfoMessage info = new InfoMessage(Messages.MainComposite_mapGraphicFailText, Type.FAIL);
        setMessage(info);
        e.printStackTrace();
      }

      // set the values on the command.
View Full Code Here

TOP

Related Classes of org.locationtech.udig.image.georeferencing.internal.ui.message.InfoMessage

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.