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.
Created attachment 107822 [details] Proposed patch. I would like to add a new method to the TreePathHandle that would allow to construct the TPH from the ElementHandle. Currently each node in the Java navigator keeps both TPH and EH, and TPH is used (AFAIK) only rarely and unnecessarily consumes memory. So this new method would allow to keep only the EH and construct TPH as necessary. Please see the attached patch. Thanks for the review.
Seems good to me.
Y01 Issue number in apichanges.xml is not correct.
Y01: yes, will be corrected before commit. I supposed that it will be sufficiently clear that 999999 is a placeholder, but...
http://hg.netbeans.org/jet-main/rev/d0927985d420
Integrated into 'main-golden', will be available in build *201104270000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/d0927985d420 User: Jan Lahoda <jlahoda@netbeans.org> Log: #197848: Adding TreePathHandle.from(ElementHandle).
Integrated into 'main-golden', will be available in build *201104280000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/d0927985d420 User: Jan Lahoda <jlahoda@netbeans.org> Log: #197848: Adding TreePathHandle.from(ElementHandle).