diff options
author | Milos Kleint | 2011-07-26 07:38:34 +0000 |
---|---|---|
committer | Milos Kleint | 2011-07-26 07:38:34 +0000 |
commit | 996f0d5959f716e17337bfa2c6dd1c297a9d0bd2 (patch) | |
tree | fa90604148a3800ca3aff4095e097b9b4cdeed18 /org.eclipse.m2e.editor.xml | |
parent | 93179f239cac8aab9f4f59c4fe9df995eb3d872c (diff) | |
download | m2e-core-996f0d5959f716e17337bfa2c6dd1c297a9d0bd2.tar.gz m2e-core-996f0d5959f716e17337bfa2c6dd1c297a9d0bd2.tar.xz m2e-core-996f0d5959f716e17337bfa2c6dd1c297a9d0bd2.zip |
352471 in xml editor proposals add handling of type and classifier when adding dependencies
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 | 7 |
1 files changed, 7 insertions, 0 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 e9e6b570..3587ff0d 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 @@ -209,6 +209,13 @@ public class InsertArtifactProposal implements ICompletionProposal, ICompletionP if (fDialog.getSelectedScope() != null && !"compile".equals(fDialog.getSelectedScope())) { setText(getChild(dependency, SCOPE), fDialog.getSelectedScope()); } + if (af.type != null && !"jar".equals(af.type) + && !"null".equals(af.type)) { // guard against MNGECLIPSE-622 //$NON-NLS-1$) + setText(getChild(dependency, TYPE), af.type); + } + if (af.classifier != null) { + setText(getChild(dependency, CLASSIFIER), af.classifier); + } format(toFormat); generatedOffset = ((IndexedRegion)toFormat).getStartOffset(); generatedLength = ((IndexedRegion)toFormat).getEndOffset() - generatedOffset; |