void () { myContext.setProjectBuilder(myBuilder); myBuilder.setAggregatorProject(myAggregator); myBuilder.setParentProject(myParent); myBuilder.setProjectId(new MavenId(myGroupIdField.getText(), myArtifactIdField.getText(), myVersionField.getText())); myBuilder.setInheritedOptions(myInheritGroupIdCheckBox.isSelected(), myInheritVersionCheckBox.isSelected()); if (myContext.getProjectName() == null) { myContext.setProjectName(myBuilder.getProjectId().getArtifactId()); } if (myArchetypes != null) { myBuilder.setArchetype(myArchetypes.getSelectedArchetype()); } }