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.
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.
core-main #fb38741d5a80 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 modules.
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: http://hg.netbeans.org/core-main/rev/fb38741d5a80
Integrated into 'main-golden', will be available in build *200909071104* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/fb38741d5a80 User: Jesse Glick <jglick@netbeans.org> 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 http://wiki.netbeans.org/BrowserTools#section-BrowserTools-LinkToMercurialChangesets