Book a Demo

Author Topic: "Group Names" in Metamodel Views  (Read 6861 times)

Jayson

  • EA User
  • **
  • Posts: 363
  • Karma: +1/-0
    • View Profile
"Group Names" in Metamodel Views
« on: July 16, 2021, 06:44:29 am »
Hey all

I've been playing around with the demo Phil Chudley did for Metamodel Views and looking at the XML that is generated has me scratching my head a little.
Under the group Element there is a name Attribute. There is no mention of giving groups names anywhere that I can find in the MDG Bible.
Furthermore, I hacked the XML to give two groups different names ("Bob" and "Jane") to see what effect if any we would see and that answer seems to be none at all.

I know that Sparx does spit out a lot of Attributes that never seem to be used. Is this one of them?

Also, is it possible to have a metamodel view apply to more than one type of diagram?

Cheers

Jays :-)

<View name="Problem&amp;Cause" notes="">
   <appliesto>
      <diagrams constraint="PRCMDG::Example"/>
   </appliesto>
   <view>
      <group name="Bob" constraint="PRCMDG::Cause;"/>
                <group name="Jane" constraint="PRCMDG::Composition;"/>
   </view>
</View>

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: "Group Names" in Metamodel Views
« Reply #1 on: July 16, 2021, 04:48:02 pm »
In short, it's not used by EA at all.

From memory, at some point during the development of that feature name was going to be used to define the groups that you see in the toolbox. That didn't allow for defining the order of those groups or the order of items within the groups so the approach was abandoned in favor of using a toolbox definition for the technology itself and filtering the structure provided.