Skip to content

Commit

Permalink
Set target component on toolbars (#602).
Browse files Browse the repository at this point in the history
  • Loading branch information
jshiell committed Jan 15, 2023
1 parent b3abf0f commit 332a5c5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

# CheckStyle-IDEA Changelog

* **5.75.0** Fixed: Set target component on toolbars (#602).
* **5.75.0** New: Added Checkstyle 10.6.0.
* **5.74.1** Fixed: Ensure scope is checked as read action (#595).
* **5.74.0** New: Added Checkstyle 10.5.0 - thanks to @kennysoft (#596).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,13 @@ public CheckStyleToolWindowPanel(final ToolWindow toolWindow, final Project proj
ActionManager.getInstance().getAction(MAIN_ACTION_GROUP);
final ActionToolbar mainToolbar = ActionManager.getInstance().createActionToolbar(
ID_TOOLWINDOW, mainActionGroup, false);
mainToolbar.setTargetComponent(this);

final ActionGroup treeActionGroup = (ActionGroup)
ActionManager.getInstance().getAction(TREE_ACTION_GROUP);
final ActionToolbar treeToolbar = ActionManager.getInstance().createActionToolbar(
ID_TOOLWINDOW, treeActionGroup, false);
treeToolbar.setTargetComponent(this);

final Box toolBarBox = Box.createHorizontalBox();
toolBarBox.add(mainToolbar.getComponent());
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<change-notes>
<![CDATA[
<ul>
<li>5.75.0: Fixed: Set target component on toolbars (#602).</li>
<li>5.75.0: New: Added Checkstyle 10.6.0.</li>
<li>5.74.1: Fixed: Ensure scope is checked as read action (#595).</li>
<li>5.74.0: New: Added Checkstyle 10.5.0 - thanks to @kennysoft (#596).</li>
Expand Down

0 comments on commit 332a5c5

Please sign in to comment.