On Mar 18, 2018, at 10:58 AM, Stéphane Ducasse
<stephane.ducasse(a)inria.fr> wrote:
On 18 Mar 2018, at 08:41, Tudor Girba <tudor(a)tudorgirba.com> wrote:
Hi,
Sorry for the late reply. Too many things happening.
No stress.
On Mar
14, 2018, at 4:20 PM, Stéphane Ducasse <stephane.ducasse(a)inria.fr> wrote:
Hi
I added a pane to gt so that when I inspect a model is get a special visualisation for
packages.
It works well.
Now I would like to do the same for the Moose Panel (I thought it was but it does not).
The Moose Finder presentations are in the GT, but not the other way around. Moose Finder
predates GT Inspector, and now it is time to retire it. So, I would not invest in Moose
Panel anymore because it offers a lesser functionality than you get with GT Inspector /
Moose Playground. If we want a subset of the functionality, we should rewrite the Moose
Finder to use the extensions from GT.
Ok
I found
the mooseFinder extensions on Object and I added one
mooseNameMetaIn: composite
<moosePresentationOrder: 1000>
(self mooseInterestingEntity packageViewIn: composite)
Now how can I control that it should only be displayed on FAMIXPackage and
FAMIXPackageGroup?
I saw that there are when clauses too.
You can use when clauses, but to distinguish between types, you should put your
extensions in the FAMIXPackage and FAMIXPackageGroup.
I thought that the when: clause was for that.
You can use when: for that, too. However, a better way to document the applicability of an
extension is to put it in the class that it is applicable to. when is a conditional, and
conditionals can be Ok for instances, but should ideally not be used for types.
mooseInterestingEntity is a mechanism through which at runtime for a collection with one
element, we get the element. This is used in Moose Finder to not have an extra pane when
there is only one element. However, this behavior seems confusing especially for
newcomers. That is why in GT Inspector we do not have that, and I think we should not use
it anymore.
Ok
Thanks!
Cheers,
Doru
Stef
--------------------------------------------
Stéphane Ducasse
http://stephane.ducasse.free.fr
http://www.synectique.eu /
http://www.pharo.org
03 59 35 87 52
Assistant: Julie Jonas
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley,
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France
_______________________________________________
Moose-dev mailing list
Moose-dev(a)list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev
--
www.tudorgirba.com
www.feenk.com
"The coherence of a trip is given by the clearness of the goal."
_______________________________________________
Moose-dev mailing list
Moose-dev(a)list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev
--------------------------------------------
Stéphane Ducasse
http://stephane.ducasse.free.fr
http://www.synectique.eu /
http://www.pharo.org
03 59 35 87 52
Assistant: Julie Jonas
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley,
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France
_______________________________________________
Moose-dev mailing list
Moose-dev(a)list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev