Package org.sylfra.idea.plugins.revu.actions.issuetree

Source Code of org.sylfra.idea.plugins.revu.actions.issuetree.CollapseIssueTreeAction

package org.sylfra.idea.plugins.revu.actions.issuetree;

import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.PlatformDataKeys;
import com.intellij.openapi.project.Project;
import org.sylfra.idea.plugins.revu.ui.toolwindow.RevuToolWindowManager;

/**
* @author <a href="mailto:syllant@gmail.com">Sylvain FRANCOIS</a>
* @version $Id$
*/
public class CollapseIssueTreeAction extends AnAction
{
  @Override
  public void actionPerformed(AnActionEvent e)
  {
    Project project = e.getData(PlatformDataKeys.PROJECT);
    if (project != null)
    {
      project.getComponent(RevuToolWindowManager.class).getSelectedReviewBrowsingForm().getIssueTree().collapseAll();
    }
  }
}
TOP

Related Classes of org.sylfra.idea.plugins.revu.actions.issuetree.CollapseIssueTreeAction

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.