Annotating/applying 标签到 类 在 Eclipse 包资源管理器中

Annotating/applying labels to classes in Eclipse package explorer

就我个人而言,我是一个非常注重视觉的人。在 Eclipse 中的一个包中,一长串 类,尤其是具有相似名称的列表,盯着看可能会很痛苦。是否有 Eclipse 插件或在 Package Explorer 中用颜色注释 类 的方法?

我知道并且目前正在使用 Eclipse 工作集,但我想在包资源管理器列表中进一步用颜色标记 类 本身。

这似乎是一个很牵强的要求,但有可能吗?

是的,有一个插件调用Resource Decorator查看此blog了解更多详情。

检查动机部分:

While working with mylyn and working sets helps to organize the workspace, I was always missing some visual distinction between different project types. Like having different colors for plug-ins and features or highlight important files.

您可以使用正则表达式来装饰一组类似的资源。