Eclipse Markers without IResource/IFile

主宰稳场 提交于 2020-01-17 04:44:15

问题


Is it possible to use markers in eclipse without having an IResource/IFile? It doesn't look like IFileSystem or IStorage/IEditorInput support having markers. It seems like there must be a way to do this, but I don't see it.

What I'm doing is opening files from a remote system.


回答1:


Markers are part of the Workspace code and are always on IResource and derived interfaces (IFile, ...).

Non-workspace files are very much second class citizens in Eclipse.

You can use IFile.createLink to create links in the workspace to non-workspace files.



来源:https://stackoverflow.com/questions/26854135/eclipse-markers-without-iresource-ifile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!