mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Revert "[pycharm] PY-83267 Jupyter: remove the option from a popup menu"
This reverts commit 7ae3ab7b1139f5a533c617bbb1ced7653dcae761. GitOrigin-RevId: fe93a22f4839bcfeedec8eda38c6e935552d920c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
be76f2ef78
commit
8188e77d0d
-5
@@ -6,7 +6,6 @@ package com.intellij.notebooks.visualization.r.inlays
|
||||
|
||||
import com.intellij.openapi.ide.CopyPasteManager
|
||||
import com.intellij.openapi.util.io.FileUtil
|
||||
import com.intellij.util.system.OS
|
||||
import java.awt.Image
|
||||
import java.awt.datatransfer.DataFlavor
|
||||
import java.awt.datatransfer.Transferable
|
||||
@@ -34,10 +33,6 @@ object ClipboardUtils {
|
||||
CopyPasteManager.getInstance().setContents(FileTransferable(listOf(tempImage)))
|
||||
}
|
||||
|
||||
// Standard copy works incorrectly on Mac, see JBR-6788,
|
||||
// But it seemingly was fixed in the newer (15 and later) Mac versions
|
||||
fun isIntermediateFileWorkaroundNeeded(): Boolean = OS.CURRENT == OS.macOS && !OS.CURRENT.isAtLeast(15, 0)
|
||||
|
||||
private class FileTransferable(private val files: List<File>) : Transferable {
|
||||
override fun getTransferDataFlavors(): Array<DataFlavor> = arrayOf(DataFlavor.javaFileListFlavor)
|
||||
override fun isDataFlavorSupported(flavor: DataFlavor): Boolean = DataFlavor.javaFileListFlavor.equals(flavor)
|
||||
|
||||
Reference in New Issue
Block a user