diff options
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.java | 3 |
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); } |