Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2013-06-25 23:16:48 -0400
committerIgor Fedorenko2013-06-25 23:16:48 -0400
commit61f95d53ba4c44af04b0347a8c3f8ca44a81f6e8 (patch)
tree53d9b5833bd859961d62fcc9c5758a176921367f
parent2ced6bdd4fdec5faa8864fda4c3c6596c2055c4a (diff)
downloadm2e-core-61f95d53ba4c44af04b0347a8c3f8ca44a81f6e8.tar.gz
m2e-core-61f95d53ba4c44af04b0347a8c3f8ca44a81f6e8.tar.xz
m2e-core-61f95d53ba4c44af04b0347a8c3f8ca44a81f6e8.zip
411621 fixed compatibility with mavenarchiver configurator
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/IMavenMarkerManager.java8
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/MavenMarkerManager.java5
2 files changed, 13 insertions, 0 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/IMavenMarkerManager.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/IMavenMarkerManager.java
index b785904a..3e554ac2 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/IMavenMarkerManager.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/IMavenMarkerManager.java
@@ -64,9 +64,17 @@ public interface IMavenMarkerManager {
/**
* Transform an exception into an error marker on an IResource
+ *
+ * @since 1.5
*/
public void addErrorMarkers(IResource resource, String type, Throwable ex);
+ /**
+ * Transform an exception into an error marker on an IResource. This method is used by mavenarchiver and likely other
+ * configurations. Removing it is binary incompatible change (but is source compatible).
+ */
+ public void addErrorMarkers(IResource resource, String type, Exception ex);
+
void addErrorMarkers(IResource resource, String type, List<MavenProblemInfo> problems) throws CoreException;
void addErrorMarker(IResource resource, String type, MavenProblemInfo problem);
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/MavenMarkerManager.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/MavenMarkerManager.java
index 3219a4b8..2fd6a25a 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/MavenMarkerManager.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/markers/MavenMarkerManager.java
@@ -288,6 +288,11 @@ public class MavenMarkerManager implements IMavenMarkerManager {
}
@Override
+ public void addErrorMarkers(IResource resource, String type, Exception ex) {
+ addErrorMarkers(resource, type, (Throwable) ex);
+ }
+
+ @Override
public void addErrorMarkers(IResource resource, String type, List<MavenProblemInfo> problems) {
for(MavenProblemInfo problem : problems) {
addErrorMarker(resource, type, problem);

Back to the top