Enterprise Architect project programming language

微笑、不失礼 提交于 2019-12-05 06:41:29

There isn't an option to make instances follow the class language (but that's a good suggestion to send to Sparx), but you can set the default language for all new elements. From your question, I take it you already know how but I'll include it for other readers.

Tools - Options - Source Code Engineering - Default Language for Code Generation is the one you're after. This option is somewhat incorrectly named; it actually sets the default language for created elements.

As long as you're modelling things for one implementation language at a time this works very well. If you're modelling for different languages and realize that you've got the wrong one in a large part of your model, you can right-click the package in the project browser and select "Code Engineering - Reset Options for this Package."

Select "Where language is" - Any, and "Convert to" the language you want. Make sure to tick "Process Child Packages."

In Enterprise Architect 12.1 I found it here:

PROJECT - Settings - Project Options - Source Code Engineering - Default Language for Code Generation

In Enterprise Architect 13.0 I found it here:

Start - Window - Show Toolbar - Code Engineering

In toolbar its first option. Second is default database. Database option is also in:

Start - Workspace - Preferences - Source Code Engineering - Code Editors

but there is not programming language.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!