f *Nicolai Hess
> *Sent:* Sunday, August 7, 2016 7:46 PM
> *To:* Pharo Development List <pharo-dev@lists.pharo.org>
> *Subject:* Re: [Pharo-dev] Spec TreeModel get selected items in order
>
>
>
>
>
>
>
> 2016-08-07 18:23 GMT+02:00 Nicolai Hess <nicolaih...@gmail.
Sunday, August 7, 2016 7:46 PM
To: Pharo Development List <pharo-dev@lists.pharo.org>
Subject: Re: [Pharo-dev] Spec TreeModel get selected items in order
2016-08-07 18:23 GMT+02:00 Nicolai Hess
<nicolaih...@gmail.com<mailto:nicolaih...@gmail.com>>:
2016-08-07 17:53 G
a test case for the ChangesBrowser that
tests the selection.
The problem is, that the test case selects an item by calling
#selectedItem: and the behavior is different for when this is called by the
view.
The test case just selects the "change", whereas when this is called by the
view,
earch value: self roots.
>
>
>
>self error: 'should not happen'
>
>
>
> --
>
Thanks Peter, Henrik,
yes I was afraid there is no other way.
>
>
> Best regards,
>
> Henrik
>
>
>
> *From:* Pharo-dev [ma
ro-dev] Spec TreeModel get selected items in order
Hi,
Is there a way to retrive the selected nodes of a TreeModel in the same order
they are
shown in the widget ?
For example, open this tree model, and select item 5/4/3/1
|t|
Transcript clear.
t := TreeModel new.
t beCheckList ;
autoMultiSelection: t
On Sun, Aug 07, 2016 at 04:55:05PM +0200, Nicolai Hess wrote:
> Hi,
>
> Is there a way to retrive the selected nodes of a TreeModel in the same
> order they are
> shown in the widget ?
>
> For example, open this tree model, and select item 5/4/3/1
> |t|
> Transcript clear.
> t := TreeModel new.
Hi,
Is there a way to retrive the selected nodes of a TreeModel in the same
order they are
shown in the widget ?
For example, open this tree model, and select item 5/4/3/1
|t|
Transcript clear.
t := TreeModel new.
t beCheckList ;
autoMultiSelection: true.
t roots:((1 to:10) collect:[:c |