Bug 118077 - "Compress all package" should support substitution pattern
Summary: "Compress all package" should support substitution pattern
Status: RESOLVED DUPLICATE of bug 26642
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2005-11-25 11:14 EST by Jan Matèrne CLA
Modified: 2009-04-21 03:07 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***