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.

Bug 6947 - org.openide.src.ClassElement.getSource().getCookie(EditorCookie.class) returns null
Summary: org.openide.src.ClassElement.getSource().getCookie(EditorCookie.class) return...
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC All
: P4 enhancement (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-07-03 08:28 UTC by Jan Becicka
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2000-07-03 08:28:12 UTC
To get EditorCookie following methods have to be called:

ClassElement clazz;
.
.
.
DataObject DO = (DataObject)  clazz.getSource().getCookie(DataObject.class);
EditorCookie ec=(EditorCookie)(DO.getCookie(EditorCookie.class));
Comment 1 Svata Dedic 2001-03-01 18:12:28 UTC
x
Comment 2 Svata Dedic 2001-03-01 18:13:13 UTC
Fixed -- all elements now internally delegate getCookie() to its DataObject. If the DataObject supports EditorCookie, elements will return it as well.
Comment 3 Jan Becicka 2001-04-04 14:56:35 UTC
[release32-20] Verified
Comment 4 Jan Chalupa 2001-05-05 23:25:22 UTC
Target milestone -> 3.2
Comment 5 Quality Engineering 2003-07-01 13:20:42 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.