Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilos Kleint2011-02-21 07:27:31 -0500
committerMilos Kleint2011-02-21 07:27:31 -0500
commit84010d973064afe57a0c74faf954241fcc534dd1 (patch)
tree816dc396ad0af4a92c1b5bcda368986809752b51 /org.eclipse.m2e.editor.xml
parent25831c75a163ac68823fc2a22aa014bbc168c992 (diff)
downloadm2e-core-84010d973064afe57a0c74faf954241fcc534dd1.tar.gz
m2e-core-84010d973064afe57a0c74faf954241fcc534dd1.tar.xz
m2e-core-84010d973064afe57a0c74faf954241fcc534dd1.zip
use constants
Diffstat (limited to 'org.eclipse.m2e.editor.xml')
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/InsertArtifactProposal.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/InsertArtifactProposal.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/InsertArtifactProposal.java
index 28cee828..418fabe0 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/InsertArtifactProposal.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/InsertArtifactProposal.java
@@ -80,8 +80,7 @@ public class InsertArtifactProposal implements ICompletionProposal, ICompletionP
//only populate the lists when in dependency search..
// and when in dependency management or plugin section use the different set than elsewhere to get different visual effect.
String path = XmlUtils.pathUp(config.getCurrentNode(), 2);
- boolean showScope = !path.contains("plugin");
- boolean inDM = path.contains("dependencyManagement");
+ boolean inDM = path.contains(DEPENDENCY_MANAGEMENT);
dialog = MavenRepositorySearchDialog.createSearchDependencyDialog(sourceViewer.getTextWidget().getShell(),
config.getType().getWindowTitle(), prj, eclPrj, inDM);
}

Back to the top