shelf: fix DataContext of toolbar actions
authorAleksey Pivovarov <AMPivovarov@gmail.com>
Tue, 11 Aug 2020 11:15:59 +0000 (14:15 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Tue, 11 Aug 2020 11:18:19 +0000 (11:18 +0000)
GitOrigin-RevId: 0c5abcb0ebddda21a1e7093397b69449dd023563

platform/vcs-impl/src/com/intellij/openapi/vcs/changes/shelf/ShelvedChangesViewManager.java

index 6919efeb49df1fe8fdcc9e111cbfbec1f57f4424..be60bcaa2b0394d99710c0d829483e82f26ba84d 100644 (file)
@@ -687,6 +687,7 @@ public class ShelvedChangesViewManager implements Disposable {
       actionGroup.add(new MyToggleDetailsAction());
 
       myToolbar = ActionManager.getInstance().createActionToolbar("ShelvedChanges", actionGroup, false);
+      myToolbar.setTargetComponent(myTree);
       myTreeScrollPane = ScrollPaneFactory.createScrollPane(myTree, SideBorder.LEFT);
       myRootPanel.add(myTreeScrollPane, BorderLayout.CENTER);
       addToolbar(isCommitToolWindow(myProject));