|Extracting name and type for class attributes [message #625883]
||Wed, 04 August 2010 20:27
Originally posted by: harrisb.ociweb.com|
UML2Tools allows the name of class attributes (properties) as entered by
the user to be of the form “<Name> : <Type>”. This allows the user, for
example, to name an attribute “size: Integer” and the attribute will
have name “size” and type “Integer”. This avoids the need to set the
type in the property sheet.
I'd like to find out how this is done so I can do the same thing for a
GMF diagram I'm developing. However, I'm not having much look reverse
engineering this from org.eclipse.uml2.diagram.def. The best I can tell
the GMF editor pattern in the mapping for the property node isn't being
used, nor is there a custom parser for the name label being defined in
the GMF generator model.
Could somebody point me to where “<Name> : <Type>” is parsed into the
name and the type of the attribute?
Powered by FUDForum
. Page generated in 0.01535 seconds