Question / Feature Suggestion: in Go To Class popop, show module?

When I have many modules configured and do "Go To --> Class..." (ctr-n for me), I don't know which module any duplicate classes are from in the pop-up choice list ... and have to spend wasted seconds figuring it out by going to each of the options until I get the right module (affecting "flow")

Is there a way around this problem? I often use multiple modules for different branches of the same code, and it hurts the most there...

If there's no preference for this, I'd like to suggest a feature: parenthetical module name statement (when there are multiple modules in the project). If you go to a class the module name is up in the title bar ... but at that point it's too late. This name could be in the pop-up where you're choosing which class to go to and this would be very helpful.

Thanks

5 comments
Comment actions Permalink

Hello Tim,

The module name is currently shown to the right (see the attached screen shot) after the package names. And if the class name you enter can't be found in a module, or you have selected the "Include non-project classes" option, it shows what library definition the class is from. As far as I know, this is the default behavior and does not need to be configured anywhere. If you have long class names and long package names, you may not see this information without scrolling over or widening your editor window.

Hope that helps.



Attachment(s):
GoToClass.png
0
Comment actions Permalink

Thanks Mark, your screen shot is exactly what I'm looking for. But see mine ....

What version are you using. I'm using IDEA 7.0.2 on JDK 1.6.0_04.

Thanks!



Attachment(s):
no-module.jpg
0
Comment actions Permalink

Hello Tim,

I'm running 7.0.3RC2 via JDK 1.6.0_04 on Windows XP. I don't think its a version thing since I know this has been present for quite some time (including in 7.0.2). I just fired up an old IDEA 5.1.2 install and confirmed that the module icons were present in the dialog in that version.

I am wondering if it is a platform variation. (And if so, is it a bug or a limitation?) What platform/OS are you running on? I don't quite recognize the look & feel of your sceenshot. You might also want to try changing your Look & Feel. (Settings | Appearance) In the past I have seen other UI quirks with some LnF's. If that doesn't do it, then I am afraid I am out of ideas and it is up to the fine folks at JetBrains to assist you.

-Mark

0
Comment actions Permalink

I'm on Linux using "IDEA 4.5 (default)" look and feel. I tried the other look and feels and no go. I guess I will live with it for now and wait to see if anyone has another idea.

I appreciate your help Mark, thanks!

0
Comment actions Permalink


Tim Freeman wrote:

When I have many modules configured and do "Go To --> Class..." (ctr-n for me), I don't know which module any duplicate classes are from in the pop-up choice list ... and have to spend wasted seconds figuring it out by going to each of the options until I get the right module (affecting "flow")

Is there a way around this problem? I often use multiple modules for different branches of the same code, and it hurts the most there...

If there's no preference for this, I'd like to suggest a feature: parenthetical module name statement (when there are multiple modules in the project). If you go to a class the module name is up in the title bar ... but at that point it's too late. This name could be in the pop-up where you're choosing which class to go to and this would be very helpful.

Thanks


Hi!
Is it IDEA 7 you are using? You can definitely see the module in the
Ctrl-n (goto class) list (see attached screenshot). I think it was also
possible in the same way with earlier versions, although not sure..



Attachment(s):
module_name_in_gotoclass_list.PNG
0

Please sign in to leave a comment.