[英]DocumentProvider without IFile in eclipse plugin
I have a simple code editor that edits some source file, but the editor must be able to edit a section of the source file. 我有一个简单的代码编辑器,可以编辑某些源文件,但是该编辑器必须能够编辑源文件的一部分。 I mean it must be able to work with text input (input stream, or string, or something like that).
我的意思是它必须能够使用文本输入(输入流,字符串或类似的东西)。 The problem is I haven't found a DocumentProvider that does not need an IFile reference.
问题是我还没有找到不需要IFile引用的DocumentProvider。 I have been googling but I didn't find anything useful.
我一直在搜索,但没有发现任何有用的信息。 Are there any classes that take care of this, or I have implement it all alone?
是否有任何类可以解决这个问题,或者我已经单独实现了? And if I do can you please share some good literature that will guide me?
如果可以的话,请您分享一些可以指导我的好文献? Thank you very much for answers.
非常感谢您的回答。
Take a look at using StorageDocumentProvider which works with IStorage instead of IFile. 看一下使用与IStorage而不是IFile一起使用的StorageDocumentProvider。 IStorage is probably a better fit for your program-supplied content.
IStorage可能更适合您程序提供的内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.