[英]Why does Eclipse Java Package Explorer show question mark on some classes?
In the Eclipse Helios Java Package Explorer, I see the Java class icons display a small question mark to the right of the 'J', something like [J?].在 Eclipse Helios Java Package Explorer 中,我看到 Java 类图标在“J”的右侧显示一个小问号,类似于 [J?]。 This icon is shown on each class within one package in my project, but I cannot find an explanation for this in the documentation.这个图标显示在我项目中一个包内的每个类上,但我在文档中找不到对此的解释。
At some point I expect them to disappear and be replaced with small orange rectangles.在某些时候,我希望它们会消失并被小的橙色矩形取代。 (Of which I'm also not certain of their meaning, but less worried of their connotation.) I suppose this question points to a larger one, are any of these icons defined together somewhere? (其中我也不确定它们的含义,但不太担心它们的含义。)我想这个问题指向一个更大的问题,这些图标中的任何一个是否在某处一起定义?
It means the class is not yet added to the repository.这意味着该类尚未添加到存储库中。
If your project was checked-out (most probably a CVS project) and you added a new class file, it will have the ?如果您的项目已被检出(很可能是 CVS 项目)并且您添加了一个新的类文件,它将具有? icon.图标。
For other CVS Label Decorations, check http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.user/reference/ref-cvs-decorations.htm对于其他 CVS 标签装饰,请查看http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.user/reference/ref-cvs-decorations.htm
With some version-control plug-ins, it means that the local file has not yet been shared with the version-control repository.对于某些版本控制插件,这意味着本地文件尚未与版本控制存储库共享。 (In my install, this includes plug-ins for CVS and git, but not Perforce.) (在我的安装中,这包括 CVS 和 git 的插件,但不包括 Perforce。)
You can sometimes see a list of these decorations in the plug-in's preferences under Team/X/Label Decorations , where X describes the version-control system.您有时可以在Team/X/Label Decorations下的插件首选项中看到这些装饰的列表,其中 X 描述版本控制系统。
For example, for CVS, the list looks like this:例如,对于 CVS,列表如下所示:
These adornments are added to the object icons provided by Eclipse.这些装饰被添加到 Eclipse 提供的对象图标中。 For example, here's a table of icons for the Java development environment .例如,这里有一个Java 开发环境的图标表。
It sounds like you're using Subclipse;听起来您正在使用 Subclipse; is that correct?那是对的吗? If so, there's a great list of decorators and their descriptions at this answer by Tim Stone.如果是这样,那么在 Tim Stone 的这个答案中有很多装饰者及其描述。
Here's the relevant snippet for your case:这是您案例的相关片段:
- A file not under version control. - 不受版本控制的文件。 These are typically new files that you have not committed to the repository yet.这些通常是您尚未提交到存储库的新文件。
- A file with no local changes. - 没有本地更改的文件。
those icons are a way of Egit to show you status of the current file/folder in git.这些图标是 Egit 的一种方式,用于显示 git 中当前文件/文件夹的状态。 You might want to check this out:你可能想看看这个:
In a svn enabled project the small question mark (?) indicates that your file is not yet added to the SVN repository.在启用svn 的项目中,小问号 (?) 表示您的文件尚未添加到 SVN 存储库中。
The small orange rectangle is an indication that your file is committed in the repository.橙色小矩形表示您的文件已在存储库中提交。
An asterisk (*) indicates a local change.星号 (*) 表示本地更改。
this is because your project has been linked to a git-hub repository, and the file having question mark on it, is not been added yet.这是因为您的项目已链接到 git-hub 存储库,并且尚未添加带有问号的文件。 if you want to remove this sign you will have to add this file to git-hub repository.如果要删除此标志,则必须将此文件添加到 git-hub 存储库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.