A quick Eclipse tip that will help you keep your Package Explorer view tidy: you can define abbreviations for the packages you use. Open the Preferences, go to Java / Appearances, check the box and define your abbreviations:



A quick Eclipse tip that will help you keep your Package Explorer view tidy: you can define abbreviations for the packages you use. Open the Preferences, go to Java / Appearances, check the box and define your abbreviations:



This entry was posted on February 26, 2011, 8:57 pm and is filed under General. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
Arclite theme by digitalnature | powered by WordPress
#1 by Prashanth on February 26, 2011 - 10:23 pm
Quote
I have been using the option: “Compress all package name segments, except the final segment”. You would not need to write too many lines with this option for customizing the package structure, as in “Abbreviate package names”.
Just give a pattern, like “1.” and that would give the package structure display as “o.t.annotations”, “o.t.collections” or “o.t.internal”.
#2 by Robert Kovacevic on February 27, 2011 - 2:51 am
Quote
Wow, can’t believe I haven’t thought of looking for that option before. Especially useful at work, all those “com.company” prefixes are really just wasting screen space.
Pingback: Eclipse Tip: Platzsparen mit abgekürzten Packages | MYPRO Blog
#3 by Jet on May 16, 2011 - 7:10 pm
Quote
Noce tip i was looking for exactly this
the 1. abbreviation option i snot good enuff when u need more than the last package
#4 by Robert Sharp on August 29, 2011 - 7:31 am
Quote
Great tip. I was trying to figure out how to do this but couldn’t figure it out, thanks a lot.
#5 by Tom Toews on September 6, 2011 - 6:23 pm
Quote
A great way to keep code neat and tidy. Soon we’ll be talking in ot instead of org.testing