Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerLocationService.java')
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerLocationService.java19
1 files changed, 1 insertions, 18 deletions
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerLocationService.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerLocationService.java
index eee4baf6..0c99b2b7 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerLocationService.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/MarkerLocationService.java
@@ -104,24 +104,7 @@ public class MarkerLocationService implements IMarkerLocationService, IEditorMar
public void findLocationForMarker_(final IMarker marker) {
String hint = marker.getAttribute(IMavenConstants.MARKER_ATTR_EDITOR_HINT, null);
- if (IMavenConstants.EDITOR_HINT_UNKNOWN_PACKAGING.equals(hint)) {
- try {
- XmlUtils.performOnRootElement((IFile)marker.getResource(), new NodeOperation<Element>() {
- public void process(Element root, IStructuredDocument structuredDocument) {
- Element markEl = findChild(root, "packaging");
- if (markEl == null) {
- markEl = root;
- }
- annotateMarker(marker, structuredDocument, markEl);
- }
- });
- } catch(IOException e) {
- log.error("Error locating marker", e);
- } catch(CoreException e) {
- log.error("Error locating marker", e);
- }
- }
-
+
if (IMavenConstants.EDITOR_HINT_NOT_COVERED_MOJO_EXECUTION.equals(hint)) {
try {
XmlUtils.performOnRootElement((IFile)marker.getResource(), new NodeOperation<Element>() {

Back to the top