Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Package Explorer: Hide part of long package names?

Tags:

eclipse

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

like image 499
Kenneth Brodersen Avatar asked Oct 30 '12 15:10

Kenneth Brodersen


People also ask

How do I organize package explorer in eclipse?

The key to make it organized is to open the Package Explorer's View Menu again and enable Top Level Elements > Working Sets. Then the projects are grouped by working set visually in the package explorer.


1 Answers

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

like image 169
Bill the Lizard Avatar answered Sep 30 '22 11:09

Bill the Lizard