Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlena Laskavaia2010-08-12 22:18:56 -0400
committerAlena Laskavaia2010-08-12 22:18:56 -0400
commit992cf58f31d7db2e8c58ae3e821e239135e0dd6e (patch)
tree074f167fb2fbb23bc8bfc0e8fcdf90fca21954d5 /codan/org.eclipse.cdt.codan.ui.cxx
parentd535cea64cf62284e89d958d57108a835cb9521a (diff)
downloadorg.eclipse.cdt-992cf58f31d7db2e8c58ae3e821e239135e0dd6e.tar.gz
org.eclipse.cdt-992cf58f31d7db2e8c58ae3e821e239135e0dd6e.tar.xz
org.eclipse.cdt-992cf58f31d7db2e8c58ae3e821e239135e0dd6e.zip
fixed usage of improper attribute for problem id, added marker groupping support
Diffstat (limited to 'codan/org.eclipse.cdt.codan.ui.cxx')
-rw-r--r--codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/AbstractCodanCQuickFixProcessor.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/AbstractCodanCQuickFixProcessor.java b/codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/AbstractCodanCQuickFixProcessor.java
index add06210d0..b9b0cce822 100644
--- a/codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/AbstractCodanCQuickFixProcessor.java
+++ b/codan/org.eclipse.cdt.codan.ui.cxx/src/org/eclipse/cdt/codan/internal/ui/cxx/AbstractCodanCQuickFixProcessor.java
@@ -10,6 +10,7 @@
*******************************************************************************/
package org.eclipse.cdt.codan.internal.ui.cxx;
+import org.eclipse.cdt.codan.core.model.ICodanProblemMarker;
import org.eclipse.cdt.core.model.ITranslationUnit;
import org.eclipse.cdt.internal.core.resources.ResourceLookup;
import org.eclipse.cdt.ui.text.ICCompletionProposal;
@@ -63,7 +64,7 @@ public abstract class AbstractCodanCQuickFixProcessor implements IQuickFixProces
IMarker m = markers[i];
int start = m.getAttribute(IMarker.CHAR_START, -1);
if (start==loc.getOffset()) {
- String id = m.getAttribute(IMarker.PROBLEM,""); //$NON-NLS-1$
+ String id = m.getAttribute(ICodanProblemMarker.ID,""); //$NON-NLS-1$
return getCorrections(context, id, m);
}
}

Back to the top