-
Notifications
You must be signed in to change notification settings - Fork 39
IntelliJ API Notes
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 -
- Developing Custom Language Plugins for IntelliJ IDEA
- Plugin Development FAQ
-
Development of a plug-in of IntelliJ IDEA
- (Note that this is a 7-part series, scroll to the bottom to navigate between sections.)
- IntelliJ IDEA User Interface Components
-
External system integration
- Explains creating a custom project importer.
##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);