Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlena Laskavaia2015-03-04 15:09:41 -0500
committerGerrit Code Review @ Eclipse.org2015-03-05 09:19:54 -0500
commit82274d4060c513ae2531860f68d19c743e66d3f8 (patch)
tree432dac7fa3cceeb8ad814b9f900a8bc7bd6eca2c /codan/org.eclipse.cdt.codan.core
parent6c8408c1d5376b015d199779dbe2127a7ff01db5 (diff)
downloadorg.eclipse.cdt-82274d4060c513ae2531860f68d19c743e66d3f8.tar.gz
org.eclipse.cdt-82274d4060c513ae2531860f68d19c743e66d3f8.tar.xz
org.eclipse.cdt-82274d4060c513ae2531860f68d19c743e66d3f8.zip
added codan marker generator
its required for some cdt classes like console parsers Change-Id: Ibde68774656a15c735dce08d5f3041dc56a7266f Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Diffstat (limited to 'codan/org.eclipse.cdt.codan.core')
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/ProblemLocationFactory.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/ProblemLocationFactory.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/ProblemLocationFactory.java
index 85177f2b79..bcaa346874 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/ProblemLocationFactory.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/ProblemLocationFactory.java
@@ -13,6 +13,7 @@ package org.eclipse.cdt.codan.internal.core.model;
import org.eclipse.cdt.codan.core.model.IProblemLocation;
import org.eclipse.cdt.codan.core.model.IProblemLocationFactory;
import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IResource;
/**
* Factory class that allows to create problem locations
@@ -33,4 +34,8 @@ public class ProblemLocationFactory implements IProblemLocationFactory {
public IProblemLocation createProblemLocation(IFile file, int startChar, int endChar, int line) {
return new CodanProblemLocation(file, startChar, endChar, line);
}
+
+ public IProblemLocation createProblemLocation(IResource resource, int startChar, int endChar, int line) {
+ return new CodanProblemLocation(resource, startChar, endChar, line);
+ }
}

Back to the top