Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Extracting name and type for class attributes
Extracting name and type for class attributes [message #625883] Wed, 04 August 2010 20:27
Eclipse User
Originally posted by: harrisb.ociweb.com

Hi,

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?

Thanks,
Byron
Previous Topic:tagged value
Next Topic:Extracting name and type for class attributes
Goto Forum:
  


Current Time: Thu Oct 23 04:06:41 GMT 2014

Powered by FUDForum. Page generated in 0.02248 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software