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


Java PlatformIcons.COPY_ICON屬性代碼示例

本文整理匯總了Java中com.intellij.util.PlatformIcons.COPY_ICON屬性的典型用法代碼示例。如果您正苦於以下問題:Java PlatformIcons.COPY_ICON屬性的具體用法?Java PlatformIcons.COPY_ICON怎麽用?Java PlatformIcons.COPY_ICON使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在com.intellij.util.PlatformIcons的用法示例。


在下文中一共展示了PlatformIcons.COPY_ICON屬性的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createActions

public VcsCommittedViewAuxiliary createActions(DecoratorManager decoratorManager, RepositoryLocation repositoryLocation) {
  AnAction copyHashAction = new AnAction("Copy &Hash", "Copy hash to clipboard", PlatformIcons.COPY_ICON) {
    @Override
    public void actionPerformed(AnActionEvent e) {
      ChangeList[] changeLists = e.getData(VcsDataKeys.CHANGE_LISTS);
      if (changeLists != null && changeLists[0] instanceof HgCommittedChangeList) {
        HgRevisionNumber revisionNumber = ((HgCommittedChangeList)changeLists[0]).getRevision();
        CopyPasteManager.getInstance().setContents(new StringSelection(revisionNumber.getChangeset()));
      }
    }
  };
  return new VcsCommittedViewAuxiliary(Collections.singletonList(copyHashAction), new Runnable() {
    public void run() {
    }
  }, Collections.singletonList(copyHashAction));
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:16,代碼來源:HgCachingCommittedChangesProvider.java

示例2: MyCopyAction

public MyCopyAction() {
  super(ExecutionBundle.message("copy.configuration.action.name"),
        ExecutionBundle.message("copy.configuration.action.name"),
        PlatformIcons.COPY_ICON);

  final AnAction action = ActionManager.getInstance().getAction(IdeActions.ACTION_EDITOR_DUPLICATE);
  registerCustomShortcutSet(action.getShortcutSet(), myTree);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:8,代碼來源:RunConfigurable.java

示例3: CopyAction

public CopyAction() {
  super(DebuggerBundle.message("button.copy"), DebuggerBundle.message("user.renderers.configurable.button.description.copy"), PlatformIcons.COPY_ICON);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:3,代碼來源:UserRenderersConfigurable.java

示例4: CopyToClipboardAction

public CopyToClipboardAction(List<ThreadState> threadDump, Project project) {
  super("Copy to Clipboard", "Copy whole thread dump to clipboard", PlatformIcons.COPY_ICON);
  myThreadDump = threadDump;
  myProject = project;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:5,代碼來源:ThreadDumpPanel.java

示例5: getActionIcon

public Icon getActionIcon() {
  return PlatformIcons.COPY_ICON;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:3,代碼來源:ReorderableListController.java

示例6: CopyLinkAction

private CopyLinkAction(@NotNull String url) {
  super("Copy Link Address", null, PlatformIcons.COPY_ICON);
  myUrl = url;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:4,代碼來源:SwingHelper.java

示例7: CopyLineStatusRangeAction

CopyLineStatusRangeAction(final LineStatusTracker lineStatusTracker, final Range range) {
  super(VcsBundle.message("action.name.copy.old.text"), PlatformIcons.COPY_ICON, lineStatusTracker, range);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:3,代碼來源:CopyLineStatusRangeAction.java

示例8: CopyAllocationAction

public CopyAllocationAction() {
  super("Copy", "Copy allocation to clipboard", PlatformIcons.COPY_ICON);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:3,代碼來源:DisposerDebugger.java


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