为什么 Eclipse Java Package Explorer 在某些类上显示问号?

发布于 2024-10-05 05:19:51 字数 340 浏览 6 评论 0原文

在 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.

enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

灼痛 2024-10-12 05:19:51

这意味着该类尚未添加到存储库中。

如果您的项目已签出(很可能是 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

旧竹 2024-10-12 05:19:51

对于某些版本控制插件,这意味着本地文件尚未与版本控制存储库共享。 (在我的安装中,这包括 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:

enter image description here

These adornments are added to the object icons provided by Eclipse. For example, here's a table of icons for the Java development environment.

抚笙 2024-10-12 05:19:51

听起来你正在使用 Subclipse;这是正确的吗?如果是这样,蒂姆·斯通的这个答案

这是您的案例的相关片段:

Unversioned File- 不受版本控制的文件。这些通常是您尚未提交到存储库的新文件。
同步文件- 没有本地更改的文件。

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:

Unversioned File- A file not under version control. These are typically new files that you have not committed to the repository yet.
Synchronized File- A file with no local changes.

柳若烟 2024-10-12 05:19:51

启用的项目中,小问号 (? ) 表示您的文件尚未添加到 SVN 存储库。

橙色小矩形表示您的文件已提交到存储库中。

星号 (*) 表示本地更改。

In a 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.

清秋悲枫 2024-10-12 05:19:51

这些图标是 Egit 向您显示 git 中当前文件/文件夹状态的一种方式。您可能想查看一下:

image描述Egit的Eclipse图标

  • dirty (文件夹)- 文件夹下至少有一个文件是脏的;那
    意味着它在工作树中发生了变化,但在工作树中却没有发生变化
    索引也不在存储库中。
  • 已跟踪 - 资源已知
    Git 存储库。 untracked - Git 不知道该资源
    存储库。
  • 忽略 - 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:

image describing Eclipse icons for Egit

  • dirty (folder) - At least one file below the folder is dirty; that
    means that it has changes in the working tree that are neither in the
    index nor in the repository.
  • tracked - The resource is known to the
    Git repository. untracked - The resource is not known to the Git
    repository.
  • ignored - The resource is ignored by the Git team
    provider. Here only the preference settings under Team -> Ignored
    Resources and the "derived" flag are relevant. The .gitignore file is
    not taken into account.
  • dirty - The resource has changes in the
    working tree that are neither in the index nor in the repository.
  • staged - The resource has changes which are added to the index. Not
    that adding to the index is possible at the moment only on the commit
    dialog on the context menu of a resource.
  • partially-staged - The resource has changes which are added to the index and additionally
    changes in the working tree that are neither in the index nor in the
    repository.
  • added - The resource is not yet tracked by but added to
    the Git repository.
  • removed - The resource is staged for removal from
    the Git repository.
  • conflict - A merge conflict exists for the file.
  • assume-valid - The resource has the "assume unchanged" flag. This
    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).
2024-10-12 05:19:51

这是因为您的项目已链接到 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文