Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilos Kleint2011-01-27 12:20:16 +0000
committerMilos Kleint2011-01-27 12:20:16 +0000
commitcad81a4e6335bc9e187b2394a9febd05d7b6421b (patch)
treee8c78b00cfd926fd9b4f2f6c837eae529f22bb18
parent3d9c62f438c50464e8e7e2982ef2e69433e958bc (diff)
downloadm2e-core-cad81a4e6335bc9e187b2394a9febd05d7b6421b.tar.gz
m2e-core-cad81a4e6335bc9e187b2394a9febd05d7b6421b.tar.xz
m2e-core-cad81a4e6335bc9e187b2394a9febd05d7b6421b.zip
335337 disable changing packaging when there are modules
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/OverviewPage.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/OverviewPage.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/OverviewPage.java
index 75fc1bc2..28edb99d 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/OverviewPage.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/OverviewPage.java
@@ -1102,6 +1102,12 @@ public class OverviewPage extends MavenPomEditorPage {
setText(artifactPackagingCombo, "".equals(nvl(model.getPackaging())) ? "jar" : nvl(model.getPackaging())); //$NON-NLS-1$ //$NON-NLS-2$
//show/hide modules section when packaging changes..
loadModules(model.getModules());
+ //#335337 no editing of packaging when there are modules, results in error anyway
+ if (model.getModules() != null && model.getModules().size() > 0) {
+ artifactPackagingCombo.setEnabled(false);
+ } else {
+ artifactPackagingCombo.setEnabled(true);
+ }
setText(projectNameText, model.getName());
setText(projectDescriptionText, model.getDescription());

Back to the top