void () { myAddToPanel.setVisible(isMavenizedProject()); myAggregatorNameLabel.setText(formatProjectString(myAggregator)); myParentNameLabel.setText(formatProjectString(myParent)); if (myParent == null) { myGroupIdField.setEnabled(true); myVersionField.setEnabled(true); myInheritGroupIdCheckBox.setEnabled(false); myInheritVersionCheckBox.setEnabled(false); } else { myGroupIdField.setEnabled(!myInheritGroupIdCheckBox.isSelected()); myVersionField.setEnabled(!myInheritVersionCheckBox.isSelected()); if (myInheritGroupIdCheckBox.isSelected() || myGroupIdField.getText().equals(myInheritedGroupId)) { myGroupIdField.setText(myParent.getMavenId().getGroupId()); } if (myInheritVersionCheckBox.isSelected() || myVersionField.getText().equals(myInheritedVersion)) { myVersionField.setText(myParent.getMavenId().getVersion()); } myInheritedGroupId = myGroupIdField.getText(); myInheritedVersion = myVersionField.getText(); myInheritGroupIdCheckBox.setEnabled(true); myInheritVersionCheckBox.setEnabled(true); } setTextIfEmpty(myGroupIdField, "org.example"); setTextIfEmpty(myArtifactIdField, suggestArtifactId()); }