为什么 Eclipse Java Package Explorer 在某些类上显示问号?
在 Eclipse Helios Java Package Explorer 中,我看到 Java 类图标在“J”右侧显示一个小问号,类似于 [J?]。此图标显示在我的项目中一个包内的每个类上,但我在文档中找不到对此的解释。
在某些时候,我希望它们消失并被小的橙色矩形取代。 (其中我也不确定它们的含义,但不太担心它们的内涵。)我想这个问题指向一个更大的问题,这些图标中的任何一个是否在某处定义在一起?
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?]. 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
这意味着该类尚未添加到存储库中。
如果您的项目已签出(很可能是 CVS 项目)并且添加了新的类文件,它将具有 ? 图标。
对于其他 CVS 标签装饰,请检查 http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.user/reference/ref-cvs-decorations.htm
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 ? 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 和 git 的插件,但不包括 Perforce。)
有时您可以在插件首选项的 Team/X/Label Decorations 下看到这些装饰的列表,其中 X 描述版本控制系统。
例如,对于 CVS,列表如下所示:
这些装饰被添加到 Eclipse 提供的对象图标中。例如,这是 Java 开发环境的图标表。
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.)
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.
For example, for CVS, the list looks like this:
These adornments are added to the object icons provided by Eclipse. For example, here's a table of icons for the Java development environment.
听起来你正在使用 Subclipse;这是正确的吗?如果是这样,蒂姆·斯通的这个答案。
这是您的案例的相关片段:
It sounds like you're using Subclipse; is that correct? If so, there's a great list of decorators and their descriptions at this answer by Tim Stone.
Here's the relevant snippet for your case:
在 svn 启用的项目中,小问号 (? ) 表示您的文件尚未添加到 SVN 存储库。
橙色小矩形表示您的文件已提交到存储库中。
星号 (*) 表示本地更改。
In a svn enabled project the small question mark (?) indicates that your file is not yet added to the SVN repository.
The small orange rectangle is an indication that your file is committed in the repository.
An asterisk (*) indicates a local change.
这些图标是 Egit 向您显示 git 中当前文件/文件夹状态的一种方式。您可能想查看一下:
意味着它在工作树中发生了变化,但在工作树中却没有发生变化
索引也不在存储库中。
Git 存储库。 untracked - Git 不知道该资源
存储库。
提供者。这里只进行Team->Team下的首选项设置被忽略
资源和“派生”标志是相关的。 .gitignore 文件是
没有考虑到。
既不在索引中也不在存储库中的工作树。
目前只能在提交时添加到索引
资源上下文菜单上的对话框。
工作树中既不在索引中也不在索引中的更改
存储库。
Git 存储库。
Git 存储库。
意味着 Git 停止检查工作树文件是否有可能
修改,因此您需要手动取消设置该位以告诉 Git 何时
您更改工作树文件。该设置可以开启
使用菜单操作 Team->Assume 不变(或在命令行上
使用 git update-index--assume-unchanged)。
those icons are a way of Egit to show you status of the current file/folder in git. You might want to check this out:
means that it has changes in the working tree that are neither in the
index nor in the repository.
Git repository. untracked - The resource is not known to the Git
repository.
provider. Here only the preference settings under Team -> Ignored
Resources and the "derived" flag are relevant. The .gitignore file is
not taken into account.
working tree that are neither in the index nor in the repository.
that adding to the index is possible at the moment only on the commit
dialog on the context menu of a resource.
changes in the working tree that are neither in the index nor in the
repository.
the Git repository.
the Git repository.
means that Git stops checking the working tree files for possible
modifications, so you need to manually unset the bit to tell Git when
you change the working tree file. This setting can be switched on
with the menu action Team->Assume unchanged (or on the command line
with git update-index--assume-unchanged).
这是因为您的项目已链接到 git-hub 存储库,并且尚未添加带有问号的文件。如果您想删除此标志,您必须将此文件添加到 git-hub 存储库。
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. if you want to remove this sign you will have to add this file to git-hub repository.