List of usage examples for com.intellij.openapi.actionSystem IdeActions ACTION_COLLAPSE_ALL
String ACTION_COLLAPSE_ALL
To view the source code for com.intellij.openapi.actionSystem IdeActions ACTION_COLLAPSE_ALL.
Click Source Link
From source file:com.intellij.ide.actions.CollapseAllToolbarAction.java
License:Apache License
public CollapseAllToolbarAction(TreeExpander treeExpander) { myTreeExpander = treeExpander; copyFrom(ActionManager.getInstance().getAction(IdeActions.ACTION_COLLAPSE_ALL)); }
From source file:com.intellij.ide.util.MemberChooser.java
License:Apache License
@Override protected JComponent createCenterPanel() { JPanel panel = new JPanel(new BorderLayout()); // Toolbar/*from w w w. j av a 2 s . c o m*/ DefaultActionGroup group = new DefaultActionGroup(); fillToolbarActions(group); group.addSeparator(); ExpandAllAction expandAllAction = new ExpandAllAction(); expandAllAction.registerCustomShortcutSet( new CustomShortcutSet( KeymapManager.getInstance().getActiveKeymap().getShortcuts(IdeActions.ACTION_EXPAND_ALL)), myTree); group.add(expandAllAction); CollapseAllAction collapseAllAction = new CollapseAllAction(); collapseAllAction.registerCustomShortcutSet( new CustomShortcutSet( KeymapManager.getInstance().getActiveKeymap().getShortcuts(IdeActions.ACTION_COLLAPSE_ALL)), myTree); group.add(collapseAllAction); panel.add(ActionManager.getInstance().createActionToolbar(ActionPlaces.UNKNOWN, group, true).getComponent(), BorderLayout.NORTH); // Tree expandFirst(); defaultExpandTree(); installSpeedSearch(); JScrollPane scrollPane = ScrollPaneFactory.createScrollPane(myTree); scrollPane.setPreferredSize(new Dimension(350, 450)); panel.add(scrollPane, BorderLayout.CENTER); return panel; }