protected BaseNavigationAction(final String copyFromID, JBTabsImpl tabs, ActionManager mgr) { myActionManager = mgr; myTabs = tabs; myShadow = new ShadowAction(this, myActionManager.getAction(copyFromID), tabs); Disposer.register(tabs, myShadow); setEnabledInModalContext(true); }
protected NavigationAction(JComponent c, final String originalActionID) { final AnAction original = ActionManager.getInstance().getAction(originalActionID); myShadow = new ShadowAction(this, original, c); getTemplatePresentation().setIcon(original.getTemplatePresentation().getIcon()); }
public CloseTab(JComponent c, TabInfo info) { myTabInfo = info; myShadow = new ShadowAction(this, ActionManager.getInstance().getAction(IdeActions.ACTION_CLOSE), c); }
protected TabbedContentAction(@NotNull final ContentManager manager, @NotNull AnAction shortcutTemplate, @NotNull String text) { super(text); myManager = manager; myShadow = new ShadowAction(this, shortcutTemplate, manager.getComponent(), new Presentation(text)); }
protected TabbedContentAction(@NotNull final ContentManager manager, @NotNull AnAction template) { myManager = manager; myShadow = new ShadowAction(this, template, manager.getComponent()); }
public ShowContentAction(ToolWindow window, JComponent c) { myWindow = window; AnAction original = ActionManager.getInstance().getAction("ShowContent"); new ShadowAction(this, original, c); copyFrom(original); }
protected ResizeToolWindowAction(ToolWindow toolWindow, String originalAction, JComponent c) { myToolWindow = toolWindow; new ShadowAction(this, ActionManager.getInstance().getAction(originalAction), c); }
private RevertAction() { new ShadowAction(this, ActionManager.getInstance().getAction("EditorDelete"), myTable); }
private EditAction() { new ShadowAction(this, ActionManager.getInstance().getAction(IdeActions.ACTION_EDIT_SOURCE), myTable); }
CloseTab(JComponent c, TabInfo info) { myTabInfo = info; myShadow = new ShadowAction(this, ActionManager.getInstance().getAction(IdeActions.ACTION_CLOSE), c); }
protected TabbedContentAction(@Nonnull final ContentManager manager, @Nonnull AnAction shortcutTemplate, @Nonnull String text) { super(text); myManager = manager; myShadow = new ShadowAction(this, shortcutTemplate, manager.getComponent(), new Presentation(text)); }
protected TabbedContentAction(@Nonnull final ContentManager manager, @Nonnull AnAction template) { myManager = manager; myShadow = new ShadowAction(this, template, manager.getComponent()); }