|
Re: ContainerCheckedTreeViewer and setCheckedElements [message #461379 is a reply to message #461355] |
Wed, 21 September 2005 16:00 |
Eclipse User |
|
|
|
Originally posted by: morincer.gmail.com
21.09.2005 13:26:15
Keith Smillie <do.not@email.me> wrote in message
<Xns96D869F574310frunobulax@206.191.52.34>
> All,
>
> I have a ContainerCheckedTreeViewer which is showing part of the
Workbench
> via a WorkbenchContentProvider and a WorkbenchLabelProvider.
>
> The tree viewer is used to ask a user to select a number of
resources to be
> exported to a system external to Eclipse.
>
> I also have a list of Strings of filenames of 'selected' files. The
Strings
> contain the project relative path of the selected files. This list
has come
> from a system external to Eclipse.
>
> How can I initialise the tree viewer so that the selected files are
> initially checked?
>
> I have tried using the setCheckedElements() method on the tree
viewer and
> supplying an array of java.io.Files, IFile's or IResource's but
none of
> these seem to work.
>
> What kind of objects to I need to provide?
>
> I can't simply store the previous selection because only a 'live'
query to
> the external system can give me that information.
>
> Regards, Keith
You should use same objects as argument for setCheckedElements() as
you have used for data fill.
Regards,
Andrei Makaro
|
|
|
|
Powered by
FUDForum. Page generated in 0.04305 seconds