Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: ms_butterfly on September 12, 2004, 04:24:05 am

Title: Exporting new languages to other projects
Post by: ms_butterfly on September 12, 2004, 04:24:05 am
Hallo all!
I still haven't given up of generating C code with EA...
So I thought maybe I could configure C as a new language...
I have added it as a new product, and my colleagues will configure the templates. But there is a problem: I couldn't find an option to export this definition to other projects. If I define a complete new language, is it possible to use it only in 1 project?? Can't I export it?
Thanx, g'day!
Title: Re: Exporting new languages to other projects
Post by: mbc on September 12, 2004, 05:24:15 am
I did a search for "export code templates" of the forum for you and came up with this topic:

http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.cgi?board=general;action=display;num=1088585851;start=1#1

Mikkel
Title: Re: Exporting new languages to other projects
Post by: ms_butterfly on September 12, 2004, 06:39:55 am
Thank you very much  ;D
but it does not automatically add the language...  :-[

I need a way to add automatically in the Code Templates Editor the language I have created in another project...do you think it is possible?

thanx!
Title: Re: Exporting new languages to other projects
Post by: CJ on September 12, 2004, 07:12:01 am
G'day,

I haven't tried this:

How about:
- create a new project B, based on the one ( project A) with the new language specs;
- in project B, get rid of whatever got copied from project A;
- export project C (the one you want to setup the new language in) and import into project B.

Title: Re: Exporting new languages to other projects
Post by: ms_butterfly on September 12, 2004, 08:08:51 am
Hallo CJ!
Maybe it can be a good idea, to use a template with the language definitions...
Thanx!
Title: Re: Exporting new languages to other projects
Post by: Eve on September 12, 2004, 06:14:40 pm
Hi,

The definition of the new language is done by defining the datatypes for the language.  That is what allows you to create templates for the new language.

Then in Tools, Export Reference Data you need to select not just the <langName>_Code_Template but also the "Model Data Types - Code and DDL".

The latter contains what EA considers the language definition, the former is any code templates defined for your language.

Simon
Title: Re: Exporting new languages to other projects
Post by: ms_butterfly on September 14, 2004, 07:45:53 am
a-ha!! now it worked!!  ;D

Thank you very much!