【问题标题】:QuickLink in UML Profile not displaying in Sparx enterprise ArchitectSparx 企业架构师中未显示 UML 配置文件中的 QuickLink
【发布时间】:2017-11-06 22:32:34
【问题描述】:

我正在尝试在 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的示例的香草副本

我有一个新的配置文件,其中包含一个新的“快速”原型,它扩展了元类“类”。我添加了一个“QuickLink”人工制品并将以下条目复制到其中(来自上面的示例):

Class,quick,,,,Component,,Dependency,,to,,Dependency to,TRUE,TRUE,TRUE,TRUE,Component,0,,,,, Class,quick,,,,Component,,Dependency,,from,,Dependency from,TRUE,TRUE,TRUE,TRUE,Component,0,,,TRUE,, Class,quick,Component,,,,,Dependency,,to,Dependency to,,TRUE,,TRUE,TRUE,,0,,,,,, Class,quick,Component,,,,,Dependency,,from,Dependency from,,TRUE,,TRUE,TRUE,,0,,,TRUE,, Class,quick,Port,,,,,Dependency,,to,Dependency to,,TRUE,,TRUE,TRUE,,0,,,,,, Class,quick,Port,,,,,Dependency,,from,Dependency from,,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,,Dependency from,TRUE,TRUE,TRUE,TRUE,Port,0,,TRUE,TRUE,,

然后我保存了 UML 配置文件并从中生成了一个 MDG。我查看了 profile.xml 和 MDG xml 文件,在这两种情况下,CSV 信息都会按照我在 QuickLink 元素中的预期显示:

例如

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

有什么我想在这里完成这项工作的吗?

【问题讨论】:

    标签: profile enterprise-architect


    【解决方案1】:

    问题似乎不是快速链接器定义。我已经使用该定义(如下)创建了一种可行的技术。

    问题可能出在技术的组合方式上,而不是快速链接本身。希望通过将其与您的技术进行比较,您可以看到有什么不同。如果没有,请发布您的技术,我会看看。

    <?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>

    【讨论】:

      猜你喜欢
      • 2011-09-03
      • 1970-01-01
      • 2018-07-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多