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.
[recent sources] Consider an OptionsPanelController, that shows some sub-panels, for example FolderBasedController in options.editor. Such composite controller can implement the setCurrentSubcategory method for itself (to select the correct sub-panel), but cannot pass the remainder of the selection path to the sub-panel, as the setCurrentSubcategory is protected (and FolderBasedController is not in the same runtime package). A usecase for this are Java hints: for each Java hint, there should be an option to configure the hint, which should open the Options dialog and pre-select the correct hint. Possible solutions include creating a new public final method in OptionsPanelController, that would delegate to setCurrentSubcategory.
Created attachment 142606 [details] proposed fix Added new public final method in OptionsPanelController that merely delegates to OptionspanelController.setCurrentSubcategory method.
Please review this simple change. Thank you
Created attachment 142607 [details] proposed fix updating also options.editor dependency and spec version
If there are no comments I am planning to integrate tomorrow. Thank you
Changeset: 1f8c27433957 Author: Theofanis Oikonomou <theofanis@netbeans.org> Date: 2013-12-03 10:45 Message:
Integrated into 'main-silver', will be available in build *201312040002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/1f8c27433957 User: Theofanis Oikonomou <theofanis@netbeans.org> Log: Task #180821 - setCurrentSubcategory not friendly to composite controllers