Author Topic: Customise EA12 menus with menu sets  (Read 5910 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1351
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Customise EA12 menus with menu sets
« on: August 18, 2016, 04:36:42 pm »
Hi,

I've used menu sets in Perspectives to cut down the menu content available to its users. This customization really helps new teams adopting EA as they don't get lost and confused between  features they may never use.
What I don't understand is the list of menu commands that you can hide via checkboxes. Why Sparx doesn't provide a list that matches exactly the menu tree so it's easy to check the feature that are not needed. (is it because menus always get changed between versions?).
Considering the current state of this list, is there any table that maps the current tree list with EA12.1 menus?
Here is an issue I'm having: I want to remove the ANALYZER menu for users, however I still have some features available when Execution Analysis is unticked. Having disabled all options for a menu set, I discovered that a number of features remain available. It makes sense for some features under File and Edit, but it doesn't for Analyzer, Element > Project Management, etc.

Could some leftover menus be hidden perhaps with an additional option? I looked at the userperspective XML file -> an id to each hidden feature is provided so could it be tweaked by adding additional values ?

thanks
Guillaume

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


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8061
  • Karma: +118/-20
    • View Profile
Re: Customise EA12 menus with menu sets
« Reply #1 on: August 19, 2016, 08:34:31 am »
It can't be done with menu sets.

You can manually remove the item from the customize command. Just be extra careful with that, you can also remove the customize command and lose the ability to restore it. (Without clearing the customization in the registry)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1351
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Customise EA12 menus with menu sets
« Reply #2 on: August 19, 2016, 06:13:26 pm »
Hi Simon,

Thanks for the info. It will be useful for some of my clients.
I played with this feature having deleted some menus and commands.

Can you also advise the registry location or any file where this information is maintained? I looked at the Registry under Sparx Systems but cannot find any difference after the update.

Thanks
« Last Edit: August 19, 2016, 06:32:07 pm by Guillaume »
Guillaume

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


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Customise EA12 menus with menu sets
« Reply #3 on: August 19, 2016, 07:52:17 pm »
Out of my head: there are some files under %appdata%\Sparx Systems\EA\Workspace Layouts*

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8061
  • Karma: +118/-20
    • View Profile
Re: Customise EA12 menus with menu sets
« Reply #4 on: August 22, 2016, 08:35:32 am »
Workspace layouts don't include menu changes.

If you're adventurous, look at:
HKEY_CURRENT_USER\Software\Sparx Systems\EA400\EA\EA1200Workspace

All layout customizations etc will be under there (for version 12)

Unless I'm mistaken, the main menu is
HKEY_CURRENT_USER\Software\Sparx Systems\EA400\EA\EA1200Workspace\BCGToolBar-593980

I see values named Buttons, Name and OriginalItems, but two of those are binary and I don't know the details.

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1351
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Customise EA12 menus with menu sets
« Reply #5 on: August 22, 2016, 04:28:24 pm »
Thanks for the information Simon. I can see differences in the registry when I remove menus so I have my answer :)
Guillaume

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


Paulus

  • EA User
  • **
  • Posts: 152
  • Karma: +0/-0
    • View Profile
Re: Customise EA12 menus with menu sets
« Reply #6 on: August 23, 2016, 01:21:42 am »
Hi Guillaume,

Regarding menu item ANALYZER, it can easily be removed!

You just need to drag the menu item off the main menu - while te change command dialog is open -.
The change will be saved along with the changes in the dialog once it closes.

You can create a completely customized main menu this way,

Best regards,

Paulus
« Last Edit: August 23, 2016, 01:40:16 am by Paulus »

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1351
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Customise EA12 menus with menu sets
« Reply #7 on: August 23, 2016, 03:50:52 pm »
Hi Paulus,

This is indeed what I did following Simon's comment.

Thanks,
Guillaume
Guillaume

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