diff --git a/src/main/java/com/checkmarx/intellij/CxIcons.java b/src/main/java/com/checkmarx/intellij/CxIcons.java index d73fdb92..d4862b1e 100644 --- a/src/main/java/com/checkmarx/intellij/CxIcons.java +++ b/src/main/java/com/checkmarx/intellij/CxIcons.java @@ -15,6 +15,7 @@ private CxIcons() { public static final Icon CHECKMARX_13 = IconLoader.getIcon("/icons/checkmarx-mono-13.png", CxIcons.class); public static final Icon CHECKMARX_13_COLOR = IconLoader.getIcon("/icons/checkmarx-13.png", CxIcons.class); public static final Icon CHECKMARX_80 = IconLoader.getIcon("/icons/checkmarx-80.png", CxIcons.class); + public static final Icon CRITICAL = IconLoader.getIcon("/icons/critical.svg", CxIcons.class); public static final Icon HIGH = IconLoader.getIcon("/icons/high.svg", CxIcons.class); public static final Icon MEDIUM = IconLoader.getIcon("/icons/medium.svg", CxIcons.class); public static final Icon LOW = IconLoader.getIcon("/icons/low.svg", CxIcons.class); diff --git a/src/main/java/com/checkmarx/intellij/tool/window/Severity.java b/src/main/java/com/checkmarx/intellij/tool/window/Severity.java index 27a7bef3..2065d593 100644 --- a/src/main/java/com/checkmarx/intellij/tool/window/Severity.java +++ b/src/main/java/com/checkmarx/intellij/tool/window/Severity.java @@ -14,13 +14,14 @@ */ @Getter public enum Severity implements Filterable { + CRITICAL(CxIcons.CRITICAL), HIGH(CxIcons.HIGH), MEDIUM(CxIcons.MEDIUM), LOW(CxIcons.LOW), INFO(CxIcons.INFO), ; - public static final Set DEFAULT_SEVERITIES = Set.of(HIGH, MEDIUM); + public static final Set DEFAULT_SEVERITIES = Set.of(CRITICAL, HIGH, MEDIUM); private final Icon icon; diff --git a/src/main/java/com/checkmarx/intellij/tool/window/actions/filter/FilterBaseAction.java b/src/main/java/com/checkmarx/intellij/tool/window/actions/filter/FilterBaseAction.java index 4b944673..c77e5738 100644 --- a/src/main/java/com/checkmarx/intellij/tool/window/actions/filter/FilterBaseAction.java +++ b/src/main/java/com/checkmarx/intellij/tool/window/actions/filter/FilterBaseAction.java @@ -58,6 +58,18 @@ public final void setSelected(@NotNull AnActionEvent e, boolean state) { */ protected abstract Filterable getFilterable(); + public static class CriticalFilter extends FilterBaseAction { + + public CriticalFilter() { + super(); + } + + @Override + protected Filterable getFilterable() { + return Severity.CRITICAL; + } + } + public static class HighFilter extends FilterBaseAction { public HighFilter() { diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 62be01f8..812ba315 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -59,6 +59,8 @@ + + + + + + + + + + +