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()); }
@Override public void disableGroupID(final String reason) { view.disableGroupID(reason); }