Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlena Laskavaia2009-04-22 01:26:58 +0000
committerAlena Laskavaia2009-04-22 01:26:58 +0000
commit724860a02bb21d22a053122ae675b73ae0e352eb (patch)
treee353d3448cbea8c5aaadb9d318d3c99969219c0b /codan/org.eclipse.cdt.codan.core
parent19354a7c8d322b40865ddc8b81842b8937a5a54f (diff)
downloadorg.eclipse.cdt-724860a02bb21d22a053122ae675b73ae0e352eb.tar.gz
org.eclipse.cdt-724860a02bb21d22a053122ae675b73ae0e352eb.tar.xz
org.eclipse.cdt-724860a02bb21d22a053122ae675b73ae0e352eb.zip
- added cell editor to pick severity of the problem
Diffstat (limited to 'codan/org.eclipse.cdt.codan.core')
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/CodanSeverity.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/CodanSeverity.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/CodanSeverity.java
index 49fc484538e..acfa4d1c67e 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/CodanSeverity.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/model/CodanSeverity.java
@@ -24,4 +24,17 @@ public enum CodanSeverity {
public int intValue() {
return value;
}
+
+ /**
+ * @return
+ */
+ public static String[] stringValues() {
+ CodanSeverity[] values = values();
+ String[] svalues = new String[values.length];
+ for (int i = 0; i < values.length; i++) {
+ CodanSeverity sev = values[i];
+ svalues[i] = sev.toString();
+ }
+ return svalues;
+ }
}

Back to the top