Automaticly adding lwjgl imports [Eclipse]

Hey, does anyone know of a way to automatically import all of lwjgl? so that you don’t have to call GL13.someMethod orGL11.someMethod etc? The only way i know of is to statically import the GL11/GL13/GL30 etc libraries. does eclipse have some way of automaticly adding these? or is there some sort of build path configuration i have missed.?

I want to do:


import static org.lwjgl.opengl.GL11.*;
public class foo {

    public foo() {
    glEnable(GL_BLEND);
    glDisableGL_DEPTH_TEST);
    }
}

without needing to type:


import static org.lwjgl.opengl.GL11.*;

FYI ctrl-shift-o doesn’t seem to work

I believe Workspace preferences > Java > Editor > Content Assist > Favorites is what you’re after. Add any packages you want automatically found via intellisense and included.

i’ve added it to favorites but i don’t get this part. what is intellisence and included mean?

ah i missread, i’m assuming you mean content assist, and it does work (sort of) it comes up with the option to staticly import it, if i hover over the error, but auto add import doesn’t seem to work. - which sort of negates the purpose, needing to manually add the import

Don’t hover over the error afterwards. Type part of the function you’re after and press Ctrl + Space to force intellisense to come up and press enter to confirm your selection. The import will be automatically added.

Ahh! thank you so much!