View Javadoc

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   * Created by IntelliJ IDEA.
14   * User: lguminski
15   * Date: Jun 19, 2008
16   * Time: 1:33:06 AM
17   * To change this template use File | Settings | File Templates.
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  }