本文整理匯總了Java中com.intellij.openapi.ui.ShadowAction類的典型用法代碼示例。如果您正苦於以下問題:Java ShadowAction類的具體用法?Java ShadowAction怎麽用?Java ShadowAction使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ShadowAction類屬於com.intellij.openapi.ui包,在下文中一共展示了ShadowAction類的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: BaseNavigationAction
import com.intellij.openapi.ui.ShadowAction; //導入依賴的package包/類
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);
}
示例2: NavigationAction
import com.intellij.openapi.ui.ShadowAction; //導入依賴的package包/類
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());
}
示例3: CloseTab
import com.intellij.openapi.ui.ShadowAction; //導入依賴的package包/類
public CloseTab(JComponent c, TabInfo info) {
myTabInfo = info;
myShadow = new ShadowAction(this, ActionManager.getInstance().getAction(IdeActions.ACTION_CLOSE), c);
}
示例4: TabbedContentAction
import com.intellij.openapi.ui.ShadowAction; //導入依賴的package包/類
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));
}
示例5: ShowContentAction
import com.intellij.openapi.ui.ShadowAction; //導入依賴的package包/類
public ShowContentAction(ToolWindow window, JComponent c) {
myWindow = window;
AnAction original = ActionManager.getInstance().getAction("ShowContent");
new ShadowAction(this, original, c);
copyFrom(original);
}
示例6: ResizeToolWindowAction
import com.intellij.openapi.ui.ShadowAction; //導入依賴的package包/類
protected ResizeToolWindowAction(ToolWindow toolWindow, String originalAction, JComponent c) {
myToolWindow = toolWindow;
new ShadowAction(this, ActionManager.getInstance().getAction(originalAction), c);
}
示例7: RevertAction
import com.intellij.openapi.ui.ShadowAction; //導入依賴的package包/類
private RevertAction() {
new ShadowAction(this, ActionManager.getInstance().getAction("EditorDelete"), myTable);
}
示例8: EditAction
import com.intellij.openapi.ui.ShadowAction; //導入依賴的package包/類
private EditAction() {
new ShadowAction(this, ActionManager.getInstance().getAction(IdeActions.ACTION_EDIT_SOURCE), myTable);
}
示例9: CloseTab
import com.intellij.openapi.ui.ShadowAction; //導入依賴的package包/類
CloseTab(JComponent c, TabInfo info) {
myTabInfo = info;
myShadow = new ShadowAction(this, ActionManager.getInstance().getAction(IdeActions.ACTION_CLOSE), c);
}
示例10: TabbedContentAction
import com.intellij.openapi.ui.ShadowAction; //導入依賴的package包/類
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));
}