Book a Demo

Author Topic: MDG Toolbox Metadata Broken  (Read 5207 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
MDG Toolbox Metadata Broken
« on: August 04, 2009, 01:41:36 pm »
EA Help files says:

The following attributes can be added to a stereotype Class that extends the ToolboxPage metaclass:

  • imagesOnly: if you give a toolbox page an attribute named imagesOnly with Initial Value set to true, the toolbox page displays without the text labels next to the icons
  • isCommon: if you give a toolbox page an attribute named IsCommon with Initial Value set to true, the toolbox page is common to all defined toolboxes while your technology is active
  • isCollapsed: if you give a toolbox page an attribute named IsCollapsed with Initial Value set to true, the toolbox page is initially minimized.
[/i]

imagesOnly doesn't respond...
isCommon controls isCollapsed functionality
Who knows what isCollapsed does...
[Edit: (if present) it controls toolbox collapsing IF IsCommon is present & false otherwise seems to do nothing ::) - and toolbox page is collapsed]

Is it just me?

Reported,
Paolo
« Last Edit: August 04, 2009, 01:54:21 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: MDG Toolbox Metadata Broken
« Reply #1 on: August 04, 2009, 02:07:15 pm »
  • imagesOnly: You will probably find that the toolbox settings have been overridden by a user preference set when you displayed the page before setting it.  You can see this in effect in the relationships page in all built-in toolboxes.
  • isCommon: Common toolbox pages are displayed as collapsed when not in the active toolbox.  This could be clarified in the documentation, but is by design.  You can see this in effect if you specify the ICONIX technology as active.
  • isCollapsed: Controls if a page is collapsed when displayed as the active toolbox.  You may find in the current build that this wont be used because a user preference is written.  I've found an example of this in SPEM.
« Last Edit: August 04, 2009, 02:09:03 pm by simonm »

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: MDG Toolbox Metadata Broken
« Reply #2 on: August 04, 2009, 02:36:25 pm »
ImagesOnly (upper-case "I") appears to be case-sensitive. It also appears to only work the very first time it is encountered - thereafter, it is displayed the same as the previous time.
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 Toolbox Metadata Broken
« Reply #3 on: August 04, 2009, 02:59:21 pm »
Quote
ImagesOnly (upper-case "I") appears to be case-sensitive. It also appears to only work the very first time it is encountered - thereafter, it is displayed the same as the previous time.
Neil,

Can you clarify please?  I'm afraid, I can't understand what the second sentence means...

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

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: MDG Toolbox Metadata Broken
« Reply #4 on: August 04, 2009, 03:09:06 pm »
Quote
Quote
ImagesOnly (upper-case "I") appears to be case-sensitive. It also appears to only work the very first time it is encountered - thereafter, it is displayed the same as the previous time.
Neil,

Can you clarify please?  I'm afraid, I can't understand what the second sentence means...

Paolo
Say you have a toolbox which has the ImagesOnly attribute set to true. It's linked to a custom diagram type so that when you open the diagram the toolbox opens automatically. The very first time you open one of these custom diagrams, the fact that the toolbox is images only gets stored in the registry (even if you don't touch the toolbox window). So, if you then decide you want to change your toolbox profile, setting ImagesOnly to false, it won't have any effect unless you delete your toolbox preferences from the registry. I would have expected the toolbox state to be saved on using the "Show Labels"/"Hide Labels" commands, but it's saved on displaying the toolbox.
« Last Edit: August 04, 2009, 03:12:55 pm by KP »
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 Toolbox Metadata Broken
« Reply #5 on: August 04, 2009, 03:29:46 pm »
I admit I'm not having a good day today - bit of a cold but...

Quote
  • imagesOnly: You will probably find that the toolbox settings have been overridden by a user preference set when you displayed the page before setting it.  You can see this in effect in the relationships page in all built-in toolboxes.
Not sure what this means - I can see the effect of <context menu>|Show/Hide Labels - but I would have expected that "out of the box" it should behave as I specified in the MDG technology.
Quote
  • isCommon: Common toolbox pages are displayed as collapsed when not in the active toolbox.  This could be clarified in the documentation, but is by design.  You can see this in effect if you specify the ICONIX technology as active.
If this is the only toolbox in  my MDG Technology, isn't it the active toolbox?
Quote
  • isCollapsed: Controls if a page is collapsed when displayed as the active toolbox.  You may find in the current build that this wont be used because a user preference is written.  I've found an example of this in SPEM.
As above?

What happens tot he concept of active Toolbox if there's more than one MDG Technology?  I tried looking in the Help for "Active Toolbox" and found no entry.

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

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: MDG Toolbox Metadata Broken
« Reply #6 on: August 04, 2009, 05:51:23 pm »
Quote
Say you have a toolbox ...
So, if you then decide you want to change your toolbox profile, setting ImagesOnly to false, it won't have any effect unless you delete your toolbox preferences from the registry. I would have expected the toolbox state to be saved on using the "Show Labels"/"Hide Labels" commands, but it's saved on displaying the toolbox.
Thanks for that.  I now have a better understanding.

Like you , I would have expected that the registry be updated on the user commands, but it's probably related to the Toolbox Collapsing NOT Sticky "bug" I reported.

I think it's easier to just fix the registry...   :(

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

jakob

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: MDG Toolbox Metadata Broken
« Reply #7 on: August 19, 2011, 01:13:47 am »
Quote
Quote
Quote
ImagesOnly (upper-case "I") appears to be case-sensitive. It also appears to only work the very first time it is encountered - thereafter, it is displayed the same as the previous time.
Neil,

Can you clarify please?  I'm afraid, I can't understand what the second sentence means...

Paolo
Say you have a toolbox which has the ImagesOnly attribute set to true. It's linked to a custom diagram type so that when you open the diagram the toolbox opens automatically. The very first time you open one of these custom diagrams, the fact that the toolbox is images only gets stored in the registry (even if you don't touch the toolbox window). So, if you then decide you want to change your toolbox profile, setting ImagesOnly to false, it won't have any effect unless you delete your toolbox preferences from the registry. I would have expected the toolbox state to be saved on using the "Show Labels"/"Hide Labels" commands, but it's saved on displaying the toolbox.


How/where can the toolbox settings be deleted?

Edit: I found it by myself: Using regedit and navigate to HKEY_CURRENT_USER\Software\Sparx Systems\EA400\EA\Toolbox_Options

Jakob
« Last Edit: August 19, 2011, 01:16:16 am by jakob »