图钉图标装饰在Eclipse CDT中意味着什么? [英] What does the push pin icon adornment mean in Eclipse CDT?

查看:137
本文介绍了图钉图标装饰在Eclipse CDT中意味着什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我从构建中排除.h文件,然后在以后重新包含它时,Project Explorer中.h文件的图标都会带有图钉装饰。我查看了《 CDT用户指南》,但未在他们的图标列表

Whenever I exclude a .h file from the build and then re-include it later, the icon for the .h file in the Project Explorer will have a push-pin adornment. I looked on the CDT User Guide but it's not on their list of icons. What does the push pin mean?

推荐答案

您可能已经发现CDT中的一个小错误!

You may have uncovered a small bug in CDT!

您在原始问题中未包含图片,因此我建议您看到的图标叠加层不是图钉,而是指示该元素(包含文件)的属性已被修改(看起来像一把小扳手)。当您排除该元素时,它将得到一个表示排除的覆盖,而当您重新包含该元素时,您将看到扳手覆盖。这是错误,因为您已将元素恢复为未修改状态。在这种情况下,不应显示扳手覆盖。

You did not include an image in your original question so I'm going to propose that the icon overlay you are seeing is not a push-pin, but an indicator that the properties for this element (the include file) have been modified (it looks like a little wrench). When you exclude the element it gets an overlay indicating exclusion, when you re-include the element you see the wrench overlay. This is the bug since you have returned the element to its unmodified state. The wrench overlay should not be displayed in this case.

如果尝试排除C源文件,您将看到排除覆盖,并且当您重新包含C源代码时文件,排除的覆盖层将被删除,仅显示原始图标(无覆盖层)。

If you try excluding C source file you'll see the exclusion overlay, and when you re-include the C source file the exclusion overlay is removed and only the original icon (with no overlay) is displayed.

(我使用CDT 7.0.0尝试过此操作)

(I tried this using CDT 7.0.0)

这篇关于图钉图标装饰在Eclipse CDT中意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆