UML配置文件中的QuickLink未在Sparx企业架构师

时间:2016-01-08 12:02:13

标签: profile enterprise-architect

我正在尝试在Sparx Enterprise Architect的“快速链接”菜单中添加一个新项目。

我已按照EA网站上的说明操作: http://www.sparxsystems.com/enterprise_architect_user_guide/10/extending_uml_models/add_quick_linker_definition_to.html

在渴望中,我也尝试了http://www.sparxsystems.com/enterprise_architect_user_guide/10/extending_uml_models/quick_linker_example.html

中的示例的香草副本

我有一个新的配置文件,其中包含一个新的'quick'刻板印象,它扩展了元类'Class'。我添加了一个'QuickLink'人工制品并将以下条目复制到其中(来自上面的示例):

Class,quick ,,,, Component ,, Dependency ,, to,Dependency to,TRUE,TRUE,TRUE,TRUE,Component,0 ,,,,, Class,quick ,,,, Component ,, Dependency ,, from ,, Dependdency from,TRUE,TRUE,TRUE,TRUE,Component,0 ,,, TRUE ,, Class,quick,Component ,,,,,依赖性,, to,Dependency to ,, TRUE ,, TRUE,TRUE ,, 0 ,,,,, Class,quick,Component ,,,,,依赖,来自,依赖,来自,TRUE,TRUE,TRUE ,, 0 ,,, TRUE ,, Class,quick,Port ,,,,,依赖关系,, to,Dependency to ,, TRUE ,, TRUE,TRUE ,, 0 ,,,,, Class,quick,Port ,,,,,依赖,来自,依赖,来自,TRUE,TRUE,TRUE ,, 0 ,,, TRUE ,, Class,quick,Component ,,, Port ,, Dependency ,, to,Dependency to,TRUE,TRUE,TRUE,TRUE,Port,0,,TRUE ,,, Class,quick,Component ,,, Port ,, Dependency ,, from ,, Dependdency from,TRUE,TRUE,TRUE,TRUE,Port,0,TRUE,TRUE ,,

然后我保存了UML配置文件并从中生成了一个MDG。我查看了profile.xml和MDG xml文件,在这两种情况下,CSV信息都出现在我想要的QuickLink元素中:

e.g。

当我导入MDG时,我可以创建一个新图表,正确的工具箱会出现我的“快速”刻板印象。当我将它拖到图表上并尝试创建新链接时,快速链接菜单没有显示我的任何自定义。

有没有想到我在这里做这个工作?

1 个答案:

答案 0 :(得分:0)

问题似乎不是快速链接定义。我使用该定义创建了一种工作技术(下图)。

问题可能在于技术的组合方式,而不是快速链接本身。希望您可以通过将其与您的技术进行比较来了解有何不同之处。如果没有,那么发布你的技术,我会看看。

<?xml version="1.0" encoding="windows-1252"?>
<UMLProfile profiletype="uml2">
	<Documentation id="C5186393-D" name="MyProfile" version="1.0" notes="MyProfile"/>
	<Content>
		<Stereotypes>
			<Stereotype name="quick" notes="">
				<AppliesTo>
					<Apply type="Class">
						<Property name="isActive" value=""/>
					</Apply>
				</AppliesTo>
			</Stereotype>
		</Stereotypes>
		<TaggedValueTypes/>
		<QuickLink data="Class,quick,,,,Component,,Dependency,,to,,Dependency to,TRUE,TRUE,TRUE,TRUE,Component,0,,,,,&#xA;Class,quick,,,,Component,,Dependency,,from,,Dependency from,TRUE,TRUE,TRUE,TRUE,Component,0,,,TRUE,,&#xA;Class,quick,Component,,,,,Dependency,,to,Dependency to,,TRUE,,TRUE,TRUE,,0,,,,,&#xA;Class,quick,Component,,,,,Dependency,,from,Dependency from,,TRUE,,TRUE,TRUE,,0,,,TRUE,,&#xA;Class,quick,Port,,,,,Dependency,,to,Dependency to,,TRUE,,TRUE,TRUE,,0,,,,,&#xA;Class,quick,Port,,,,,Dependency,,from,Dependency from,,TRUE,,TRUE,TRUE,,0,,,TRUE,,&#xA;Class,quick,Component,,,Port,,Dependency,,to,,Dependency to,TRUE,TRUE,TRUE,TRUE,Port,0,,TRUE,,,&#xA;Class,quick,Component,,,Port,,Dependency,,from,,Dependency from,TRUE,TRUE,TRUE,TRUE,Port,0,,TRUE,TRUE,,&#xA; &#xA;&#xA;"/>
	</Content>
</UMLProfile>