Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Inner and nested classes navigation(Inner and nested classes names for java editor names.)
Inner and nested classes navigation [message #673592] Tue, 24 May 2011 08:18 Go to next message
Missing name Missing name is currently offline Missing name Missing name
Messages: 8
Registered: May 2011
Junior Member
Currently, Eclipse shows java file name in java editor title. But it would be much more useful to show class name, not file name. Let's say, I have java file with one top level class and several inner classes. And I want to open an editor for each class. It makes no sense to see only file name, because I don't remember in what file what inner class resides. To sum up: separate editor for the separate class. Is it possible to make this feature? Or is it already present or is there any plugin that makes it possible?
Re: Inner and nested classes navigation [message #673646 is a reply to message #673592] Tue, 24 May 2011 10:07 Go to previous messageGo to next message
Deepak Azad is currently offline Deepak Azad
Messages: 545
Registered: July 2009
Senior Member
On 5/24/2011 1:48 PM, forums-noreply@eclipse.org wrote:
> Currently, Eclipse shows java file name in java editor title. But it
> would be much more useful to show class name, not file name. Let's say,
> I have java file with one top level class and several inner classes. And
> I want to open an editor for each class. It makes no sense to see only
> file name, because I don't remember in what file what inner class
> resides. To sum up: separate editor for the separate class. Is it
> possible to make this feature? Or is it already present or is there any
> plugin that makes it possible?

Have you considered using the Java Breadcrumb ? (This can be enabled
from the toolbar or the context menu of the java editor)
Re: Inner and nested classes navigation [message #673928 is a reply to message #673646] Wed, 25 May 2011 07:59 Go to previous messageGo to next message
Missing name Missing name is currently offline Missing name Missing name
Messages: 8
Registered: May 2011
Junior Member
Thank you, I tried breadcrumb, but it doesn't help very much. The problem is that in Java, logical unit - class makes much more sense than physical - file. But currently it's only possible to open a tab per file, not per class. Thus if you want to quickly go back to some inner class you opened previously, you don't see its name on a tab, only public top-level class name. Therefore you have to keep in your memory, in what top level class your inner class resides. It makes much easier to open it by navigating to class rather than looking for it through the opened tabs.
Re: Inner and nested classes navigation [message #674552 is a reply to message #673928] Fri, 27 May 2011 10:51 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
On 25.05.2011 09:59, forums-noreply@eclipse.org wrote:
> Thank you, I tried breadcrumb, but it doesn't help very much. The
> problem is that in Java, logical unit - class makes much more sense
> than physical - file. But currently it's only possible to open a tab
> per file, not per class. Thus if you want to quickly go back to some
> inner class you opened previously, you don't see its name on a tab,
> only public top-level class name. Therefore you have to keep in your
> memory, in what top level class your inner class resides. It makes
> much easier to open it by navigating to class rather than looking for
> it through the opened tabs.
You don't have to look through the tabs: simply use 'Open Type'
(Ctrl+Shift+T).

Dani
Previous Topic:newbie Import cannot be resolved
Next Topic:Problems with applet Viewer in Eclipse!
Goto Forum:
  


Current Time: Tue Sep 23 02:23:04 GMT 2014

Powered by FUDForum. Page generated in 0.03295 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software