Book a Demo

Author Topic: MDG - Diagram profile options not applied  (Read 7500 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
MDG - Diagram profile options not applied
« on: October 26, 2016, 08:07:31 am »
Hi,

I created an MDG Tech with a UML and Diagram profiles. In the diagram profile, I needed to hide the stereotypes so I set Features - Show stereotypes = False and Elements - Hide Element Stereotypes = True.
In the target EA project where the MDG has been imported, I created a diagram. Unfortunately the hide stereotypes properties on elements and features are not set as expected.
Is it a bug?

Thanks
Guillaume

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


Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: MDG - Diagram profile options not applied
« Reply #1 on: October 26, 2016, 10:24:28 am »
Hi,

I created an MDG Tech with a UML and Diagram profiles. In the diagram profile, I needed to hide the stereotypes so I set Features - Show stereotypes = False and Elements - Hide Element Stereotypes = True.
In the target EA project where the MDG has been imported, I created a diagram. Unfortunately the hide stereotypes properties on elements and features are not set as expected.
Is it a bug?

Thanks
Possibly, Guillaume...  I have a related anomaly.  I set a diagram type n the Templates package to have "don't show Namespace", but when I create a diagram of that type that setting was not carried through correctly.   Possibly the same code fragment may be involved?

My understanding was that if you set such properties in the Templates Package (and MDG) they would be applied when you create a new diagram.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: MDG - Diagram profile options not applied
« Reply #2 on: October 26, 2016, 01:02:09 pm »
Did you guys use the profile helper or hand roll it?

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: MDG - Diagram profile options not applied
« Reply #3 on: October 26, 2016, 04:11:46 pm »
Hi,

I used the Profile Helper and the information can be found in the generated MDG XML file:

<Apply type="Diagram_Logical">
<Property name="pdata" value="HideStereo=0;HideEStereo=1;"/>

I'll report it as a bug.

Thanks
Guillaume

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


KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: MDG - Diagram profile options not applied
« Reply #4 on: October 26, 2016, 04:45:39 pm »
Hi,

I used the Profile Helper and the information can be found in the generated MDG XML file:

<Apply type="Diagram_Logical">
<Property name="pdata" value="HideStereo=0;HideEStereo=1;"/>

I'll report it as a bug.

Thanks

The help says "HideEStereo=0; (to show element stereotypes in the diagram)" but it doesn't say "HideEStereo=1; (to hide element stereotypes in the diagram)" so it isn't necessarily the case. Try again with the property completely absent.
The Sparx Team
[email protected]

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: MDG - Diagram profile options not applied
« Reply #5 on: October 26, 2016, 05:12:36 pm »
Hi,

I used the Profile Helper and the information can be found in the generated MDG XML file:

<Apply type="Diagram_Logical">
<Property name="pdata" value="HideStereo=0;HideEStereo=1;"/>

I'll report it as a bug.

Thanks

The help says "HideEStereo=0; (to show element stereotypes in the diagram)" but it doesn't say "HideEStereo=1; (to hide element stereotypes in the diagram)" so it isn't necessarily the case. Try again with the property completely absent.
Classic EAUI?

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: MDG - Diagram profile options not applied
« Reply #6 on: November 03, 2016, 05:29:17 pm »
This has been identified as a UI bug:
Quote
In the Profile Helper, the HideStereo option is incorrectly labelled "Show Stereotypes" and therefore works the wrong way around. The option works but the expectation is wrong.
We will get this fixed.

So applying the opposite for the Features in the profile helper resolves the problem in the meantime (Elements properties work fine).
Guillaume

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