问题描述
是否可以在eclipse中使用标记,而不需要IResource / IFile?它不像IFileSystem或具有标记的IStorage / IEditorInput支持。似乎有一种方法可以做到这一点,但是我看不到它。
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.
我正在做的是从远程系统打开文件。 p>
What I'm doing is opening files from a remote system.
推荐答案
标记是Workspace代码的一部分,始终位于 IResource
并派生接口( IFile
,...)。
Markers are part of the Workspace code and are always on IResource
and derived interfaces (IFile
, ...).
非工作空间文件是Eclipse中非常多的二等公民。
Non-workspace files are very much second class citizens in Eclipse.
您可以使用 IFile.createLink
在工作区中创建链接到非工作区文件。
You can use IFile.createLink
to create links in the workspace to non-workspace files.
这篇关于Eclipse标记没有IResource / IFile的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!