diff options
author | Matthew Piggott | 2011-04-20 21:35:03 +0000 |
---|---|---|
committer | Matthew Piggott | 2011-04-20 21:35:23 +0000 |
commit | 9790d5d92a1722d284263b90221f5a06b246a4a6 (patch) | |
tree | 07df338e663d9bc999127c86dd5c92f6ac77f0a2 /org.eclipse.m2e.core.ui | |
parent | 6bac8880fd4f0dfb83de5f641929d9ff7f918665 (diff) | |
download | m2e-core-9790d5d92a1722d284263b90221f5a06b246a4a6.tar.gz m2e-core-9790d5d92a1722d284263b90221f5a06b246a4a6.tar.xz m2e-core-9790d5d92a1722d284263b90221f5a06b246a4a6.zip |
Bug 342379 - Parent project selection should automatically fill relative path when parent is in workspace
Diffstat (limited to 'org.eclipse.m2e.core.ui')
-rw-r--r-- | org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/wizards/MavenModuleWizard.java | 4 |
1 files changed, 3 insertions, 1 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 64fa4fb6..e5882f9d 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 @@ -198,9 +198,11 @@ public class MavenModuleWizard extends AbstractMavenProjectWizard implements INe if(parentPage.isSimpleProject()) { final Model model = artifactPage.getModel(); - //#335331 remove current model's version and groupId if equal to parent, to prevent showing a warning marker if (model.getParent() != null) { Parent par = model.getParent(); + par.setRelativePath(location.makeRelativeTo(location.append(moduleName)).toOSString()); + + //#335331 remove current model's version and groupId if equal to parent, to prevent showing a warning marker if (par.getGroupId() != null && par.getGroupId().equals(model.getGroupId())) { model.setGroupId(null); } |