Game Level Editor OpenGL Plugin
Answered
I would like to use IntelliJ Platform to write a little plugin which would put an OpenGL Context JComponent/JPanel (probably using LWJGL) within the green centered area of the IDE. The idea is to be able to drag things around and change a config file accordingly. Like Android(Studio) does it with the Layout XML previews for Activities. Not sure if they use OpenGL under the hood for their solution. Thankfull for any kind of hint or existing OS plugin where to look at.

Please sign in to leave a comment.
Android support is completely open source, so you can take a peek under community/android/designer module in IJ Community sources.
For someone still trying to figure it out, I have created a sample plugin for IntelliJ platform using LWJGL here: https://github.com/PalashBansal96/intellij-gl-plugin-samples
Yes, you can embed an OpenGL context like LWJGL inside an IntelliJ plugin, but it takes some setup. Since IntelliJ uses Swing for its UI, you’ll need to use
AWTGLCanvasfrom LWJGL to render OpenGL inside aJPanelorJComponent. You can place this inside a customToolWindowor an editor tab by using the IntelliJ SDK. Just make sure your rendering runs in a separate thread and doesn’t block the UI. IntelliJ itself doesn’t use OpenGL for its layout preview, but your idea is doable with the right setup.