简体   繁体   English

在Eclipse包资源管理器中为类添加标签/添加标签

[英]Annotating/applying labels to classes in Eclipse package explorer

Personally, I am a very visual-oriented sort of person. 就个人而言,我是一个非常视觉导向的人。 A long list of classes, especially with similar names, in one package in Eclipse can be a pain to stare at. 在Eclipse的一个软件包中,一长串类(尤其是名称相似的类)可能很难看。 Is there an Eclipse plugin or a way to annotate classes in the Package Explorer with colors? 是否有Eclipse插件或在Package Explorer中用颜色注释类的方法?

I am aware of and currently use Eclipse working sets, but I would like to furtherly color-label the classes themselves in the package explorer list. 我知道并且当前正在使用Eclipse工作集,但是我想进一步在程序包浏览器列表中为类本身加上颜色标签。

Seems like a pretty far-fetched request, but is it possible? 似乎是一个牵强附会的请求,但是可能吗?

Yes there is an plugin call Resource Decorator Check this blog for more details. 是的,有一个插件调用Resource Decorator检查此博客以获取更多详细信息。

Check the motivation section: 检查动机部分:

While working with mylyn and working sets helps to organize the workspace, I was always missing some visual distinction between different project types. 尽管使用mylyn和工作集有助于组织工作区,但我始终缺少不同项目类型之间的视觉区别。 Like having different colors for plug-ins and features or highlight important files. 喜欢为插件和功能使用不同的颜色,或突出显示重要文件。

You can use regular expression to decorate a set similar resources. 您可以使用正则表达式来装饰一组相似的资源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM