Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mdt-papyrus.dev] Fixed ids for UML Element type

Hi everyone,

 

One of the major change in oxygen is the use of references instead of String to “consume” elementtypes.

 

Basically <specializedTypesID>org.eclipse.papyrus.uml.Abstraction</specializedTypesID>

will be replaced by

    <specializedTypes xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration" href="">org.eclipse.papyrus.uml.service.types/model/uml.elementtypesconfigurations#_ScP1oVYCEeS0WsAAtVmToA"/>

in all model ( elementype, palette, new child…)

 

This change was made for good reason but one of the drawback is that we lose human readability of ids

My main concern is the loss of easy Gerrit reviews for use cases such as add an element in palette or new child.

 

I propose to replace uuid (_ScP1oVYCEeS0WsAAtVmToA) by fixed ones (Abstraction)

 

So:

<specializedTypes xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration" href="">org.eclipse.papyrus.uml.service.types/model/uml.elementtypesconfigurations#_ScP1oVYCEeS0WsAAtVmToA"/>

will become

<specializedTypes xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration" href="">org.eclipse.papyrus.uml.service.types/model/uml.elementtypesconfigurations#Abstraction "/>

 

What are your thoughts on the subject?

 

Regards,

BenoƮt

 

Full example, this

 

  <elementTypeConfigurations xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration" xmi:id="_ScP1oVYCEeS0WsAAtVmToA" identifier="org.eclipse.papyrus.uml.Abstraction" name="UML::Abstraction" hint="UML::Abstraction" editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.DependencyEditHelper">

    <iconEntry xmi:id="_ScP1olYCEeS0WsAAtVmToA" iconPath="/icons/full/obj16/Abstraction.gif" bundleId="org.eclipse.uml2.uml.edit"/>

    <eClass href="http://www.eclipse.org/uml2/5.0.0/UML#//Abstraction"/>

  </elementTypeConfigurations>

 

 

  <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_eu3zwNx0EeWVxMf7SXAfhg" identifier="org.eclipse.papyrus.umldi.Abstraction_Edge" name="Abstraction Edge" hint="Abstraction_Edge">

    <iconEntry xmi:id="_sWEXUNx2EeWVxMf7SXAfhg" iconPath="/icons/full/obj16/Abstraction.gif" bundleId="org.eclipse.uml2.uml.edit"/>

    <specializedTypes xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration" href="platform:/plugin/org.eclipse.papyrus.uml.service.types/model/uml.elementtypesconfigurations#_ScP1oVYCEeS0WsAAtVmToA"/>

  </elementTypeConfigurations>

 

will become:

 

  <elementTypeConfigurations xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration" xmi:id="Abstraction" identifier="org.eclipse.papyrus.uml.Abstraction" name="UML::Abstraction" hint="UML::Abstraction" editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.DependencyEditHelper">

    <iconEntry xmi:id="_ScP1olYCEeS0WsAAtVmToA" iconPath="/icons/full/obj16/Abstraction.gif" bundleId="org.eclipse.uml2.uml.edit"/>

    <eClass href="http://www.eclipse.org/uml2/5.0.0/UML#//Abstraction"/>

  </elementTypeConfigurations>

 

 

  <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="Abstraction_Edge" identifier="org.eclipse.papyrus.umldi.Abstraction_Edge" name="Abstraction Edge" hint="Abstraction_Edge">

    <iconEntry xmi:id="_sWEXUNx2EeWVxMf7SXAfhg" iconPath="/icons/full/obj16/Abstraction.gif" bundleId="org.eclipse.uml2.uml.edit"/>

    <specializedTypes xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration" href="platform:/plugin/org.eclipse.papyrus.uml.service.types/model/uml.elementtypesconfigurations#Abstraction"/>

  </elementTypeConfigurations>

 

 

 

 

 

 

 


Back to the top