This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Currently the Import button from the Options panel doesn't fire any events for us to be able to write a custom handler for that button. Also I know we have a choice to restart or not restart after Importing, but Netbeans restart is brute force, and there is no API for us to save some settings before restarting. As a workaround, I am Importing without restart, and then forcing the user to click "OK/Apply" on the Options panel in order to save the panel settings, and then forcing the user to close the Options panel and reopen. This is a very inconvenient (and bug-prone) design. If the Netbeans platform could provide a better way for us to put custom handles on the Import button and perhaps be able to programmatically close the Import and Options dialog, that would be most appreciated (currently there only seems to be a way to only open the Options dialog for display programmatically).