Book a Demo

Author Topic: Enable Disable fully scoped object names in the MDG Diagram Profile  (Read 3098 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Hello,

I'd like to enable the diagram property "Disable fully scoped object names" on my MDG diagrams. I cannot find this option via the Diagram Profile Helper. Is there a way to do this with a custom attribute in Diagram_Logical metaclass, or a custom value in Diagram_Logical metaclass pdata attribute?

Thanks
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Enable Disable fully scoped object names in the MDG Diagram Profile
« Reply #1 on: March 23, 2020, 09:38:45 pm »
I'm a bit out of order now, but there's  a manual way to set that in the MDG. Will look. Unless Paolo chips in since it's one of is posts that got me to that.

q.

Found it (phew). You can alter the profile by adding a tag to the diagrams like

Code: [Select]
<UML:TaggedValue tag="styleex" value="any csv like format found in t_diagram.styleEx"/>

Just alter an example diagram and see which tag is changed. This FQN switch should be NoFullScope (looked up in my Inside book). I did not verify now (see my condition above) but I used that once or twice in the past.
« Last Edit: March 23, 2020, 09:59:05 pm by qwerty »

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Enable Disable fully scoped object names in the MDG Diagram Profile
« Reply #2 on: March 24, 2020, 12:14:45 am »
Thanks for your reply.

Enabling this option adds the following in StyleEx: NoFullScope=1;

I couldn't find where to add it in the DiagramProfile which content is illustrated as follows:

Code: [Select]
<?xml version="1.0" encoding="windows-1252"?>
<UMLProfile profiletype="uml2">
<Documentation id="ABC" name="MyMDG" version="1.0" notes=""/>
<Content>
<Stereotypes>
<Stereotype name="MyMDG" notes="" cx="0" cy="0" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
<AppliesTo>
<Apply type="Diagram_Logical">
<Property name="alias" value="MyMDG"/>
<Property name="toolbox" value="MyMDG"/>
</Apply>
</AppliesTo>
</Stereotype>
</Stereotypes>
<TaggedValueTypes/>
<ViewDefinitions/>
<Metamodel/>
</Content>
</UMLProfile>
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Enable Disable fully scoped object names in the MDG Diagram Profile
« Reply #3 on: March 24, 2020, 12:51:44 am »
Right below this:
Code: [Select]
<UML:Diagram name="Patterns" xmi.id="EAID_E676028F_6846_461c_8C6C_79A824760158" diagramType="ClassDiagram" owner="EAPK_E676028F_6846_461c_8C6C_79A824760158" toolName="Enterprise Architect 2.5">
<UML:ModelElement.taggedValue>