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.
See issue #37806 for details. This issue should be fixed independently of that issue; it is certainly not good for the persistence ID for an editor tab to include display attributes such as the dot in the file extension, or the modified asterisk, or who knows what. The ID should be either the base name of the file, or its absolute path, etc.
OK, it would be "really good(tm)" to do it before release. Guess it is simple ;-)
I'd go for base name. What if the base name changes, do I have to fire a preferredIdChange? ;-)
Not as trivial as it seems on the first look because of DataSystems separation through Envs. Have to declare protected method and override it.
OK, fixed with API addition (protected String CES.documentID(), which is called from CloneableEditor and defaults to original behaviour (messageName()) Overriden the method from DataEditorSupport to fetch the info from DataSystems. openide/loaders/src/org/openide/text/DataEditorSupport.java,v1.12 openide/src/org/openide/text/CloneableEditor.java,v1.67 openide/src/org/openide/text/CloneableEditorSupport.java,v1.107
closed