ContainerCheckedTreeViewer [message #14402] |
Tue, 17 October 2006 00:35  |
Eclipse User |
|
|
|
Originally posted by: derek930.hotmail.com
I tried looking up some info on here about the issue i'm having with the
ContainerCheckedTreeViewer, and it seems another person had the same issue
as I am having, but no solution was truly provided. Thus, I'm going to
attempt to see if anyone else knows now. I have a
ContainerCheckedTreeViewer that I want checked items to be set right after
i set the input of the viewer. The items to be selected are not exactly
the same (pointer) items on the tree. They are objects created from info
on a database. But, the wrapper objects that are created off of the
database override the equals method and the objects within the tree are
the same type of wrapper object. So basically I have a list of objects
that are the same type of objects in the tree. Thus, I figured that the
viewer should use the equals method of the provided objects to be able to
set checked selection on the items within the tree. But, for some reason
this does not work. The only solution to why it doesn't that i've come up
with is because the fact that those items are not expanded? I may be way
off base, but I can't find the solution to why not. If anyone has some
insight or wants more info, please reply.
Thanks,
Derek
|
|
|
|
Re: ContainerCheckedTreeViewer [message #14468 is a reply to message #14438] |
Tue, 17 October 2006 11:18  |
Eclipse User |
|
|
|
Originally posted by: derek930.hotmail.com
Ok what i ended up doing was expanding the parents of the items that i
wanted checked, and then checked the now visible items. It worked great.
I'm just posting this as info to anyone else who may have the same issue.
|
|
|
Re: ContainerCheckedTreeViewer [message #566715 is a reply to message #14402] |
Tue, 17 October 2006 09:01  |
Eclipse User |
|
|
|
OK ... So i've had time to mess with it more this morning, and i'm getting
closer it seems you have to have the tree expanded, which makes sense.
The JVM may not know how to find elements that are not visible. If they
aren't visible there is nothing to match against ... i think i'm heading
the right direction in my thinking. So i'm going to attempt to make all
the parents of my selected items be set to expanded then select the items
i need.
|
|
|
Re: ContainerCheckedTreeViewer [message #566752 is a reply to message #14438] |
Tue, 17 October 2006 11:18  |
Eclipse User |
|
|
|
Ok what i ended up doing was expanding the parents of the items that i
wanted checked, and then checked the now visible items. It worked great.
I'm just posting this as info to anyone else who may have the same issue.
|
|
|
Powered by
FUDForum. Page generated in 0.15707 seconds