1 package com.atlassian.theplugin.idea.action.crucible;
2
3 import com.intellij.openapi.actionSystem.AnAction;
4 import com.intellij.openapi.actionSystem.AnActionEvent;
5 import com.intellij.openapi.wm.ToolWindow;
6 import com.atlassian.theplugin.idea.IdeaHelper;
7 import com.atlassian.theplugin.idea.CrucibleBottomToolWindowPanel;
8 import com.atlassian.theplugin.idea.PluginToolWindow;
9 import com.atlassian.theplugin.idea.ThePluginProjectComponent;
10 import com.atlassian.theplugin.idea.crucible.comments.ReviewCommentsPanel;
11
12
13
14
15
16
17
18
19 public class BackToGeneralCommentsAction extends AnAction {
20 public void actionPerformed(AnActionEvent event) {
21 ThePluginProjectComponent pluginProjectComponent = IdeaHelper.getCurrentProject(event.getDataContext())
22 .getComponent(ThePluginProjectComponent.class);
23 ReviewCommentsPanel panel = pluginProjectComponent.getCrucibleBottomToolWindowPanel().getReviewComentsPanel();
24 panel.switchToComments();
25 }
26 }