首页 > 解决方案 > 临时文件上的 Eclipse IFileEditorInput

问题描述

Eclipse ClassFileEditor 需要 anIClassFileEditorInput或 an IFileEditorInput,它不接受普通的IStorageEditorInput.

问题是我将二进制数据作为InputStream对象。我想打开一个编辑器,IStorageEditorInput除了类文件之外,它非常适用。

我正在寻找一种将流转换为临时文件然后在其上创建的方法IFileEditorInput。但是,我找不到任何方法来创建临时文件作为IFile对象,而IFileEditorInput. 不知何故,IFile需要在 Eclipse 工作区中。

标签: eclipseeclipse-plugineclipse-jdt

解决方案


推荐阅读