本文整理匯總了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));
}
示例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);
}
示例3: CopyAction
public CopyAction() {
super(DebuggerBundle.message("button.copy"), DebuggerBundle.message("user.renderers.configurable.button.description.copy"), PlatformIcons.COPY_ICON);
}
示例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;
}
示例5: getActionIcon
public Icon getActionIcon() {
return PlatformIcons.COPY_ICON;
}
示例6: CopyLinkAction
private CopyLinkAction(@NotNull String url) {
super("Copy Link Address", null, PlatformIcons.COPY_ICON);
myUrl = url;
}
示例7: CopyLineStatusRangeAction
CopyLineStatusRangeAction(final LineStatusTracker lineStatusTracker, final Range range) {
super(VcsBundle.message("action.name.copy.old.text"), PlatformIcons.COPY_ICON, lineStatusTracker, range);
}
示例8: CopyAllocationAction
public CopyAllocationAction() {
super("Copy", "Copy allocation to clipboard", PlatformIcons.COPY_ICON);
}