Custom Module Settings Wizard Step: Radio Buttons? File Picker with Dropdown?

I'm developing a plugin that adds https://crystal-lang.org support for IntelliJ, and in the Wizard for module creation I want them to pick between `app` and `lib` via Radio Buttons and be able to choose a Crystal executable from a file picker or dropdown, where the dropdown contains the executable found by `which crystal`.

This should be at the top and take up the full width, but I don't really use Swing, so what do I do to make something like this?

I'll post an image of how it could look soon.

0
1 comment

I'd recommend using the Form Builder (https://www.jetbrains.com/help/idea/creating-and-opening-forms.html), so that you can compose the UI visually and then bind it to the rest of the Wizard code.  The Form Builder will allow you to set constraints on the JComponents.

Off topic, but if you haven't already made the parser for Crystal it's going to be "fun" because Ruby's parentheses free calling and do block is a right PITA to get correct, but you're in luck, I made the Elixir plugin (https://github.com/KronicDeth/intellij-elixir), so I've already figured out how to make a Ruby-like syntax (https://github.com/KronicDeth/intellij-elixir/blob/master/src/org/elixir_lang/Elixir.bnf) using Grammar Kit (https://github.com/JetBrains/Grammar-Kit).  If you want help with grammar or anything else with more immediate feedback, there's a Gitter for us plugin developers (https://gitter.im/IntelliJ-Plugin-Developers/Lobby).  I'm @KronicDeth on there.

0

Please sign in to leave a comment.