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 168051 - Hardcoded Export/Import buttons cause problems to platform-based applications
Summary: Hardcoded Export/Import buttons cause problems to platform-based applications
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Options&Settings (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jiri Skrivanek
URL:
Keywords: VISUALVM
Depends on:
Blocks:
 
Reported: 2009-07-02 16:11 UTC by Jiri Sedlacek
Modified: 2009-07-07 10:38 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Sedlacek 2009-07-02 16:11:41 UTC
In platform 6.7 two buttons were added to the Options dialog - Import and Export. Whereas it's clearly useful for the
IDE itself, for other applications built on top of the NetBeans platform this may cause problems:

 1/ The application itself doesn't support exporting/importing the settings but the buttons cannot be removed - usability
 2/ The buttons introduce 2 new mnemonics keys which may be in conflict with existing options panel - accessibility


Since the buttons cannot be easily hidden and the mnemonics cannot be easily controlled I'm filing this as a P2 defect -
it may unintentionally break a platform-based application.

I'd suggest by default the buttons should be hidden and only shown if explicitely requested by the application - this
would ensure the options dialog behaves in a compatible way when upgrading the platform version.
Comment 1 Jiri Sedlacek 2009-07-02 16:12:38 UTC
Affects the VisualVM tool, suggesting to be fixed asap.
Comment 2 Jiri Skrivanek 2009-07-02 20:07:10 UTC
Fixed. Export/Import buttons are enabled only if something is registered in layer under OptionsExport folder.
http://hg.netbeans.org/main-silver/rev/c3653db61013
Comment 3 Marian Mirilovic 2009-07-07 09:40:51 UTC
jis,
please verify - other vice it will not be in NB 6.7.1. Thanks in advance.
Comment 4 Tomas Hurka 2009-07-07 09:47:18 UTC
Verified.
Comment 5 pgebauer 2009-07-07 10:38:08 UTC
The fix has been ported into the release67_fixes repository.
http://hg.netbeans.org/release67_fixes/rev/269fa3f42ea0