Skip to content

Commit

Permalink
Return grouping of bugs by priority
Browse files Browse the repository at this point in the history
  • Loading branch information
jqyp committed May 7, 2022
1 parent d8c794a commit aeba275
Show file tree
Hide file tree
Showing 17 changed files with 76 additions and 10 deletions.
30 changes: 25 additions & 5 deletions src/main/java/icons/PluginIcons.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ public interface PluginIcons {
);
Icon GROUP_BY_CLASS_ICON = AllIcons.Actions.GroupByClass;
Icon GROUP_BY_PRIORITY_ICON = AllIcons.Nodes.SortBySeverity;
Icon GROUP_BY_RANK_ICON = LayeredIcon.create(
ResourcesLoader.loadIcon("actions/groupByRank.svg"),
ResourcesLoader.loadIcon("actions/groupByTemplate.svg")
);
Icon GROUP_BY_PACKAGE_ICON = AllIcons.Actions.GroupByPackage;

Icon GROUP_BY_RANK_SCARIEST_ICON = LayeredIcon.create(
Expand All @@ -92,11 +96,27 @@ public interface PluginIcons {

Map<String, Icon> GROUP_BY_RANK_ICONS = InitIcons.initGroupByRankIconsMap();

Icon GROUP_BY_PRIORITY_HIGH_ICON = ResourcesLoader.loadIcon("priority/priorityHigh.png");
Icon GROUP_BY_PRIORITY_MEDIUM_ICON = ResourcesLoader.loadIcon("priority/priorityMedium.png");
Icon GROUP_BY_PRIORITY_LOW_ICON = ResourcesLoader.loadIcon("priority/priorityLow.png");
Icon GROUP_BY_PRIORITY_EXP_ICON = ResourcesLoader.loadIcon("priority/priorityExp.png");
Icon GROUP_BY_PRIORITY_IGNORE_ICON = ResourcesLoader.loadIcon("priority/priorityIgnore.png");
Icon GROUP_BY_PRIORITY_HIGH_ICON = LayeredIcon.create(
ResourcesLoader.loadIcon("priority/priorityHigh.svg"),
ResourcesLoader.loadIcon("actions/groupByTemplate.svg")
);

Icon GROUP_BY_PRIORITY_MEDIUM_ICON = LayeredIcon.create(
ResourcesLoader.loadIcon("priority/priorityMedium.svg"),
ResourcesLoader.loadIcon("actions/groupByTemplate.svg")
);

Icon GROUP_BY_PRIORITY_LOW_ICON = LayeredIcon.create(
ResourcesLoader.loadIcon("priority/priorityLow.svg"),
ResourcesLoader.loadIcon("actions/groupByTemplate.svg")
);

Icon GROUP_BY_PRIORITY_EXP_ICON = LayeredIcon.create(
ResourcesLoader.loadIcon("priority/priorityExp.svg"),
ResourcesLoader.loadIcon("actions/groupByTemplate.svg")
);

Icon GROUP_BY_PRIORITY_IGNORE_ICON = ResourcesLoader.loadIcon("priority/priorityIgnore.svg");

Map<String, Icon> GROUP_BY_PRIORITY_ICONS = InitIcons.initGroupByPriorityIconsMap();

Expand Down
9 changes: 4 additions & 5 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -365,20 +365,19 @@
text="Group by Package"
description="Group by package."
icon="PluginIcons.GROUP_BY_PACKAGE_ICON"/>
<!--

<action id="SpotBugs.GroupByPriority"
class="org.jetbrains.plugins.spotbugs.actions.GroupByPriority"
text="Group by priority"
text="Group by Priority"
description="Group by priority."
icon="/org/jetbrains/plugins/spotbugs/resources/icons/actions/groupByPriority.png"/>
-->
icon="PluginIcons.GROUP_BY_PRIORITY_ICON"/>


<action id="SpotBugs.GroupByRank"
class="org.jetbrains.plugins.spotbugs.actions.GroupByRank"
text="Group by Bug Rank"
description="Group by bug rank."
icon="PluginIcons.GROUP_BY_PRIORITY_ICON"/>
icon="PluginIcons.GROUP_BY_RANK_ICON"/>

<!-- <action id="SpotBugs.GroupByFilter"
class="org.jetbrains.plugins.spotbugs.actions.GroupByFilter"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit aeba275

Please sign in to comment.