Example #1
0
  public void setPOM(POM model, boolean isReadOnly) {
    if (isReadOnly) {
      view.setReadOnly();
    }

    this.model = model;

    view.setName(model.getName());
    view.setDescription(model.getDescription());
    if (model.hasParent()) {
      view.setParentGAV(model.getParent());
      view.showParentGAV();
      view.disableGroupID("");
      view.disableVersion("");
    } else {
      view.hideParentGAV();
      view.enableGroupID();
      view.enableVersion();
    }
    view.setGAV(model.getGav());
    view.addArtifactIdChangeHandler(
        new ArtifactIdChangeHandler() {
          @Override
          public void onChange(String newArtifactId) {
            setTitle(newArtifactId);
          }
        });
    setTitle(model.getGav().getArtifactId());
  }
Example #2
0
 @Override
 public void disableGroupID(final String reason) {
   view.disableGroupID(reason);
 }