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

Examples of org.locationtech.udig.image.georeferencing.internal.ui.GeoReferencingCommand


  @Override
  public void createPartControl(Composite parent) {

    MarkModelFactory.resetIdSecuence();

    this.cmd = new GeoReferencingCommand();
    MainComposite composite = new MainComposite(this.cmd, parent, SWT.NONE | SWT.NO_FOCUS);
    composite.setLayout(new FillLayout());
    composite.pack();

    createActions();
View Full Code Here


  public void update(Observable obs, Object arg) {

    assert obs instanceof GeoReferencingCommand;

    GeoReferencingCommand cmd = (GeoReferencingCommand) obs;

    enableRunButton(cmd.canExectue());
    enableSaveButton(cmd.canSave());

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

    switch (cmdEvent.getEvent()) {
    case MARK_ADDED:
      enableSaveButton(true);
      break;
    case ALL_MARKS_DELETED:
      enableSaveButton(false);
      break;
    case IMAGE_LOADED:
      enableLoadButton(true);
      break;
    case MAP_CHANGE:
      enableRunButton(false);
      enableSaveButton(false);
      enableLoadButton(false);
      break;
    case MAP_CHANGE_TO_ORIGINAL:
      enableRunButton(cmd.canExectue());
      enableSaveButton(cmd.canSave());
      enableLoadButton(cmd.canLoad());
      break;
    default:
      break;
    }
  }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.image.georeferencing.internal.ui.GeoReferencingCommand

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.