Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » ContainerCheckedTreeViewer
ContainerCheckedTreeViewer [message #14402] Tue, 17 October 2006 04:35 Go to next message
Eclipse UserFriend
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 #14438 is a reply to message #14402] Tue, 17 October 2006 13:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: derek930.hotmail.com

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 #14468 is a reply to message #14438] Tue, 17 October 2006 15:18 Go to previous message
Eclipse UserFriend
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 13:01 Go to previous message
Derek is currently offline DerekFriend
Messages: 60
Registered: July 2009
Member
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 15:18 Go to previous message
Derek is currently offline DerekFriend
Messages: 60
Registered: July 2009
Member
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.
Previous Topic:ContainerCheckedTreeViewer
Next Topic:CTableTree limited to 2048 rows?
Goto Forum:
  


Current Time: Fri Apr 26 15:51:56 GMT 2024

Powered by FUDForum. Page generated in 0.04061 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top