Hi Jannik,
You can now use:
a tree
rootsExpanded.
a tree
allExpanded.
Cheers,
Doru
On 15 Jan 2010, at 03:19, Tudor Girba wrote:
Hi Jannik,
1. It is not yet possible to do that, but I created an issue:
http://code.google.com/p/moose-technology/issues/detail?id=292
2. To me it looks like it should work if the system variable points
to the root object that was affected by the change. In any case, you
do not have to do the announce dance when you want to explicitly
force an update. Just send #update to the presentation (the first
parameter of the act block).
If it does not work, I would need an executable code including the
objects. Best would be to create a dummy example with simple objects
(like it is in the GLMBasicExamples).
Cheers,
Doru
On 14 Jan 2010, at 16:59, Laval Jannik wrote:
Hi Doru,
sorry for duplicated mail.
Here is a part of my code which does not work.
=====
| browser announcer |
browser := GLMTabulator new.
announcer := Announcer new.
browser column: #versions.
browser showOn: #versions; using: [
browser tree
format:[:system | system name];
display: [:each | each orionModels select:[:om | om parentModel
= nil]];
children: [:each | each childrenModel];
act: [:each | each selection createNewChildVersion. announcer
announce: OrionModelAdded] entitled: 'create a child';
updateYourselfOn: OrionModelAdded from: [announcer];
shouldValidate: true;
registerAnnouncements.
].
^ browser
==========
Cheers,
Jannik
On Jan 14, 2010, at 16:53 , Laval Jannik wrote:
Hi Doru,
I have two questions for you about Glamour :)
- the simple one: is it possible to open a tree-pane with an
opened tree: in my case, I always use the last item of the tree,
so it is slow to open each level.
- the second one: I try to use updateYourselfOn:from: on a treePane.
In a previous version of Glamour (I don't know which one, but a
recent one), it works but it is unstable. In the latest version of
Glamour, it does not work.
In your example, this method works on a list-pane.
The question is: do you know this issue ? if no, I can try to do
an example... but maybe it is my code which does not work also...
Cheers,
---
Jannik Laval
---
--
www.tudorgirba.com
"Yesterday is a fact.
Tomorrow is a possibility.
Today is a challenge."