Monday, 08 February 2021 14:38

How to Set the Default Language for a New Model Repository

Written by
Rate this item
(3 votes)

How to Set the Default Language for a New Model Repository


written by Phil Chudley, Principle Consultant at Dunstan Thomas Consulting

A question I am asked quite often is "how can set the default language to a new repository, other than Java".

As far as I know there is no global EA prefernce to acheive this, so most EA users would

  1. Create a new local repository
  2. Make the Code Engineering toolbar visible if not already visible
  3. Change the language to <none>, or some language other than Java

I tend to use the language setting of <none>, this article describes a method of acheiving the objective of having a default language other than Java preset for all future new local repositories.


EA iis installed by default into the directory C:\Program Files (x86)\Sparx Systems and in this folder are three repositories all named EABase. Theses three repositories are for *.eap,*.eapx and *.feap repositories. When a new local repository is created one of these EABase repositoriesis copied into the user folder and renamed according to the name entered by the user.

To set a default language, we siimply:

  1. Open a EABase repository in EA
  2. Change the Code Engineering language to your preference
  3. Close EA

Sounds simple? But there's a catch, since the EABase repositories are located C:\Program Files (x86)\Sparx Systems they cannot be opend for writing in EA!

No problem:

  1. Copy all three EABase repositories to a directory of your choice
  2. Open one of these repositories in EA
  3. Set the Code Engineering language to your preference
  4. Repeat steps 2 and 3 for the remaining 2 EABase repositories
  5. Copy the three EABase repositories back to C:\Program Files (x86)\Sparx Systems Please note, you will need to have Adminstrator privilege to do this

Now, whenever a new local repository is created it will have the Code Engineering language that you set in the steps above.


I hope you find the above a useful trick, but there is more you can do with this trick. As the EABase repositories are copied to form your new local repository, then here are some additional changes that you might like to make to the EABase repositories:

  1. Modify any General Types like Status, Priority
  2. Create a default structure other than just a Model Root Node
  3. Import useful resources such as scripts, documentation templates

In fact anyhthing that is repository based that you wish to include as standard in all your new local repositories.

Yes, the only condition of this working is that you must have Adminstrator privilege to achieve the copy back to C:\Program Files (x86)\Sparx Systems (or know someone who has got Adminstrator privilege for your workstation / lapto), but it is a useful trick to know,

Phil Chudley

Principle Consultant

Dunstan Thomas Consulting

follow me on Twiter @SparxEAGuru



Read 2275 times Last modified on Monday, 22 February 2021 23:29
Login to post comments