IDEA-260894 Add Copy action to the BufferedImage display

GitOrigin-RevId: 47a8092bbf42ac54013c58c913a9a09d8c54e48c
This commit is contained in:
Egor Ushakov
2021-02-01 17:03:04 +03:00
committed by intellij-monorepo-bot
parent d53ddc1f22
commit 86fc9d76d3

View File

@@ -607,7 +607,7 @@ final class ImageEditorUI extends JPanel implements DataProvider, CopyProvider,
PsiElement psi = findPsiFile();
return psi != null ? new PsiElement[]{psi} : PsiElement.EMPTY_ARRAY;
}
else if (PlatformDataKeys.COPY_PROVIDER.is(dataId) && copyPasteSupport != null) {
else if (PlatformDataKeys.COPY_PROVIDER.is(dataId)) {
return this;
}
else if (PlatformDataKeys.CUT_PROVIDER.is(dataId) && copyPasteSupport != null) {