Eclipse Package Explorer:隐藏长包名的一部分? [英] Eclipse Package Explorer: Hide part of long package names?

查看:346
本文介绍了Eclipse Package Explorer:隐藏长包名的一部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找一个让我烦恼一段时间(但没有运气)的问题。



我正在开发一个Android应用程序相当长的包名称 com.kennethbrodersen.simplecaster



此项目包含许多子包。问题是,所有这些软件包都在软件包资源管理器中显示为完整的软件包标识符。结果是这个视图必须非常宽,或者我必须水平滚动才能实际查看名称的有趣部分。问题在下面的截图中非常清楚。你们中的任何一个人都知道一个方法来隐藏标识符的部分(在这种情况下,这个例子是 com.kennethbrodersen.simplecaster )?



解决方案

您可以在Helios(3.6)或更高版本中配置包名缩写。转到窗口>首选项> Java>外观设置缩写规则。



例如, com.kennethbrodersen。 simplepod 可以被配置为显示为 {KBsimple} 与规则 com.kennethbrodersen.simplepod = {KBsimple} / code>。


I've been searching for a "problem" that have annoyed me for a while (but without any luck).

I am developing an Android application with the rather long package name com.kennethbrodersen.simplecaster.

This project contains a number of subpackages. The problem is that all these packages are shown with the full package identifier in the package explorer. The result is that this view has to be very wide or that I have to scroll horizontally to actually view the interesting part of the name. The problem is very clearly visible on the screenshot below.

Do any of you know of a way to "hide" parts of the identifier (in this case com.kennethbrodersen.simplecaster)?

解决方案

You can configure package name abbreviations in Helios (3.6) or later. Go to Window > Preferences > Java > Appearance to set up abbreviation rules.

For example, com.kennethbrodersen.simplepod could be configured to be displayed as {KBsimple} with the rule com.kennethbrodersen.simplepod={KBsimple}.

这篇关于Eclipse Package Explorer:隐藏长包名的一部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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