Sparx Systems Forum

Discussion => Uml Process => Topic started by: skywave on September 27, 2017, 07:56:00 pm

Title: How to change default programming language?
Post by: skywave on September 27, 2017, 07:56:00 pm
Hello
In EA Class Diagram, When I Drag new Class to diagram and want to Insert attributes, The default programming language is Java, So the data type of Java is the only choices in combo box, But I want C# data types and since I couldnt choose C# as default for new classes, I have to change program language for every class which I m dragging.
How can I change the default?
Title: Re: How to change default programming language?
Post by: Geert Bellekens on September 27, 2017, 08:02:53 pm
In V13:

Configure | Model | Options | Source Code Engineering | Default Language for Code Generation

Geert
Title: Re: How to change default programming language?
Post by: philchudley on October 03, 2017, 07:24:11 pm
In addition to what Geert has suggested you can make the Code Generation Toolbar visible:

1) From the Start Ribbon select the Preferences drop down and select Customize from the menu
2) Select Toolbars
3) Check Code Generation

Select C# from the drop down in the Code Generation Toolbar

Phil

Title: Re: How to change default programming language?
Post by: skywave on October 11, 2017, 10:34:42 pm
Thanks Phil

In addition to what Geert has suggested you can make the Code Generation Toolbar visible:

1) From the Start Ribbon select the Preferences drop down and select Customize from the menu
2) Select Toolbars
3) Check Code Generation

Select C# from the drop down in the Code Generation Toolbar

Phil
Title: Re: How to change default programming language?
Post by: Dermot on October 16, 2017, 11:52:36 am
If you have already set a batch of these and want to quickly change them, there is the option to convert the Language for a package of elements. See:
http://www.sparxsystems.com/enterprise_architect_user_guide/13.5/model_domains/resetoptions.html