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: | EditorCookie should inform that it is going to be invalid | ||
---|---|---|---|
Product: | platform | Reporter: | Svata Dedic <sdedic> |
Component: | Text | Assignee: | David Konecny <dkonecny> |
Status: | VERIFIED DUPLICATE | ||
Severity: | blocker | CC: | jglick, jtulach |
Priority: | P3 | Keywords: | API |
Version: | 3.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 23762 |
Description
Svata Dedic
2001-10-04 13:07:11 UTC
I am setting milestone to 4.0 because this does not seem trivial to do compatibly--for one thing, EditorCookie is an interface so either it would need to be changed, or we make e.g. EditorCookie.Stateful or something a subinterface. Anyway, move back to 3.4 (I guess not 3.3) if you disagree. I have noticed for a long time that CloneableEditorSupport has methods add/removeChangeListener but these are not in EditorCookie! In practice I have found these methods necessary for all sorts of purposes. So if you build some support based on an EditorCookie you need to cast it to CloneableEditorSupport in order to find out about document reloads and similar things. Re. Svata's requests--(1) I think if a data object is invalidated (is this what you are talking about?) then stateChanged should be fired from to change listeners; (2) if there is no DataObject/SaveCookie, what precisely does "modified/unmodified" mean? It has to be related to something outside the editor document itself IMHO. Reassign to new owner of openide/editor reassigne to David K., new owner of editor I think I just implemented this one. *** This issue has been marked as a duplicate of 31101 *** verified - it's duplicate. |