use of com.intellij.openapi.actionSystem.ActionGroup in project intellij-community by JetBrains.
the class IncomingChangesViewProvider method initContent.
public JComponent initContent() {
myBrowser = new CommittedChangesTreeBrowser(myProject, Collections.<CommittedChangeList>emptyList());
myBrowser.getEmptyText().setText(VcsBundle.message("incoming.changes.not.loaded.message"));
ActionGroup group = (ActionGroup) ActionManager.getInstance().getAction("IncomingChangesToolbar");
final ActionToolbar toolbar = myBrowser.createGroupFilterToolbar(myProject, group, null, Collections.<AnAction>emptyList());
myBrowser.setToolBar(toolbar.getComponent());
myBrowser.setTableContextMenu(group, Collections.<AnAction>emptyList());
myConnection = myBus.connect();
myConnection.subscribe(CommittedChangesCache.COMMITTED_TOPIC, new MyCommittedChangesListener());
loadChangesToBrowser(false, true);
return myBrowser;
}
use of com.intellij.openapi.actionSystem.ActionGroup in project intellij-community by JetBrains.
the class TabInfo method setTabLabelActions.
public TabInfo setTabLabelActions(final ActionGroup tabActions, String place) {
ActionGroup old = myTabLabelActions;
myTabLabelActions = tabActions;
myTabActionPlace = place;
myChangeSupport.firePropertyChange(TAB_ACTION_GROUP, old, myTabLabelActions);
return this;
}
use of com.intellij.openapi.actionSystem.ActionGroup in project intellij-community by JetBrains.
the class PopupHandler method installPopupHandler.
public static void installPopupHandler(JComponent component, @NonNls String groupId, String place) {
ActionGroup group = (ActionGroup) ActionManager.getInstance().getAction(groupId);
installPopupHandler(component, group, place, ActionManager.getInstance());
}
use of com.intellij.openapi.actionSystem.ActionGroup in project intellij-community by JetBrains.
the class StripeButton method showPopup.
private void showPopup(final Component component, final int x, final int y) {
final ActionGroup group = myDecorator.createPopupGroup();
final ActionPopupMenu popupMenu = ActionManager.getInstance().createActionPopupMenu(ActionPlaces.UNKNOWN, group);
popupMenu.getComponent().show(component, x, y);
}
use of com.intellij.openapi.actionSystem.ActionGroup in project intellij-community by JetBrains.
the class CallHierarchyBrowser method createTrees.
@Override
protected void createTrees(@NotNull final Map<String, JTree> type2TreeMap) {
ActionGroup group = (ActionGroup) ActionManager.getInstance().getAction(IdeActions.GROUP_CALL_HIERARCHY_POPUP);
final JTree tree1 = createTree(false);
PopupHandler.installPopupHandler(tree1, group, ActionPlaces.CALL_HIERARCHY_VIEW_POPUP, ActionManager.getInstance());
final BaseOnThisMethodAction baseOnThisMethodAction = new BaseOnThisMethodAction();
baseOnThisMethodAction.registerCustomShortcutSet(ActionManager.getInstance().getAction(IdeActions.ACTION_CALL_HIERARCHY).getShortcutSet(), tree1);
type2TreeMap.put(CALLEE_TYPE, tree1);
final JTree tree2 = createTree(false);
PopupHandler.installPopupHandler(tree2, group, ActionPlaces.CALL_HIERARCHY_VIEW_POPUP, ActionManager.getInstance());
baseOnThisMethodAction.registerCustomShortcutSet(ActionManager.getInstance().getAction(IdeActions.ACTION_CALL_HIERARCHY).getShortcutSet(), tree2);
type2TreeMap.put(CALLER_TYPE, tree2);
}
Aggregations