Skip to content
Cary Robbins edited this page Jun 6, 2015 · 3 revisions

#IntelliJ API Notes

This is basically a collection of references and examples on the less documented parts of IntelliJ.

##Quick Links

If you are having a hard time figuring out how to do something, be sure you've looked through the following pages first -

##Examples

###Popups/Modals

You can use the JBPopupFactory to create a popup to interact with the user.

final JList list = new JBList(JBList.createDefaultListModel(modules.toArray()));
JBPopup popup = JBPopupFactory.getInstance()
    .createListPopupBuilder(list)
    .setTitle("Restart ghc-modi for module")
    .setItemChoosenCallback(makeModuleChoiceCallback(e, list))
    .createPopup();
popup.showCenteredInCurrentWindow(project);
Clone this wiki locally