Skip to content

Commit 0f956f6

Browse files
Icons, and property pages for «CapabilitiesType» and «TCapability»
1 parent ce51504 commit 0f956f6

File tree

105 files changed

+2349
-2207
lines changed

Some content is hidden

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

105 files changed

+2349
-2207
lines changed

ToscaDesigner/src/main/conf/module.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ profile.Automatic.description=
3030
profile.Automatic.label=Automatic
3131
profile.Tosca.description=
3232
profile.Tosca.label=Tosca
33+
propertydefinition.CapabilitiesTypePropertyPage.name.description=
34+
propertydefinition.CapabilitiesTypePropertyPage.name.label=name
3335
propertydefinition.ImportElementPropertyTable.File.description=
3436
propertydefinition.ImportElementPropertyTable.File.label=File
3537
propertydefinition.ImportElementPropertyTable.Namespace_prefix.description=
@@ -287,6 +289,7 @@ propertydefinition.TriggerTable.schedule.label=schedule
287289
propertydefinition.TriggerTable.target_filter.description=
288290
propertydefinition.TriggerTable.target_filter.label=target_filter
289291
propertypage.ToscaPropertyPage.label=ToscaAttributePage
292+
propertytable.CapabilitiesTypePropertyPage.label=CapabilitiesTypePropertyPage
290293
propertytable.ImportElementPropertyTable.label=ImportElementPropertyTable
291294
propertytable.InstanceStateTypeTable.label=InstanceStateTypeTable
292295
propertytable.NodeOperationTypeTable.label=NodeOperationTypeTable

ToscaDesigner/src/main/conf/module.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@
2626
<Stereotype name="CapabilitiesType" metaclass="Infrastructure.ModelElement" owner-stereotype="" is-hidden="false" label="%stereotype.CapabilitiesType.label" uid="37787f67-5e3f-4ce9-93fc-cc3101d5cb6f" is-abstract="false">
2727
<Icon path="res/icon/gui/capabilitiesType24.ICON.png"/>
2828
<Image path="res/icon/gui/capabilitiesType48.IMAGE.png"/>
29+
<PropertyTable id="CapabilitiesTypePropertyPage" label="%propertytable.CapabilitiesTypePropertyPage.label" uid="383dac8c-6413-4776-bb28-4277f87ea347">
30+
<PropertyDefinition id="name" label="%propertydefinition.CapabilitiesTypePropertyPage.name.label" default-value="" is-editable="true" uid="e4e6c35d-6cf7-42a3-a06c-d2932cba1eda">
31+
<TypeRef id="mref#'Text' {01a40888-0000-002a-0000-000000000000} Infrastructure.PropertyType"/>
32+
<Description>%propertydefinition.CapabilitiesTypePropertyPage.name.description</Description>
33+
</PropertyDefinition>
34+
</PropertyTable>
2935
</Stereotype>
3036
<Stereotype name="CapabilitiesType1" metaclass="Infrastructure.ModelElement" owner-stereotype="" is-hidden="false" label="%stereotype.CapabilitiesType1.label" uid="1e88dd5b-b484-4f79-a6c6-4e4180c79c4a" is-abstract="false">
3137
<Icon path=""/>

ToscaDesigner/src/main/conf/module_fr.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ profile.Automatic.description=
3030
profile.Automatic.label=Automatic
3131
profile.Tosca.description=
3232
profile.Tosca.label=Tosca
33+
propertydefinition.CapabilitiesTypePropertyPage.name.description=
34+
propertydefinition.CapabilitiesTypePropertyPage.name.label=name
3335
propertydefinition.ImportElementPropertyTable.File.description=
3436
propertydefinition.ImportElementPropertyTable.File.label=File
3537
propertydefinition.ImportElementPropertyTable.Namespace_prefix.description=
@@ -287,6 +289,7 @@ propertydefinition.TriggerTable.schedule.label=schedule
287289
propertydefinition.TriggerTable.target_filter.description=
288290
propertydefinition.TriggerTable.target_filter.label=target_filter
289291
propertypage.ToscaPropertyPage.label=ToscaAttributePage
292+
propertytable.CapabilitiesTypePropertyPage.label=CapabilitiesTypePropertyPage
290293
propertytable.ImportElementPropertyTable.label=ImportElementPropertyTable
291294
propertytable.InstanceStateTypeTable.label=InstanceStateTypeTable
292295
propertytable.NodeOperationTypeTable.label=NodeOperationTypeTable
1.31 KB
Binary file not shown.

ToscaDesigner/src/main/java/fr/softeam/toscadesigner/api/ToscaDesignerProxyFactory.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* WARNING: GENERATED FILE - DO NOT EDIT
33
* Module: ToscaDesigner v0.0.00
44
5-
* This file was generated on 09/01/2025 11:56 by Modelio Studio.
5+
* This file was generated on 09/01/2025 12:14 by Modelio Studio.
66
*/
77
package fr.softeam.toscadesigner.api;
88

@@ -126,16 +126,16 @@
126126
*/
127127
@objid ("f96166f4-8706-4930-8397-6424c7b3f767")
128128
public class ToscaDesignerProxyFactory {
129-
@objid ("94f62a44-af6f-4a41-ba7b-1e5abae43d55")
129+
@objid ("28b46dc2-a2b5-4bd1-888b-638da0fa99ee")
130130
private static final String ASSETNAME = "ToscaDesigner";
131131

132-
@objid ("e739b6e0-6305-4a7d-8a6b-cbbe5f5e85ae")
132+
@objid ("d8a9957e-b942-4b95-ac9a-9d90b174c62c")
133133
private static final InstantiateVisitor instantiateVisitor = new InstantiateVisitor();
134134

135135
/**
136136
* @param session The modeling session this factory is operating in.
137137
*/
138-
@objid ("b25251ff-b60b-478d-9607-d2e12fb2c475")
138+
@objid ("c6805870-98f6-4f0d-abb8-f1c598e71b09")
139139
public static final void initialize(final IModelingSession session) throws MdaProxyException {
140140
fr.softeam.toscadesigner.api.automatic.standard.staticdiagram.ToscaDiagram.MdaTypes.init(session);
141141
fr.softeam.toscadesigner.api.automatic.standard.staticdiagram.ServiceTemplateDiagram.MdaTypes.init(session);
@@ -241,7 +241,7 @@ public static final void initialize(final IModelingSession session) throws MdaPr
241241
* @param e A model element
242242
* @return the right proxy or <i>null</i>.
243243
*/
244-
@objid ("2f9cf443-819e-40ec-9540-66bf3be66c1a")
244+
@objid ("591667ed-380b-4eb5-8472-7a57525f6b53")
245245
public static final Object instantiate(final ModelElement e) {
246246
for (Stereotype s : e.getExtension()) {
247247
ModuleComponent module = s.getModule();
@@ -261,23 +261,23 @@ public static final Object instantiate(final ModelElement e) {
261261
* @param stName A stereotype name.
262262
* @return the right proxy or <i>null</i>.
263263
*/
264-
@objid ("1ae17543-bbae-4807-a960-9b4975872305")
264+
@objid ("eaffa4f6-1dbb-4283-8ef7-fccc7e3ddd26")
265265
public static final Object instantiate(final Element e, final String stName) {
266266
instantiateVisitor.setStereotype(stName);
267267
return e.accept(instantiateVisitor);
268268
}
269269

270-
@objid ("3012197d-d83b-48db-b25e-c638773645fa")
270+
@objid ("3fb53a6a-bd94-4cfb-8f29-597d3e8666fc")
271271
private static class InstantiateVisitor implements IDefaultModelVisitor, IDefaultInfrastructureVisitor {
272-
@objid ("aa6b4807-30ef-4660-becd-ca08e602042f")
272+
@objid ("dc863696-af86-495d-a660-7ea33ad3fdf9")
273273
private String stName;
274274

275-
@objid ("0af91db2-0990-494f-b641-2bab71702d1f")
275+
@objid ("8645b43f-54b8-40e8-8a35-667c3c5c824d")
276276
public final void setStereotype(final String stName) {
277277
this.stName = stName;
278278
}
279279

280-
@objid ("ec01f42e-a3c0-4c71-ac29-794b04d98757")
280+
@objid ("048b80df-a033-4f6d-95b4-458bf2408a04")
281281
@Override
282282
public final Object visitAssociation(Association obj) {
283283
switch (this.stName) {
@@ -290,7 +290,7 @@ public final Object visitAssociation(Association obj) {
290290

291291
}
292292

293-
@objid ("73e7c3d6-8af3-44d7-91ea-706d92ebdf71")
293+
@objid ("bffc4a4d-45fb-4dc8-ae45-f4e6a03fc372")
294294
@Override
295295
public final Object visitAttribute(Attribute obj) {
296296
switch (this.stName) {
@@ -306,7 +306,7 @@ public final Object visitAttribute(Attribute obj) {
306306

307307
}
308308

309-
@objid ("8b3a9902-f1f3-4d07-820f-a7cbf031e848")
309+
@objid ("2a45888d-2ccc-4e28-9ada-3ac4f9ad980b")
310310
@Override
311311
public final Object visitPackage(Package obj) {
312312
switch (this.stName) {
@@ -322,7 +322,7 @@ public final Object visitPackage(Package obj) {
322322

323323
}
324324

325-
@objid ("7e6e6411-c767-4e7f-aa5a-8ee511ed4767")
325+
@objid ("ddbe4661-260f-4785-b559-3a37d2d635d4")
326326
@Override
327327
public final Object visitAssociationEnd(AssociationEnd obj) {
328328
switch (this.stName) {
@@ -335,7 +335,7 @@ public final Object visitAssociationEnd(AssociationEnd obj) {
335335

336336
}
337337

338-
@objid ("3296c7ec-750f-4c74-8c2e-6a417e549cb8")
338+
@objid ("cc86e818-973c-4ec9-a4d6-9b4e34f65a95")
339339
@Override
340340
public final Object visitDataType(DataType obj) {
341341
switch (this.stName) {
@@ -349,7 +349,7 @@ public final Object visitDataType(DataType obj) {
349349

350350
}
351351

352-
@objid ("6444b84c-416f-4b57-8173-9723b9e7e4b6")
352+
@objid ("c3095130-b79c-4924-aca6-b5b4a13e4b2f")
353353
@Override
354354
public final Object visitClass(Class obj) {
355355
switch (this.stName) {
@@ -388,7 +388,7 @@ public final Object visitClass(Class obj) {
388388

389389
}
390390

391-
@objid ("15697447-82b9-4c1f-a185-85373901ecd4")
391+
@objid ("9c297da8-03d2-4e20-b527-aaf22371ae62")
392392
@Override
393393
public final Object visitStaticDiagram(StaticDiagram obj) {
394394
switch (this.stName) {
@@ -403,7 +403,7 @@ public final Object visitStaticDiagram(StaticDiagram obj) {
403403

404404
}
405405

406-
@objid ("1d74d2c2-4a2d-43c2-8899-df485dcc42c6")
406+
@objid ("62cd3d80-5217-437d-9f53-07f0925db628")
407407
@Override
408408
public final Object visitModelElement(ModelElement obj) {
409409
switch (this.stName) {
@@ -471,7 +471,7 @@ public final Object visitModelElement(ModelElement obj) {
471471
* <p>If null is returned the caller will return null.
472472
* @return the {@link IInfrastructureVisitor} visitor or <i>null</i>.
473473
*/
474-
@objid ("69dd6b87-887f-4e36-8181-688d00000d11")
474+
@objid ("984203bc-ffeb-4659-b362-b5e04144a624")
475475
@Override
476476
public IInfrastructureVisitor getInfrastructureVisitor() {
477477
return this;

ToscaDesigner/src/main/java/fr/softeam/toscadesigner/api/automatic/standard/staticdiagram/ServiceTemplateDiagram.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* WARNING: GENERATED FILE - DO NOT EDIT
33
* Module: ToscaDesigner v0.0.00
44
5-
* This file was generated on 09/01/2025 11:56 by Modelio Studio.
5+
* This file was generated on 09/01/2025 12:14 by Modelio Studio.
66
*/
77
package fr.softeam.toscadesigner.api.automatic.standard.staticdiagram;
88

@@ -40,13 +40,13 @@
4040
*/
4141
@objid ("6410d22d-7798-4501-8617-a7b9c2035a03")
4242
public class ServiceTemplateDiagram implements IMdaProxy {
43-
@objid ("5289fe57-be86-40e9-b688-7a74c8890b68")
43+
@objid ("44aa2d09-8d52-4896-84e2-cd8595bba3d1")
4444
public static final String STEREOTYPE_NAME = "ServiceTemplateDiagram";
4545

4646
/**
4747
* The underlying {@link StaticDiagram} represented by this proxy, never null.
4848
*/
49-
@objid ("9ede2dfa-6355-4a5e-b82f-78bcf101e52f")
49+
@objid ("0c75083c-48ca-459e-9cba-31a71e29501c")
5050
protected final StaticDiagram elt;
5151

5252
/**
@@ -56,7 +56,7 @@ public class ServiceTemplateDiagram implements IMdaProxy {
5656
* @param elt a model object
5757
* @return <code>true</code> if the instantiation can be carried out else <code>false</code>.
5858
*/
59-
@objid ("210bd541-d44c-47d0-b74a-a4c9167940f7")
59+
@objid ("eccb7543-dbc8-4cde-886e-d3b8faa363be")
6060
public static boolean canInstantiate(final MObject elt) {
6161
return ((elt instanceof StaticDiagram) && (ServiceTemplateDiagram.MdaTypes.STEREOTYPE_ELT!=null) && ((StaticDiagram) elt).isStereotyped(ServiceTemplateDiagram.MdaTypes.STEREOTYPE_ELT));
6262
}
@@ -66,7 +66,7 @@ public static boolean canInstantiate(final MObject elt) {
6666
*
6767
* @return a {@link ServiceTemplateDiagram} proxy on the created {@link StaticDiagram}.
6868
*/
69-
@objid ("78e50e10-777a-4d83-883b-5cd21c40df60")
69+
@objid ("d249b5c2-5d79-4c26-8203-37c04acf1ea2")
7070
public static ServiceTemplateDiagram create(final IModelingSession session) {
7171
ModelElement e = (ModelElement)session.getModel().createElement("Standard.StaticDiagram");
7272
e.getExtension().add(ServiceTemplateDiagram.MdaTypes.STEREOTYPE_ELT);
@@ -80,7 +80,7 @@ public static ServiceTemplateDiagram create(final IModelingSession session) {
8080
* @param obj a StaticDiagram
8181
* @return a {@link ServiceTemplateDiagram} proxy or <i>null</i>.
8282
*/
83-
@objid ("3a4ba9ba-c1a2-4b20-9ae7-8e5c8b439384")
83+
@objid ("6d385095-d571-4272-b93c-57fdeb5c65ee")
8484
public static ServiceTemplateDiagram instantiate(final StaticDiagram obj) {
8585
return ServiceTemplateDiagram.canInstantiate(obj) ? new ServiceTemplateDiagram(obj) : null;
8686
}
@@ -93,15 +93,15 @@ public static ServiceTemplateDiagram instantiate(final StaticDiagram obj) {
9393
* @return a {@link ServiceTemplateDiagram} proxy.
9494
* @throws IllegalArgumentException if the instantiation cannot be carried out.
9595
*/
96-
@objid ("15862046-d540-4f94-975d-1b06e5578948")
96+
@objid ("d2fb8718-87f8-4ea0-863e-11b1b494412c")
9797
public static ServiceTemplateDiagram safeInstantiate(final StaticDiagram obj) throws IllegalArgumentException {
9898
if (ServiceTemplateDiagram.canInstantiate(obj))
9999
return new ServiceTemplateDiagram(obj);
100100
else
101101
throw new IllegalArgumentException("ServiceTemplateDiagram: Cannot instantiate "+obj+": wrong element type or stereotype");
102102
}
103103

104-
@objid ("d0b088a2-d67e-4f59-a9c7-a753cd31f821")
104+
@objid ("26fcc843-2ae6-4b1c-9854-c80193b10abc")
105105
@Override
106106
public boolean equals(final Object obj) {
107107
if (this == obj) {
@@ -121,35 +121,35 @@ public boolean equals(final Object obj) {
121121
* Get the underlying {@link StaticDiagram}.
122122
* @return the StaticDiagram represented by this proxy, never null.
123123
*/
124-
@objid ("a6f7d255-b460-497b-b989-236a8f86a552")
124+
@objid ("c4a60d0d-e53b-4f2f-ad48-812771a9b53a")
125125
public StaticDiagram getElement() {
126126
return this.elt;
127127
}
128128

129-
@objid ("d6a4402d-f24d-4500-933e-72a10f7cec81")
129+
@objid ("cb0abcad-4f53-494a-bfc7-3d16fec338a2")
130130
@Override
131131
public int hashCode() {
132132
return 23 + ((this.elt == null) ? 0 : this.elt.hashCode());
133133

134134
}
135135

136-
@objid ("ccc68c40-6203-4319-b0f9-705ac834266b")
136+
@objid ("c7265750-19d2-4315-bff8-1a85de010fbb")
137137
protected ServiceTemplateDiagram(final StaticDiagram elt) {
138138
this.elt = elt;
139139
}
140140

141141
@objid ("f4f8acbe-52e0-4947-9cbf-c86b468b39dc")
142142
public static final class MdaTypes {
143-
@objid ("6a456d0e-9214-4bde-b6a9-956f5e44ca16")
143+
@objid ("141e8799-2f10-486d-a085-4f7fd1809949")
144144
public static Stereotype STEREOTYPE_ELT;
145145

146-
@objid ("bbe8d263-788c-4b5a-aef7-86a9795b3271")
146+
@objid ("652c6e65-38c8-4adb-82f6-1028b914e9e0")
147147
private static Stereotype MDAASSOCDEP;
148148

149-
@objid ("e0aef303-ad20-4b62-aa41-6181f51347c8")
149+
@objid ("94423127-4f92-4ab6-b408-e82d4c694bae")
150150
private static TagType MDAASSOCDEP_ROLE;
151151

152-
@objid ("2895c2de-c5f0-4e7f-b250-d1efbbc2240b")
152+
@objid ("9ca0b63d-26ea-4004-b1fc-a9bcc211e15a")
153153
public static void init(final IModelingSession session) throws MdaProxyException {
154154
List <MRef> missingRefs = new ArrayList<>();
155155
MRef mRef;

0 commit comments

Comments
 (0)