Hi,

I would like to build custom magritte view for a FAMIX model, however
it seems that Fame/Metanool are somehow interfering with it..

Imagine a simple model (a class with an attribute):
~~~~~~~~~~~~~~~~~~~~~~~~~~~
cls := FAMIXClass new name: 'Something'.

(attr := FAMIXAttribute new)
name: 'myAttribute';
declaredType: (FAMIXClass new name: 'OtherThing').

cls addAttribute: attr.
~~~~~~~~~~~~~~~~~~~~~~~~~~~

now I can open the magritte description
~~~~~~~~~~~~~~~~~~~~~~~~~~~
attr mooseDescription asMagritteDescription asMagritteMorph openInWindow.
~~~~~~~~~~~~~~~~~~~~~~~~~~~
However this is a meta description, which I don't want...

So second option was to build it manually; I extract descriptions that
I am interested in....
~~~~~~~~~~~~~~~~~~~~~~~~~~~
container := MAContainer new addAll: ({
attr mooseDescription at: 'name'.
attr mooseDescription at: 'declaredType'.
} collect: #asMagritteDescription).

(container asMorphOn: attr) openInWindow.
~~~~~~~~~~~~~~~~~~~~~~~~~~~

However the problem with this is, that the declaredType is presented
as TextField, which is not very useful.

So I'm kind of lost...

basically what I want to do is to have a MAContainer that contains
both the Attribute's name and #declaredType's name.

Is this possible?

Thanks,
Peter

Reply via email to