Book a Demo

Author Topic: Language templates  (Read 2975 times)

GaryB

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Language templates
« on: December 20, 2006, 01:08:51 pm »
I created a rudimentary language template for Javascript and now I want to export it for another model.  How can I do that?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Language templates
« Reply #1 on: December 20, 2006, 01:24:52 pm »
The simplest way is to export both the templates and the datatypes to reference data (http://www.sparxsystems.com.au/EAUserGuide/index.html?importexportrefdata.htm)  Select 'Javascript_Code_Template' and 'Model Data Types - Code and DDL'.

You can also go a bit further and create an MDG technology that contains those two things and more.  (See http://www.sparxsystems.com/EAUserGuide/index.html?creatingmdgtechnologies.htm)  By doing this you not only bundle templates and datatypes together, but you have the option of including profiles, patterns, transforms and best of all, options like the default extension to use when generating javascript.  (See http://www.sparxsystems.com/EAUserGuide/index.html?addingcodemodulesinmdgtec.htm)