Re: How to add a pane to the Moose Panel
Posted by
Stéphane Ducasse on
Mar 18, 2018; 9:58am
URL: https://forum.world.st/How-to-add-a-pane-to-the-Moose-Panel-tp5070579p5071027.html
Hi,
Sorry for the late reply. Too many things happening.
No stress.
On Mar 14, 2018, at 4:20 PM, Stéphane Ducasse <[hidden email]> 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.
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!
--------------------------------------------
Stéphane Ducasse
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
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev