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.
Summary: | CloneableEditor should override preferredID() | ||
---|---|---|---|
Product: | platform | Reporter: | Jesse Glick <jglick> |
Component: | Text | Assignee: | Petr Nejedly <pnejedly> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 37806 |
Description
Jesse Glick
2003-12-09 14:24:59 UTC
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 |