DataEditorSupport marks up editor tabs with modified and/or r/o status according to a nontrivial algorithm, made more
complex by the possibility of disabling issue #47290. This code is duplicated in several modules which use custom editor
components, such as form (due to use of multitab) and properties (for historical reasons in the editor, and also in the
table view). A public utility method is needed to centralize the implementation.
Apologies for the lack of actual review, but was asked to get in #47290 before feature freeze. If there are any
objections or comments I can address them, at the very worst by copying the impls of the new methods into the calling
Please include a link to an example of usage.
Y01 Making "static boolean TABNAMES_HTML" final would allow the client HotSpot compiler to throw away half of the
annotateNameMethod and toolTip methods code during their compilation.
The changeset includes several examples.
Y01 - yes but then the unit test cannot change it.
I was looking for a link to the changeset. In case it is useful to others, here it is:
Integrated into 'main-golden', will be available in build *200909071104* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Jesse Glick <email@example.com>
Log: Issue #171428: centralized convenience API to compute tab label information based on data object r/o & modified status.
raccah - you can wait for a production build to incorporate a changeset, or just install