Eclipse help

Hello. I recently switched from Netbeans to Eclipse after Netbeans started memory leaking like there was no tomorrow. I’ve found most of the functionality I used in Netbeans in Eclipse, but there are still a few things I don’t know how to do yet:

  • Is there a profiler for Eclipse? There was a built-in one in Netbeans. It was insanely inaccurate and weird, but it was better than nothing.
  • Can I change the stupid hotkeys? Having F11 for debug and Ctrl-F11 for run seems completely backwards to me.
  • Can I associate file types inside Eclipse? I usually write my shaders inside my IDE (in the basic text editor), but it keeps opening it with Notepad if I just double-click it.
  • Concerning shaders again, is there a GLSL plugin for Eclipse? Are there any good sites/sources for plugins?
  • I’m going crazy on how the run settings work. I have around 30 very small LWJGL test programs, and when I run them for the first time in Eclipse it creates a new run configuration that doesn’t have the natives and memory settings specified, so I have to manually add them for every program. If it was just once, then it wouldn’t have been a problem, but if I update LWJGL or something I’ll have to change them all manually. Can I set all the programs inside a project to use the same run configuration, or at least the same VM commands?

Thanks!

Yes, have a read of this tutorial.

Eclipse doesn’t come with a built in profiler atm, but you can use jvisualvm which is pretty similar to the netbeans one, it comes with the jdk and can be found in the jdk/bin folder.

Window -> Preferences -> General -> Keys

Window -> Preferences -> General -> Editors -> File Associations

Google says this: http://sourceforge.net/projects/glshaders/

Haven’t tried it myself, probably will give it a whirl soon though.

Awesome! Thanks for the responses! Will try everything out soon, but right now, I gotta BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO BENKYO!!!

EDIT: I’m too curious for my own good… Kappa, the LWJGL setup tutorial only describes how to set up the LWJGL natives path. I want to specify some VM-commands (-server, some memory and GC stuff) too… T__T

Instead of clicking Run, click Run Configurations, you’ll see a list of applications on the left, just duplicate one with the settings and change the name of the main class to the one you want to run.

Manually for 30 files…? -_-

he has a point, its annoying alright, to copy it everytime

I also thought F11 - debug was completely backwards, but I only use debug run - because then you can just change code on the fly, and it works
and if not, just dont, there is no downside
obviously changed the debug view to look nicer

Plain run is marginally faster, and it suspends the application on crash instead of terminating it.

What OS? On Windows you can put the natives in the project root. Otherwise add them to your path.

That’s one thing I like about IDEA: template settings. You set the vm args you want once, and everything you run inherits them. Once those are set, the keystroke (shift-alt-f10, which I always rebind) is like some kind of Do What I Mean button. I always grind my teeth a little going back to Eclipse run configurations (which I do because scala support is better in eclipse)