예제 #1
0
 private void setTitle(final String titleText) {
   if (titleText == null || titleText.isEmpty()) {
     view.setProjectModelTitleText();
   } else {
     view.setTitleText(titleText);
   }
 }
예제 #2
0
 public void setArtifactID(final String artifactID) {
   view.setArtifactID(artifactID);
 }
예제 #3
0
 @Inject
 public POMEditorPanel(final POMEditorPanelView view, final SyncBeanManager iocManager) {
   this.view = view;
   this.iocManager = iocManager;
   view.setPresenter(this);
 }
예제 #4
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());
  }
예제 #5
0
 @Override
 public void setValidArtifactID(final boolean isValid) {
   view.setValidArtifactID(isValid);
 }
예제 #6
0
 @Override
 public void setValidVersion(final boolean isValid) {
   view.setValidVersion(isValid);
 }
예제 #7
0
 @Override
 public void setValidGroupID(final boolean isValid) {
   view.setValidGroupID(isValid);
 }
예제 #8
0
 @Override
 public void setValidName(final boolean isValid) {
   view.setValidName(isValid);
 }
예제 #9
0
 @Override
 public void disableVersion(final String reason) {
   view.disableVersion(reason);
 }
예제 #10
0
 @Override
 public void disableGroupID(final String reason) {
   view.disableGroupID(reason);
 }
예제 #11
0
 @Override
 public Widget asWidget() {
   return view.asWidget();
 }