[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

package explorer in Eclipse

Posted on 2008-11-19
6
Medium Priority
?
1,051 Views
Last Modified: 2013-12-15
In the package explorer, the packages are listed like so:
com.mycompany.thispackage
com.mycompany.thatpackage
com.mycompany.anotherpackage
com.mycompany.stillanotherpackage

Is there a way to have it not display the com.mycompany part, such that I see this:

thispackage
thatpackage
anotherpackage
stillanotherpackage
0
Comment
Question by:allelopath
  • 3
  • 2
6 Comments
 
LVL 61

Expert Comment

by:Kevin Cross
ID: 22995204
You can make the com\mycompany folder a source folder, but believe this would be the same as if you just named your packages thispackage, thatpackage, etc.  If you still want your packages named the full com.mycompany.thispackage I believe you will have to see it displayed as such.
0
 
LVL 2

Expert Comment

by:V4Forums
ID: 23002481
I am afraid there is no direct way to hide the package name when you are in package explorer. But on the other end, you can make the package explorer show packages relevant to the task you are performing using task management tools like Mylyn which is now a integral part of eclipse.

Visit: http://tasktop.com/ for more details on Mylyn.
0
 
LVL 1

Accepted Solution

by:
allelopath earned 0 total points
ID: 23005467
Window -> Preferences ->  Java > Appearance and enable package name compression with 0 as the pattern.
0
Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

 
LVL 61

Expert Comment

by:Kevin Cross
ID: 23006667
Nice allelopath, I had never used that.  The 0 doesn't work in my test environment but think that is because I have packages of all sorts of names instead of under one consistent heirarchy; however, I tried with . or '0' and worked like a champ except those put . or ' for each level of package omitted whereas 0 is supposed to just show last level...

Very nice, sir.

Regards,
Kevin
0
 
LVL 61

Expert Comment

by:Kevin Cross
ID: 23006671
You can click on your own comment as solution by the way, so future readers can benefit from this...
0
 
LVL 2

Expert Comment

by:V4Forums
ID: 23011324
Its a nice solution allelopath. My bad, I never needed something like that option during development. Something new that I learnt. Thank You.
But if our whole intention is on more to concentrate on the task that we have currently in our hand than the codebase itself, then Mylyn is the right tool which could save lots of our time and increase our productivity in no time. Ofcourse task management is something new coming into the field but the idea is excellent and I am personally getting benefited by it on day-2-day basis.

The below link can be a great place to startwith. Trust me it more simpler to use that we would expect. :)

http://www.ibm.com/developerworks/java/library/j-mylyn1/




0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand column That will then direct you to their download page. From that p…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

591 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question