[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Select all items in TreeViewer

Hi Tom,

yes I have to fire this myself, I simply do this via:
view.getViewer().setSelection(view.getViewer().getSelection());

.....

Thank you for your reply. Best regards, Lars


Best regards, Lars
"Tom Schindl" <tom.schindl@xxxxxxxxxxxxxxx> wrote in message 
news:fupl4c$qog$1@xxxxxxxxxxxxxxxxxxxx
> well but take care this won't fire a SelectionChanged-Event in case you 
> are using this in a selection-service, command-enabled-when expression, 
> ... .
>
> Tom
>
> Lars Vogel schrieb:
>> Hi,
>>
>> found it, sorry for this question.
>>
>> view.getViewer().getTree().deselectAll();
>> view.getViewer().getTree().selectAll();
>>
>> Best regards, Lars
>>
>
>
> -- 
> B e s t S o l u t i o n . at
> --------------------------------------------------------------------
> Tom Schindl                                          JFace-Committer
> --------------------------------------------------------------------