Re: [Pharo-users] Spec > TreeModel: Updating the tree selection after a deletion

2016-08-23 Thread Offray Vladimir Luna Cárdenas
Hi Nicolai, About the rebuilding of the subwidgets, I really don't know. Maybe if I can force the highlighting I can't ignore the rebuilding issue in some way, so that's what I'm trying now and seems I'm closer. Do you know how to make a TreeNodeModel to show itself expanded? I tried with '#i

Re: [Pharo-users] Spec > TreeModel: Updating the tree selection after a deletion

2016-08-21 Thread Nicolai Hess
Hi Offrey, I think one problem is that the tree is always rebuild (on every selection?) even with self needRebuild:false tree needREbuild: false. all subwidgets of the notebook (tree and body) are removed and rebuild from changeBodys call to self buildWithSpecLayout: self class defaultSpec. I

Re: [Pharo-users] Spec > TreeModel: Updating the tree selection after a deletion

2016-08-18 Thread Offray Vladimir Luna Cárdenas
Hi all, Thanks Nicolai. Your examples helped me to advance and now I have the basic possibility to modify the tree. The two methods that did the trick are #addNode and #highlightNextitem, listed below, but I still get a MNU: receiver of "selectedMorphList is nil, anytime I try to highlight th

Re: [Pharo-users] Spec > TreeModel: Updating the tree selection after a deletion

2016-08-11 Thread Nicolai Hess
2016-08-10 21:03 GMT+02:00 Nicolai Hess : > > > 2016-08-10 20:42 GMT+02:00 Nicolai Hess : > >> >> >> 2016-08-10 19:12 GMT+02:00 Nicolai Hess : >> >>> >>> >>> 2016-08-10 19:05 GMT+02:00 Offray Vladimir Luna Cárdenas < >>> offray.l...@mutabit.com>: >>> Hi, I have been fighting with th

Re: [Pharo-users] Spec > TreeModel: Updating the tree selection after a deletion

2016-08-10 Thread Nicolai Hess
2016-08-10 20:42 GMT+02:00 Nicolai Hess : > > > 2016-08-10 19:12 GMT+02:00 Nicolai Hess : > >> >> >> 2016-08-10 19:05 GMT+02:00 Offray Vladimir Luna Cárdenas < >> offray.l...@mutabit.com>: >> >>> Hi, >>> >>> I have been fighting with this for several hours until now. I can't >>> understand how to

Re: [Pharo-users] Spec > TreeModel: Updating the tree selection after a deletion

2016-08-10 Thread Nicolai Hess
2016-08-10 19:12 GMT+02:00 Nicolai Hess : > > > 2016-08-10 19:05 GMT+02:00 Offray Vladimir Luna Cárdenas < > offray.l...@mutabit.com>: > >> Hi, >> >> I have been fighting with this for several hours until now. I can't >> understand how to manage change on selections on TreeModels with Spec, >> whi

Re: [Pharo-users] Spec > TreeModel: Updating the tree selection after a deletion

2016-08-10 Thread Nicolai Hess
2016-08-10 19:05 GMT+02:00 Offray Vladimir Luna Cárdenas < offray.l...@mutabit.com>: > Hi, > > I have been fighting with this for several hours until now. I can't > understand how to manage change on selections on TreeModels with Spec, > which is really frustrating > > Here is what I have: > >

Re: [Pharo-users] Spec > TreeModel: Updating the tree selection after a deletion

2016-08-10 Thread Offray Vladimir Luna Cárdenas
Hi, I have been fighting with this for several hours until now. I can't understand how to manage change on selections on TreeModels with Spec, which is really frustrating Here is what I have: GrafoscopioNotebook>>initializePresenter tree whenSelectedItemChanged: [ :item | s