Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilos Kleint2011-02-14 09:34:15 +0000
committerMilos Kleint2011-02-14 09:35:25 +0000
commitc70650242334904f7cb52db8e33ae2d4439d4382 (patch)
treea061ca400abe9f4d9fdc9750dd9639a611af0851 /org.eclipse.m2e.editor
parentf4bf78d32524570281d49129646b7f99d6fbcfd8 (diff)
downloadm2e-core-c70650242334904f7cb52db8e33ae2d4439d4382.tar.gz
m2e-core-c70650242334904f7cb52db8e33ae2d4439d4382.tar.xz
m2e-core-c70650242334904f7cb52db8e33ae2d4439d4382.zip
pollute code for tests to pass
Diffstat (limited to 'org.eclipse.m2e.editor')
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/dialogs/ManageDependenciesDialog.java9
1 files changed, 9 insertions, 0 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 266b0472..99a1827d 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
@@ -91,6 +91,8 @@ public class ManageDependenciesDialog extends AbstractMavenDialog {
private IStatus status;
private List<Object> originalSelection;
+
+ protected boolean isTest = false;
/**
* Hierarchy is a LinkedList representing the hierarchy relationship between POM represented by model and its parents.
@@ -316,6 +318,13 @@ public class ManageDependenciesDialog extends AbstractMavenDialog {
perform.setUser(false);
perform.setSystem(true);
perform.schedule();
+ if (isTest) {
+ try {
+ perform.join();
+ } catch(InterruptedException e) {
+
+ }
+ }
}
protected LinkedList<Dependency> getDependenciesList() {

Back to the top