Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilos Kleint2011-01-20 08:41:14 +0000
committerMilos Kleint2011-01-20 08:41:14 +0000
commitc5fdc0d026ea0c99ab4d070584b48236e5fbc161 (patch)
tree76ac86e189b5c54269884d7dda7029f102c93927 /org.eclipse.m2e.editor.xml
parentaccdd6560306ead14f449fc692b4a17552014451 (diff)
downloadm2e-core-c5fdc0d026ea0c99ab4d070584b48236e5fbc161.tar.gz
m2e-core-c5fdc0d026ea0c99ab4d070584b48236e5fbc161.tar.xz
m2e-core-c5fdc0d026ea0c99ab4d070584b48236e5fbc161.zip
after applying fix for marker, marker shall be removed.
Diffstat (limited to 'org.eclipse.m2e.editor.xml')
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/LifecycleMappingProposal.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/LifecycleMappingProposal.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/LifecycleMappingProposal.java
index 4cb40ba4..cb373b17 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/LifecycleMappingProposal.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/lifecycle/LifecycleMappingProposal.java
@@ -47,6 +47,7 @@ public class LifecycleMappingProposal implements ICompletionProposal, ICompletio
public void apply(final IDocument doc) {
try {
PomEdits.performOnDOMDocument(new PomEdits.OperationTuple(doc, createOperation()));
+ marker.delete();
} catch(IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
@@ -104,6 +105,7 @@ public class LifecycleMappingProposal implements ICompletionProposal, ICompletio
public void run(final IMarker marker) {
try {
PomEdits.performOnDOMDocument(new PomEdits.OperationTuple((IFile) marker.getResource(), createOperation()));
+ marker.delete();
} catch(IOException e) {
MavenLogger.log("Error generating code in pom.xml", e); //$NON-NLS-1$
} catch(CoreException e) {

Back to the top