Skip to main content



      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 04:18 Go to next message
Eclipse UserFriend
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 06:07 Go to previous messageGo to next message
Eclipse UserFriend
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 03:59 Go to previous messageGo to next message
Eclipse UserFriend
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 06:51 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 00:10:55 EDT 2025

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

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

Back to the top