Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 118077

Summary: "Compress all package" should support substitution pattern
Product: [Eclipse Project] JDT Reporter: Jan Matèrne <jan.materne>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert
Version: 3.1Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Jan Matèrne CLA 2005-11-25 11:14:27 EST
I read a hint [1] that I could compress the visibility of package names in the package explorer - e.g. from org.eclipse.jdt with "1." to o.e.jdt (setting in Window > Preferences > Java > Appearance > Compress all packages...)

It would be fine to specify substitution patterns
E.g.
  org.eclipse.jdt + s/org.eclipse/eclipse --> eclipse.jdt
  org.eclipse.jdt + s/*.eclipse.*/$2 --> jdt
  com.company.application.view.util + s/*.application.*/$2 --> view.util
with the ability to specify multiple patterns.

The advantage would be to compress multiple package names and substitute a long package name by a shorter meaningful name. As the 3rd example shows the more important name is not always the last package name.

Eclipse
* Version: 3.1.0
* Build id: I20050627-1435


[1] http://www.vasanth.in/PermaLink,guid,a9559474-cc61-47c4-b64d-27c6564c51ec.aspx
Comment 1 Martin Aeschlimann CLA 2005-11-28 05:57:14 EST
Nice idea. We unfortunalty won't have time for this in 3.2, so help is welcome!
Comment 2 Dani Megert CLA 2009-04-21 03:07:54 EDT

*** This bug has been marked as a duplicate of bug 26642 ***