Author Topic: Customising EA Menus (and removing unwanted items)  (Read 4603 times)

ZuluTen

  • EA User
  • **
  • Posts: 56
  • Karma: +0/-0
    • View Profile
Customising EA Menus (and removing unwanted items)
« on: July 30, 2014, 07:10:07 pm »
I would like to customise the Enterprise Architect GUI so that the user is presented with only the menu items which they need to perform their job, and is not bemused and confused by the myriad of other features which the application offers, but which are superfluous to that user.

I have successfully got my Add In working and appearing in the MainMenu>Extensions>MyAddIn area of the EA Main Menu.

Unfortunately, according to Sparx it is not possible to modify the Main Meni to remove (irrelevent to my user) entries such as 'Project' and 'Analyzer' so, unless anyone out there knows differently I shall have to reluctantly live with them. Though I can't believe that I'm the only developer who would like to modify EA in this way...

What I have found is a second choice workaround using the View>Workspaces and Commands window to uncheck all the Menu Options which I don't want to display to my user.

I have also noticed that once the settings are manually ticked/unticked as appropriate, the resulting combination of choices may be saved as a Command Set where I had assumed that it becomes absorbed as part of the .eap file.

That idea was quashed when I found that opening an instance of EA without a project loaded provides the previously chosen combination, which makes me wonder where they (Sparx) have hidden it.

Does anyone know where the Command Set is stored? And whether it is then feasible to re-load it programatically as part of a fresh installation?

Many thanks in advance for any help received...

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Customising EA Menus (and removing unwanted it
« Reply #1 on: July 30, 2014, 08:45:13 pm »
I believe the selection of your workspaces and commands is stored in the registry.
Look somewhere at HKEY_CURRENT_USER\Software\Sparx Systems\EA400\EA\EA1100Workspace
So yes, you can copy those values into the registry when installing your add-in.

Geert

ZuluTen

  • EA User
  • **
  • Posts: 56
  • Karma: +0/-0
    • View Profile
Re: Customising EA Menus (and removing unwanted it
« Reply #2 on: July 30, 2014, 09:21:18 pm »
Ah ha! Thank you very much for pointing me in the right direction.

Within the depths of Workspace (\\EA1100Workspace\BCGToolBar-593980\) I've found two fairly large keys: “Buttons” and “Original Items”which appear to carry the details of all buttons appearing on the Main Menu and within each of its drop down sub-menus.

I wonder what damage I can do by playing with the contents of those two keys...
...having taken a back up of the Registry first, obviously!