Sparx Systems Forum
Enterprise Architect => General Board => Topic started 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!
-
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
-
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!
-
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.
-
Hallo CJ!
Maybe it can be a good idea, to use a template with the language definitions...
Thanx!
-
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
-
a-ha!! now it worked!! ;D
Thank you very much!