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.

Bug 244256 - Need more flexible/better APIs for Options panel Import/Export
Summary: Need more flexible/better APIs for Options panel Import/Export
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Options&Settings (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-02 16:55 UTC by KAB
Modified: 2014-05-02 16:55 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description KAB 2014-05-02 16:55:25 UTC
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).