File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse v3 and package Explorer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse v3 and package Explorer" Watch "Eclipse v3 and package Explorer" New topic

Eclipse v3 and package Explorer

Ranch Hand

Joined: Apr 26, 2005
Posts: 54

we are using eclipse and unless the Package Explorer pane is taking up a large amount of real estate all you can see are the package names of the class, eg Is there to only display the last meaningful package name so that the java class name can easily be seen?


Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16883

Do you mean "layout flat" vs. "layout hierarchical"? Layout is switchable off the dropdown menu attached to the inverted black triangle (rightmost control at the top of the window).

Customer surveys are for companies who didn't pay proper attention to begin with.
Ranch Hand

Joined: Apr 26, 2005
Posts: 54
No, I mean having the layout flat but removing the redundant packages, this is illustrated below:

Currently in eclipse it displays the java source prepended with their packages, eg:

But can eclipse display it as:


Steven Bell
Ranch Hand

Joined: Dec 29, 2004
Posts: 1071
To the best of my knowledge this can't be done.

Personally I have almost all my 'views' on fast view so they only take up screen space when I'm looking at them.
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
Window/Preferences/Java/Appearance/compress all package name segments

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Steven Bell
Ranch Hand

Joined: Dec 29, 2004
Posts: 1071
Learn something new everyday.
I agree. Here's the link:
subject: Eclipse v3 and package Explorer
It's not a secret anymore!