Eclipse Package Explorer: Hide part of long package names?

Eclipse

Eclipse Problem Overview


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)?

Eclipse Package Explorer

Eclipse Solutions


Solution 1 - Eclipse

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

Solution 2 - Eclipse

You can also install FeatureIDE plugin, which will show only short (package)name.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionKenneth BrodersenView Question on Stackoverflow
Solution 1 - EclipseBill the LizardView Answer on Stackoverflow
Solution 2 - EclipsePOOMANIView Answer on Stackoverflow