Does jMP or Netbeans has java browser like Eclipse?
Picture of what I am talking about,
And about the SceneExplorer itself xD ?
Ctrl+7 brings up the Navigator which lets you view your class in various ways.
The Project view in Netbeans is like the Projects view in Eclipse.
There’s also no doubt some plugins that give you other views as well.
Theres a member browser etc, yeah. You can browse the libraries of one project using the “Libraries” node.
Sorry to dig this old corpse out of its grave, but…
I too am looking for a Types-browser similar to the one in the first pic of the op.
I used to work with Visual Studio (2010 or so) in my last games job and they had something even better: it showed an overview of all C++ classes in their equivalent to the ‘Projects’ explorer - you could toggle between files (.h .cpp etc.) and classes view - it listed all classes in a project (which is a ‘solution’ in VS terms) and typing a letter key on the keyboard brought you to the class beginning with this letter. So knowing the name of the class or being able to view all class names often saved me a lot of time.
I’m asking this, because I’m spending a lot of time looking for classes in jME SDK - and even leaving all files open doesn’t help much, because in order to hold the number of .java files low, I’m often using one .java file as a namespace which has sometimes 10 or 20 classes / interfaces inside as public static class or public static interface.
Of course you can click your way around and call “find Usage” and then there is the (wonderful) “Hierarchy” view which you can open via [Alt]+[Shift]+[F12]. But there’s room for improvement.
I’ve made a quick search for this, but all said “use the Navigator” - which is a nice tool if you’ve found the right .java file already. But it’s not what I’m looking for (see explanation above).
If anybody knows how to achieve what I want - please tell about it…
If you want to find your classes easily there a “Go to type” feature.
Depending of the keymap scheme you use :
- Eclipse : Ctrl + Shift + T
- Emacs : Ctrl + O
- Idea / Netbeans : Ctrl + N
- Netbeans 5.5 : Alt + Shift + O
Okay, tried this in jMP / jME3.0 SDK - with these results:
[Ctrl]+[N] → create [N]ew file (actually all file templates that are known - very cool hokey!)
[Alt]+[Shift]+[O] → search for file → quite cool, but doesn’t solve my problem
Obviously it seems like they assume that in Java everybody uses one file per class / interface. But I often declare an empty class and call it “StructLikeClassesStuff.java” and then have 10 or more interfaces and classes in this .java file which serves as a namespace only. Don’t know if this is better than having 10x times the number of .java files and also having only about 20 to 200 lines of code in each file. I like my current coding style more than I like having many .java files, but don’t know what’s better.
But thanks, for those cases when I do follow the usual convention, this [Alt]+[Shift]+[O] is really nice help! :chimpanzee_amused:
EDIT: there are advantages of my coding style for the workflow - just the tool I need is missing. Seems like this is one of the rare cases where the recent version of Visual Studio for C++ outperforms NetBeans for Java (and maybe even Eclipse). I remember times when VS didn’t even have refactoring but Eclipse had it - some fellow students even tried to make their own IDE because of this missing feature… hehe
Just for note,
you can code whatever you want ( I don’t care if I dont pay you), but note, that usually you only do one class per file in java, so most IDE’s/tools are not designed to work with your coding style.
The most notable exeption being files you don’t want visible in other scopes, like hidden internal stuff.
Thanks for your advice. Still need to learn a lot.
Now I’m thinking about refactoring my code, but ~100 .java files would become ~400 .java files.
And I need to get used to the idea of having 5x30 lines of code instead of 1x150 lines of code.
Btw I’m using this hidden internal stuff too - you’re probably right, that this is the intended use for inner classes.