Enterprise Architect项目编程语言 [英] Enterprise Architect project programming language

查看:188
本文介绍了Enterprise Architect项目编程语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Enterprise Architect中,当我为一个类建模并指定该类的实现语言,然后在用例中使用该类的实例时,该用例中该实例的实现语言不是该类的实现语言,但它是默认值.有没有一种方法可以使Enterprise Architect使用该类的设置的实现语言作为该类的所有实例的实现语言?

In Enterprise Architect when I model a class and specify the implementation language of the class, then use an instance of the class in a use case, the implementation language of the instance in the use case is not the implementation language of the class, but is the default. Is there a way to make Enterprise Architect use the set implementation language of the class for the implementation language of all instances of that class?

推荐答案

没有使实例遵循类语言的选项(但这很好

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."

这篇关于Enterprise Architect项目编程语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆