我有以下的麻烦剪辑内容,当我复制的IntelliJ IDEA编辑文本,并运行如何确定当前剪贴板中的DataFlavor之前得到
Toolkit.defaultToolkit.systemClipboard.getData(DataFlavor.stringFlavor)
它会提高:
Exception "java.lang.ClassNotFoundException: com/intellij/codeInsight/editorActions/FoldingData"while constructing DataFlavor for: application/x-java-jvm-local-objectref; class=com.intellij.codeInsight.editorActions.FoldingData
事实上,我希望忽略剪辑内容与FoldingData,如何检测当前剪贴板DataFlavor
问题是ClassNotFoundException也不例外,它的警告我无法捕获它 – asullaherc