|
|
|
|
Re: EMF wizard, UML2 and package name case [message #857661 is a reply to message #857594] |
Thu, 26 April 2012 18:53 |
Ed Merks Messages: 33216 Registered: July 2009 |
Senior Member |
|
|
Ed,
Certainly with XML Schema conversion we record the original names from
the schema; they're very important for producing a conforming XML
serialization from the instances. I don't suppose the same concern
arises for UML... Or maybe it does?
On 26/04/2012 7:27 PM, Ed Willink wrote:
> Hi Ed
>
> It's not Ecore that subjective. The question is about UML names.
>
> Ecore has a clear Java-like policy.
>
> UML has its own names.
>
> There is a strong view that UML names should be preserved.
>
> There is an equally strong view that once in the Ecore/Java world, UML
> names should be converted.
>
> Regards
>
> Ed Willink
>
>
> On 26/04/2012 17:42, Ed Merks wrote:
>> Ed,
>>
>> I don't think the case conventions in Ecore are highly subjective.
>> Java has well-defined conventions and EMF follows those so best that
>> converters produce the appropriate convention just as it's best for a
>> generator should generate Java with an appropriate convention.
>>
>>
>> On 26/04/2012 3:23 PM, Ed Willink wrote:
>>> Hi
>>>
>>> Whether names should be converted is a highly subjective topic.
>>>
>>> The UML genmodel has a variety of PROCESS options for which I think
>>> this behaviour is one.
>>>
>>> Use Generator->Show Annotations to see the top level
>>> http://www.eclipse.org/emf/2002/GenModel/importer/org.eclipse.uml2.uml.ecore.importer
>>> annotations in the main editor pane.
>>>
>>> Regards
>>>
>>> Ed Willink
>>>
>>>
>>> On 26/04/2012 13:53, Patrice Bonnet wrote:
>>>> The EMF wizard from RationalRose model converts package names to
>>>> lowercase in the generated model.ecore. This respects the naming
>>>> convention of java packages.
>>>> The EMF wizard from UML2 (exported from MagicDraw) leaves the
>>>> package name case.
>>>> Can anyone explains why the EMF wizard from UML2 doesn't work like
>>>> the one from Rose ?
>>>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02641 seconds