.gmfmap nodes mapping for multiple concrete supertypes [message #206341] |
Tue, 23 September 2008 00:07 |
Jevon Messages: 164 Registered: July 2009 |
Senior Member |
|
|
Hello,
I am working on a model where the root element contains an abstract
type, which is then later subclassed into concrete elements:
- Root
- children: Element
- abstract Element
- Page <- Element
- Form <- Element
When trying to generate the .gmfmap for this model, the wizard struggles
to list all possible Nodes because of the abstract elements, and I think
it only selects the first concrete element to map in the .gmfmap.
The solution in this case, I think, is to then edit the .gmfmap manually
and add the other concrete classes and adding OCL constraints (such as
"not self.oclIsTypeOf(Page)" to separate the different mappings into the
different references.
My question is: can the wizard be extended to provide this functionality
automatically? i.e. provide, in the list of Nodes/Edges, a list of all
possible concrete types that will address this need, rather than just
the first one it finds. It is a bit of a confusing stumbling block.
Jevon
|
|
|
|
Powered by
FUDForum. Page generated in 0.03262 seconds