aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Bricon2011-05-11 13:49:35 (EDT)
committerIgor Fedorenko2011-05-12 13:27:24 (EDT)
commitcc150fbf489212f8642fa63f9db83ffce742419e (patch)
tree57de518f42368830f0911dd44e22238b9b4ea14a
parent371ac367fa7eb6674ea0200dda0fc6431f07625c (diff)
downloadm2e-core-cc150fbf489212f8642fa63f9db83ffce742419e.zip
m2e-core-cc150fbf489212f8642fa63f9db83ffce742419e.tar.gz
m2e-core-cc150fbf489212f8642fa63f9db83ffce742419e.tar.bz2
Bug 341059 : set archetype properties in the maven module wizard
-rw-r--r--org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenModuleWizard.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenModuleWizard.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenModuleWizard.java
index 77a9e3a..43d5066 100644
--- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenModuleWizard.java
+++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenModuleWizard.java
@@ -39,6 +39,8 @@ import org.eclipse.core.runtime.jobs.IJobChangeEvent;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.core.runtime.jobs.JobChangeAdapter;
import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.viewers.ISelectionChangedListener;
+import org.eclipse.jface.viewers.SelectionChangedEvent;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
@@ -136,6 +138,13 @@ public class MavenModuleWizard extends AbstractMavenProjectWizard implements INe
copyParentValues();
}
});
+
+ archetypePage.addArchetypeSelectionListener(new ISelectionChangedListener() {
+ public void selectionChanged(SelectionChangedEvent selectionchangedevent) {
+ parametersPage.setArchetype(archetypePage.getArchetype());
+ getContainer().updateButtons();
+ }
+ });
if(selection != null && selection.size() > 0) {
parentPage.setParent(selection.getFirstElement());