LookNode does not have equals method, which will compare parameter to represente
Object. This behaviour is required by org.openide.nodes.Index --
Move[Up|Down]Action check if current node is child of its parent, and method
equals is used.
Class org.openide.node.FilterNode implements same requirement.
Created attachment 3407 [details]
Patch to fix this bug.
Changing the priority to P3. Notice that the Looks are experimental API.
I looked at the diff and I kind of don't like comparing Node to a
represented object and saying they are equal. I'll investigate the
actions and try to make LookNode with them as soon as I have time.
OK, after discussion with Libor we agreed that this bug isn't in
the LookNode but rather in the NodeProxyLook which has to provide
some special Index cookie which delegates to the IndexCookie of the
original Node and handles the comparison of nodes correctly.
If XML module needs to fix it quickly they can try to put such a
delegating IndexCookie into their's anccestor of NodeProxyLook. Should
this work well, we could move the implementation into Looks package.
Target milestone -> 3.3.1.
Moving Looks issues to dev 4.0
added keyword PROJECTS, because we need to distinguish
issues against NB4.0 and S1Sx.y
IMHO this should be considered duplicate of issue #29192 - it is not
LookNode which is broken, it is the design of the Index cookie.
*** This issue has been marked as a duplicate of 29192 ***
verified - it's duplicate.