Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilos Kleint2011-01-27 09:46:17 +0000
committerMilos Kleint2011-01-27 09:46:17 +0000
commit324a731a5cbad6748ff78ce5fa7d4b5fe4d30f5f (patch)
treeb102e4efed6079e840073f2d66dda451407608f9
parentadaf109a4827c5f6e51aeb7efaea0a8071b3c54a (diff)
downloadm2e-core-324a731a5cbad6748ff78ce5fa7d4b5fe4d30f5f.tar.gz
m2e-core-324a731a5cbad6748ff78ce5fa7d4b5fe4d30f5f.tar.xz
m2e-core-324a731a5cbad6748ff78ce5fa7d4b5fe4d30f5f.zip
335368 save the parent file before the current one
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/dialogs/ManageDependenciesDialog.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/dialogs/ManageDependenciesDialog.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/dialogs/ManageDependenciesDialog.java
index 9fbe7631..15a813ca 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/dialogs/ManageDependenciesDialog.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/dialogs/ManageDependenciesDialog.java
@@ -325,12 +325,13 @@ public class ManageDependenciesDialog extends AbstractMavenDialog {
targetCommand.append(createCommand(targetEditingDomain, clone, dep.getArtifactId(), PomPackage.eINSTANCE.getDependency_ArtifactId(), ""));
targetCommand.append(createCommand(targetEditingDomain, clone, dep.getVersion(), PomPackage.eINSTANCE.getDependency_Version(), ""));
}
- editingDomain.getCommandStack().execute(command);
+ //#335368 parent file needs to be saved first
if (command != targetCommand) {
//only when target is different we need to execute both..
//executing twice the same spells trouble..
targetEditingDomain.getCommandStack().execute(targetCommand);
}
+ editingDomain.getCommandStack().execute(command);
}
/**

Back to the top