问题
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