當前位置: 首頁>>代碼示例>>Java>>正文


Java ShadowAction類代碼示例

本文整理匯總了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);
}
 
開發者ID:consulo,項目名稱:consulo,代碼行數:8,代碼來源:JBTabsImpl.java

示例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());
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:6,代碼來源:NavigationAction.java

示例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);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:5,代碼來源:EditorTabbedContainer.java

示例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));
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:6,代碼來源:TabbedContentAction.java

示例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);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:7,代碼來源:ShowContentAction.java

示例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);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:5,代碼來源:ResizeToolWindowAction.java

示例7: RevertAction

import com.intellij.openapi.ui.ShadowAction; //導入依賴的package包/類
private RevertAction() {
  new ShadowAction(this, ActionManager.getInstance().getAction("EditorDelete"), myTable);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:4,代碼來源:RegistryUi.java

示例8: EditAction

import com.intellij.openapi.ui.ShadowAction; //導入依賴的package包/類
private EditAction() {
  new ShadowAction(this, ActionManager.getInstance().getAction(IdeActions.ACTION_EDIT_SOURCE), myTable);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:4,代碼來源:RegistryUi.java

示例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);
}
 
開發者ID:consulo,項目名稱:consulo,代碼行數:5,代碼來源:EditorTabbedContainer.java

示例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));
}
 
開發者ID:consulo,項目名稱:consulo,代碼行數:6,代碼來源:TabbedContentAction.java


注:本文中的com.intellij.openapi.ui.ShadowAction類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。