Author: fbricon
Date: 2012-03-19 06:21:34 -0400 (Mon, 19 Mar 2012)
New Revision: 39608
Modified:
trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizardFirstPage.java
Log:
JBIDE-11234 : use default package for archetypes or fall back to previous package found in
history, if no default package is defined
Modified:
trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizardFirstPage.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizardFirstPage.java 2012-03-19
10:18:25 UTC (rev 39607)
+++
trunk/maven/plugins/org.jboss.tools.maven.project.examples/src/org/jboss/tools/maven/project/examples/wizard/ArchetypeExamplesWizardFirstPage.java 2012-03-19
10:21:34 UTC (rev 39608)
@@ -338,11 +338,9 @@
}
}
- String packageName = null;
- if (packageCombo.getItemCount() > 0) {
+ String packageName = projectDescription.getArchetypeModel().getJavaPackage();
+ if (StringUtils.isBlank(packageName) && packageCombo.getItemCount() > 0) {
packageName = packageCombo.getItem(0);
- } else {
- packageName = projectDescription.getArchetypeModel().getJavaPackage();
}
if (packageName != null) {
packageCombo.setText(packageName);
Show replies by date