Re: [Pharo-dev] Spec TreeModel get selected items in order

2016-08-07 Thread Nicolai Hess
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.

Re: [Pharo-dev] Spec TreeModel get selected items in order

2016-08-07 Thread Henrik Nergaard
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

Re: [Pharo-dev] Spec TreeModel get selected items in order

2016-08-07 Thread Nicolai Hess
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,

Re: [Pharo-dev] Spec TreeModel get selected items in order

2016-08-07 Thread Nicolai Hess
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

Re: [Pharo-dev] Spec TreeModel get selected items in order

2016-08-07 Thread Henrik Nergaard
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

Re: [Pharo-dev] Spec TreeModel get selected items in order

2016-08-07 Thread Peter Uhnak
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.

[Pharo-dev] Spec TreeModel get selected items in order

2016-08-07 Thread Nicolai Hess
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 |