Skip to content

Commit 698b41d

Browse files
Change base metaclass for «TCapabilityDefinition» and «TRequirementDefinition» from Attribute to Class
1 parent 154e8af commit 698b41d

File tree

125 files changed

+3039
-3578
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+3039
-3578
lines changed

ToscaDesigner/src/main/conf/module.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ command.Tosca_Model_Diagram.tooltip=
1515
group.Artifacts.label=Artifacts
1616
group.Attributes.label=Attributes
1717
group.Connectors.label=Connectors
18+
group.Constraints.label=Constraints
1819
group.Others.label=Others
1920
group.Plans.label=Plans
2021
group.Policy.label=Policy
@@ -532,6 +533,10 @@ tool.CapabilityDefinition.label=CapabilityDefinition
532533
tool.CapabilityDefinition.tooltip=CapabilityDefinition
533534
tool.CapabilityDefinitions.label=CapabilityDefinitions
534535
tool.CapabilityDefinitions.tooltip=Capabilities
536+
tool.Constraint.label=Constraint
537+
tool.Constraint.tooltip=Constraint
538+
tool.Constraints.label=Constraints
539+
tool.Constraints.tooltip=Constraints
535540
tool.DeploymentArtifact.label=DeploymentArtifact
536541
tool.DeploymentArtifact.tooltip=
537542
tool.DeploymentArtifacts.label=DeploymentArtifacts

ToscaDesigner/src/main/conf/module.xml

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
<Image path=""/>
3737
</Stereotype>
3838
<Stereotype name="ConstraintsType" metaclass="Standard.Class" owner-stereotype="" is-hidden="false" label="%stereotype.ConstraintsType.label" uid="2404a629-b23f-4c4c-be56-f244dd2e9495" is-abstract="false">
39-
<Icon path=""/>
40-
<Image path=""/>
39+
<Icon path="res/icon/gui/ConstraintsType48.ICON.png"/>
40+
<Image path="res/icon/gui/ConstraintsType48.IMAGE.png"/>
4141
</Stereotype>
4242
<Stereotype name="DefinitionType" metaclass="Infrastructure.ModelElement" owner-stereotype="mref#'' {a3041a84-a279-4c05-9425-1f7249f6cf24} Infrastructure.Stereotype" is-hidden="false" label="%stereotype.DefinitionType.label" uid="acfbb136-0cbf-4fc9-9da7-edeb0b51e9d7" is-abstract="false">
4343
<Icon path=""/>
@@ -332,7 +332,7 @@
332332
<Icon path=""/>
333333
<Image path=""/>
334334
</Stereotype>
335-
<Stereotype name="TCapabilityDefinition" metaclass="Standard.Attribute" owner-stereotype="" is-hidden="false" label="%stereotype.TCapabilityDefinition.label" uid="92f8cb40-9498-4759-9c75-6b4df72de355" is-abstract="false">
335+
<Stereotype name="TCapabilityDefinition" metaclass="Standard.Class" owner-stereotype="" is-hidden="false" label="%stereotype.TCapabilityDefinition.label" uid="92f8cb40-9498-4759-9c75-6b4df72de355" is-abstract="false">
336336
<Icon path="res/icon/gui/capabilityDefinition24.png"/>
337337
<Image path="res/icon/gui/capabilityDefinition48.png"/>
338338
<PropertyTable id="TCapabilityDefinitionTable" label="%propertytable.TCapabilityDefinitionTable.label" uid="e2b2d181-f6b2-4a51-81dc-df962e137ef2">
@@ -391,8 +391,8 @@
391391
</PropertyTable>
392392
</Stereotype>
393393
<Stereotype name="TConstraint" metaclass="Infrastructure.ModelElement" owner-stereotype="" is-hidden="false" label="%stereotype.TConstraint.label" uid="78fc63ae-0ad0-45f4-840f-4dbadc0922cb" is-abstract="false">
394-
<Icon path=""/>
395-
<Image path=""/>
394+
<Icon path="res/icon/gui/TConstraint24.ICON.png"/>
395+
<Image path="res/icon/gui/TConstraint48.IMAGE.png"/>
396396
<PropertyTable id="TConstraintTable" label="%propertytable.TConstraintTable.label" uid="a551336a-7d44-4b8b-a840-e369e91ca42d">
397397
<PropertyDefinition id="any" label="%propertydefinition.TConstraintTable.any.label" default-value="" is-editable="true" uid="919faa40-beb7-4c4d-81e3-95ffcaf681a3">
398398
<TypeRef id="mref#'Text' {01a40888-0000-002a-0000-000000000000} Infrastructure.PropertyType"/>
@@ -1025,7 +1025,7 @@
10251025
<Scope-source metaclass="Standard.Class" stereotype="ToscaDesigner#TCapabilityDefinitionsType"/>
10261026
<Handler class="Box">
10271027
<HParameter name="stereotype" value="ToscaDesigner#TCapabilityDefinition"/>
1028-
<HParameter name="metaclass" value="Standard.Attribute"/>
1028+
<HParameter name="metaclass" value="Standard.Class"/>
10291029
<HParameter name="name" value="Capability"/>
10301030
</Handler>
10311031
</Tool>
@@ -1198,6 +1198,22 @@
11981198
<HParameter name="name" value="TopologyTemplate"/>
11991199
</Handler>
12001200
</Tool>
1201+
<Tool id="Constraint" label="%tool.Constraint.label" tooltip="%tool.Constraint.tooltip" image="res/icon/gui/TConstraint.ICON.png">
1202+
<Scope-source metaclass="Infrastructure.ModelElement" stereotype=""/>
1203+
<Handler class="Box">
1204+
<HParameter name="stereotype" value="ToscaDesigner#TConstraint"/>
1205+
<HParameter name="metaclass" value="Standard.Attribute"/>
1206+
<HParameter name="name" value="Element"/>
1207+
</Handler>
1208+
</Tool>
1209+
<Tool id="Constraints" label="%tool.Constraints.label" tooltip="%tool.Constraints.tooltip" image="res/icon/gui/ConstraintsType48.IMAGE.ICON.png">
1210+
<Scope-source metaclass="Infrastructure.ModelElement" stereotype=""/>
1211+
<Handler class="Box">
1212+
<HParameter name="stereotype" value="ToscaDesigner#ConstraintsType"/>
1213+
<HParameter name="metaclass" value="Standard.Class"/>
1214+
<HParameter name="name" value="Element"/>
1215+
</Handler>
1216+
</Tool>
12011217
</Tools>
12021218
<ContextualMenu>
12031219
<CommandRef refid="Export" group="" group-image=""/>
@@ -1212,6 +1228,8 @@
12121228
<ToolRef refid="Service Template" group="%group.Services.label"/>
12131229
<ToolRef refid="Policies_Type" group="%group.Policy.label"/>
12141230
<ToolRef refid="Policy" group="%group.Policy.label"/>
1231+
<ToolRef refid="Constraint" group="%group.Constraints.label"/>
1232+
<ToolRef refid="Constraints" group="%group.Constraints.label"/>
12151233
</Palette>
12161234
<Handler class="StandardCustomizer">
12171235
<HParameter name="stereotype" value="ToscaDesigner#ToscaDiagram"/>
@@ -1228,6 +1246,8 @@
12281246
<ToolRef refid="Property_(Node_Type)" group="%group.Attributes.label"/>
12291247
<ToolRef refid="Policy" group="%group.Attributes.label"/>
12301248
<ToolRef refid="Policies_Type" group="%group.Attributes.label"/>
1249+
<ToolRef refid="Constraint" group="%group.Attributes.label"/>
1250+
<ToolRef refid="Constraints" group="%group.Attributes.label"/>
12311251
<ToolRef refid="Plans" group="%group.Plans.label"/>
12321252
<ToolRef refid="Requirements_NodeType" group="%group.Requirements.label"/>
12331253
<ToolRef refid="Requirement_NodeType" group="%group.Requirements.label"/>
@@ -1260,6 +1280,8 @@
12601280
<ToolRef refid="Property_(Node_Template)" group="%group.Attributes.label"/>
12611281
<ToolRef refid="Policy" group="%group.Attributes.label"/>
12621282
<ToolRef refid="Policies_Type" group="%group.Attributes.label"/>
1283+
<ToolRef refid="Constraint" group="%group.Attributes.label"/>
1284+
<ToolRef refid="Constraints" group="%group.Attributes.label"/>
12631285
</Palette>
12641286
<Handler class="StandardCustomizer">
12651287
<HParameter name="stereotype" value="ToscaDesigner#TopologyTemplateDiagram"/>

ToscaDesigner/src/main/conf/module_fr.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ command.Tosca_Model_Diagram.tooltip=
1515
group.Artifacts.label=Relationship_Templates
1616
group.Attributes.label=Artifact_Template
1717
group.Connectors.label=Connectors
18+
group.Constraints.label=Constraints
1819
group.Others.label=Others
1920
group.Plans.label=Plans
2021
group.Policy.label=Policy
@@ -532,6 +533,10 @@ tool.CapabilityDefinition.label=CapabilityDefinition
532533
tool.CapabilityDefinition.tooltip=
533534
tool.CapabilityDefinitions.label=CapabilityDefinition
534535
tool.CapabilityDefinitions.tooltip=
536+
tool.Constraint.label=Constraint
537+
tool.Constraint.tooltip=
538+
tool.Constraints.label=Constraints
539+
tool.Constraints.tooltip=
535540
tool.DeploymentArtifact.label=DeploymentArtifact
536541
tool.DeploymentArtifact.tooltip=
537542
tool.DeploymentArtifacts.label=DeploymentArtifacts
618 Bytes
Loading
128 Bytes
Loading

ToscaDesigner/src/main/conf/res/icon/gui/svg/ConstraintsType.svg

Lines changed: 24 additions & 6 deletions
Loading

ToscaDesigner/src/main/conf/res/icon/gui/svg/TConstraint.svg

Lines changed: 8 additions & 2 deletions
Loading
-262 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)