diff --git a/codan/org.eclipse.cdt.codan.core/schema/checkers.exsd b/codan/org.eclipse.cdt.codan.core/schema/checkers.exsd
index 71c0b570886..9dcfee18409 100644
--- a/codan/org.eclipse.cdt.codan.core/schema/checkers.exsd
+++ b/codan/org.eclipse.cdt.codan.core/schema/checkers.exsd
@@ -161,6 +161,16 @@
+
-* EXPERIMENTAL. This class or interface has been added as -* part of a work in progress. There is no guarantee that this API will -* work or that it will remain the same. -*
+ * EXPERIMENTAL. This class or interface has been added as part + * of a work in progress. There is no guarantee that this API will work or that + * it will remain the same. + * * */ public interface IProblem extends IProblemElement { @@ -70,4 +71,11 @@ public interface IProblem extends IProblemElement { * @return */ public IProblemParameterInfo getParameterInfo(); + + /** + * Get short description of a problem + * + * @return + */ + public String getDescription(); } diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemWorkingCopy.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemWorkingCopy.java index 4dbb1db2f9f..741e7b11e8b 100644 --- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemWorkingCopy.java +++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/IProblemWorkingCopy.java @@ -15,43 +15,63 @@ package org.eclipse.cdt.codan.core.model; * * Clients may extend and implement this interface *- * EXPERIMENTAL. This class or interface has been added as - * part of a work in progress. There is no guarantee that this API will - * work or that it will remain the same. + * EXPERIMENTAL. This class or interface has been added as part + * of a work in progress. There is no guarantee that this API will work or that + * it will remain the same. *
*/ public interface IProblemWorkingCopy extends IProblem { /** - * Set severity for this this problem instance. Severity can only be changed in profile - * not by checker when printing problems. - * @param sev - codan severity + * Set severity for this this problem instance. Severity can only be changed + * in profile not by checker when printing problems. + * + * @param sev + * - codan severity */ void setSeverity(CodanSeverity sev); /** * Set checker enablement. - * @param enabled - true if problem is enabled in profile + * + * @param enabled + * - true if problem is enabled in profile */ void setEnabled(boolean enabled); /** - * Set default message pattern. UI would call this method if user does not like default - * settings, checker should not use method, default message pattern should be set in - * checker extension - * @param messagePattern - java style message patter i.e. "Variable {0} is never used" + * Set default message pattern. UI would call this method if user does not + * like default settings, checker should not use method, default message + * pattern should be set in checker extension + * + * @param messagePattern + * - java style message patter i.e. "Variable {0} is never used" */ void setMessagePattern(String messagePattern); /** - * Set value for the checker parameter, checker may set value during initialization only - * @param key - key of the parameter - * @param value - parameter value + * Set value for the checker parameter, checker may set value during + * initialization only + * + * @param key + * - key of the parameter + * @param value + * - parameter value */ public void setParameter(Object key, Object value); /** - * Set parameter info object for the given problem, see {@link IProblemParameterInfo} + * Set parameter info object for the given problem, see + * {@link IProblemParameterInfo} + * * @param info */ public void setParameterInfo(IProblemParameterInfo info); + + /** + * Set problem description + * + * @param desc + * - problem description - short version, but longer than name + */ + public void setDescription(String desc); } diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CheckersRegisry.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CheckersRegisry.java index d7f1a1ec504..f7ec159d7ac 100644 --- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CheckersRegisry.java +++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/CheckersRegisry.java @@ -14,7 +14,6 @@ import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; - import org.eclipse.cdt.codan.core.CodanCorePlugin; import org.eclipse.cdt.codan.core.PreferenceConstants; import org.eclipse.cdt.codan.core.model.CodanSeverity; @@ -187,6 +186,7 @@ public class CheckersRegisry implements Iterable