Skip to content

Commit 712192e

Browse files
New stereotypes added
1 parent e7db896 commit 712192e

File tree

115 files changed

+3626
-11628
lines changed

Some content is hidden

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

115 files changed

+3626
-11628
lines changed

ToscaDesigner/src/main/conf/module.properties

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,20 @@ stereotype.TDeploymentArtifact.description=
6464
stereotype.TDeploymentArtifact.label=TDeploymentArtifact
6565
stereotype.TDeploymentArtifacts.description=
6666
stereotype.TDeploymentArtifacts.label=TDeploymentArtifacts
67+
stereotype.TDocumentation.description=
68+
stereotype.TDocumentation.label=TDocumentation
69+
stereotype.TEntityTemplate.description=
70+
stereotype.TEntityTemplate.label=TEntityTemplate
6771
stereotype.TExtensibleElements.description=
6872
stereotype.TExtensibleElements.label=TExtensibleElements
6973
stereotype.TNodeTemplate.description=
7074
stereotype.TNodeTemplate.label=TNodeTemplate
7175
stereotype.TNodeType.description=
7276
stereotype.TNodeType.label=TNodeType
77+
stereotype.TPlan.description=
78+
stereotype.TPlan.label=TPlan
79+
stereotype.TPlans.description=
80+
stereotype.TPlans.label=TPlans
7381
stereotype.TPolicy.description=
7482
stereotype.TPolicy.label=TPolicy
7583
stereotype.TRelationshipTemplate.description=
@@ -95,8 +103,16 @@ stereotype.TopologyTemplateDiagram.label=TopologyTemplateDiagram
95103
stereotype.ToscaModel.description=
96104
stereotype.ToscaModel.label=ToscaModel
97105

106+
tagtype.Tag.description=
107+
tagtype.Tag.label=targetNamespace
108+
tagtype.any.description=
109+
tagtype.any.label=any
98110
tagtype.name.description=
99111
tagtype.name.label=name
112+
tagtype.state.description=
113+
tagtype.state.label=state
114+
tagtype.tags.description=
115+
tagtype.tags.label=tags
100116
tool.ArtifactTemplate.label=ArtifactTemplate
101117
tool.ArtifactTemplate.tooltip=Create an artifact Template
102118
tool.NodeTemplate.label=NodeTemplate

ToscaDesigner/src/main/conf/module.xml

Lines changed: 67 additions & 18 deletions
Large diffs are not rendered by default.

ToscaDesigner/src/main/conf/module_fr.properties

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,20 @@ stereotype.TDeploymentArtifact.description=
6464
stereotype.TDeploymentArtifact.label=TDeploymentArtifact
6565
stereotype.TDeploymentArtifacts.description=
6666
stereotype.TDeploymentArtifacts.label=TDeploymentArtifacts
67+
stereotype.TDocumentation.description=
68+
stereotype.TDocumentation.label=TDocumentation
69+
stereotype.TEntityTemplate.description=
70+
stereotype.TEntityTemplate.label=TEntityTemplate
6771
stereotype.TExtensibleElements.description=
6872
stereotype.TExtensibleElements.label=TExtensibleElements
6973
stereotype.TNodeTemplate.description=
7074
stereotype.TNodeTemplate.label=NodeTemplate
7175
stereotype.TNodeType.description=
7276
stereotype.TNodeType.label=NodeType
77+
stereotype.TPlan.description=
78+
stereotype.TPlan.label=TPlan
79+
stereotype.TPlans.description=
80+
stereotype.TPlans.label=TPlans
7381
stereotype.TPolicy.description=
7482
stereotype.TPolicy.label=TPolicy
7583
stereotype.TRelationshipTemplate.description=
@@ -95,8 +103,16 @@ stereotype.TopologyTemplateDiagram.label=TopologyTemplateDiagram
95103
stereotype.ToscaModel.description=
96104
stereotype.ToscaModel.label=ToscaModel
97105

106+
tagtype.Tag.description=
107+
tagtype.Tag.label=targetNamespace
108+
tagtype.any.description=
109+
tagtype.any.label=any
98110
tagtype.name.description=
99111
tagtype.name.label=name
112+
tagtype.state.description=
113+
tagtype.state.label=state
114+
tagtype.tags.description=
115+
tagtype.tags.label=tags
100116
tool.ArtifactTemplate.label=ArtifactTemplate
101117
tool.ArtifactTemplate.tooltip=
102118
tool.NodeTemplate.label=NodeTemplate
5.92 KB
Binary file not shown.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
package fr;
2+
3+
import java.util.List;
4+
import com.modeliosoft.modelio.javadesigner.annotations.objid;
5+
import org.modelio.api.module.IModule;
6+
import org.modelio.api.module.command.standard.DiagramCreationStandardHandler;
7+
import org.modelio.vcore.smkernel.mapi.MObject;
8+
9+
@objid ("1ca6f8a9-f91f-447a-85ec-fe406259bc82")
10+
public class CreateDiagramCommand extends DiagramCreationStandardHandler {
11+
@objid ("06b8f51d-2b5e-486f-9b15-ce9375cf1bd1")
12+
@Override
13+
public boolean accept(final List<MObject> selectedElements, final IModule module) {
14+
// Generated call to the super method will check the scope conditions defined in Studio.
15+
// Do not remove this call unless you need to take full control on the checks to be carried out.
16+
// However you can safely extends the checked conditions by adding custom code.
17+
if (super.accept(selectedElements, module) == false) {
18+
return false;
19+
}
20+
return true;
21+
}
22+
23+
@objid ("be5d3271-f668-4e2a-93df-3f1544359e80")
24+
@Override
25+
protected void postConfigureElement(final MObject newDiagram, final IModule module) {
26+
// This method is a hook called once the element is created and configured and before the transaction is committed.
27+
// The super method applies the diagram style and open the diagram is needed and should be first called in most cases.
28+
// Sub classes may redefine this method to make additional modifications.
29+
30+
// Call the super method to apply the diagram style and open the diagram if asked for.
31+
super.postConfigureElement(newDiagram, module);
32+
33+
// TODO Add additional behavior below
34+
35+
36+
}
37+
38+
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
public interface IToscaDesignerPeerModule extends IPeerModule {
88
@objid ("d8c00e1c-5e3d-46d0-8c79-bb999667b16d")
99
public static final String MODULE_NAME = "ToscaDesigner";
10-
11-
public static final String TOSCA_STYLE = "ToscaStyle";
1210

11+
@objid ("4241d814-168c-43ef-8e0c-0f4c92a4d326")
12+
public static final String TOSCA_STYLE = "ToscaStyle";
1313
}
1414

0 commit comments

Comments
 (0)