CheckedTreeSelectionDialog [message #113801] |
Thu, 21 August 2003 09:50  |
Eclipse User |
|
|
|
Hi,
I'm trying to provide dialog using:
org.eclipse.ui.dialogs.CheckedTreeSelectionDialog
whereby the user can select elements from a tree. Th selection aspect
works fine, however I'm having problems setting the initial state of the
tree when the user returns to the dialog. I have a list of previously
checked elements, taken using:
CheckboxTreeViewer cbtv = this.getTreeViewer();
Object[] allFilters = cbtv.getCheckedElements();
However when I try and reconfigure the tree with this selection, it
doesn't seem to work:
((CheckboxTreeViewer)this.getTreeViewer()).setCheckedElement s(allFilters);
No errors, no nothing.
Any help with this frustrating problem, much appreciated.
James
|
|
|
Re: CheckedTreeSelectionDialog [message #113898 is a reply to message #113801] |
Thu, 21 August 2003 10:43  |
Eclipse User |
|
|
|
Just to add, the method below does work for the root item of the tree.
But not for any of the sub branches.
James Willans wrote:
> Hi,
> I'm trying to provide dialog using:
> org.eclipse.ui.dialogs.CheckedTreeSelectionDialog
> whereby the user can select elements from a tree. Th selection aspect
> works fine, however I'm having problems setting the initial state of the
> tree when the user returns to the dialog. I have a list of previously
> checked elements, taken using:
> CheckboxTreeViewer cbtv = this.getTreeViewer();
> Object[] allFilters = cbtv.getCheckedElements();
> However when I try and reconfigure the tree with this selection, it
> doesn't seem to work:
> ((CheckboxTreeViewer)this.getTreeViewer()).setCheckedElement s(allFilters);
> No errors, no nothing.
> Any help with this frustrating problem, much appreciated.
> James
|
|
|
Powered by
FUDForum. Page generated in 0.05495 seconds