Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratischenko2015-12-14 12:12:35 +0000
committerGerrit Code Review @ Eclipse.org2015-12-14 14:38:36 +0000
commit4e5d60fe35f36400265700b7cdf50494c6065849 (patch)
tree4d3ae954662ea9911618ae6b4cc89fb9f0f58b54 /plugins/uml
parent5056e895d4a5efc0e7ad2981ac1c635f21d91ff7 (diff)
downloadorg.eclipse.papyrus-4e5d60fe35f36400265700b7cdf50494c6065849.tar.gz
org.eclipse.papyrus-4e5d60fe35f36400265700b7cdf50494c6065849.tar.xz
org.eclipse.papyrus-4e5d60fe35f36400265700b7cdf50494c6065849.zip
Bug 484308 - A custom templates invocation should be registered in a
gmfgen Change-Id: I71f27f405f12907d8ba708ee0029fb53f3305297 Signed-off-by: atischenko <tischenko@montages.com>
Diffstat (limited to 'plugins/uml')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/model/activityDiagram.gmfgen10
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/model/classdiagram.gmfgen12
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication/model/communicationdiagram.gmfgen10
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/model/ComponentDiagram.gmfgen117
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/model/compositediagram.gmfgen9
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram.gmfgen10
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile/model/profilediagram.gmfgen46
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/model/sequenceDiagram.gmfgen10
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/model/stateMachineDiagram.gmfgen18
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.timing/model/timingdiagram.gmfgen11
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/models/usecaseDiagram.gmfgen10
11 files changed, 220 insertions, 43 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/model/activityDiagram.gmfgen b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/model/activityDiagram.gmfgen
index 77dc5d544d6..cd20934765a 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/model/activityDiagram.gmfgen
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/model/activityDiagram.gmfgen
@@ -21041,6 +21041,16 @@
<items
xsi:type="gmfgen:LoadResourceAction"/>
</contextMenus>
+ <extensions
+ name="Custom templates"
+ rootInput="PapyrusUMLActivityDiagram">
+ <invocations
+ xsi:type="gmfgen:GenTemplateInvocation"
+ description="VisualTypeProvider"
+ templateFqn="aspects::xpt::providers::VisualTypeProvider::VisualTypeProvider"
+ inputs="/0/@extensions.0"
+ oclExpression="self.diagram"/>
+ </extensions>
</gmfgen:GenEditorGenerator>
<papyrusgmfgenextension:PapyrusExtensionRootNode
comment="Papyrus Extensions">
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/model/classdiagram.gmfgen b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/model/classdiagram.gmfgen
index 52c1418c988..d0b796fc1cf 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/model/classdiagram.gmfgen
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/model/classdiagram.gmfgen
@@ -1115,7 +1115,7 @@
compartments="/0/@diagram/@compartments.39"
graphicalNodeEditPolicyClassName="RedefinableTemplateSignatureGraphicalNodeEditPolicy"
createCommandClassName="RedefinableTemplateSignatureCreateCommand"
- containers="/0/@diagram/@topLevelNodes.7 /0/@diagram/@childNodes.32 /0/@diagram/@childNodes.27 /0/@diagram/@childNodes.30 /0/@diagram/@childNodes.26 /0/@diagram/@topLevelNodes.5 /0/@diagram/@topLevelNodes.13 /0/@diagram/@childNodes.25 /0/@diagram/@childNodes.34 /0/@diagram/@topLevelNodes.6 /0/@diagram/@topLevelNodes.9 /0/@diagram/@childNodes.28 /0/@diagram/@topLevelNodes.11 /0/@diagram/@topLevelNodes.4"
+ containers="/0/@diagram/@topLevelNodes.7 /0/@diagram/@childNodes.32 /0/@diagram/@childNodes.27 /0/@diagram/@childNodes.30 /0/@diagram/@childNodes.26 /0/@diagram/@topLevelNodes.5 /0/@diagram/@topLevelNodes.13 /0/@diagram/@childNodes.25 /0/@diagram/@childNodes.34 /0/@diagram/@topLevelNodes.6 /0/@diagram/@topLevelNodes.9 /0/@diagram/@childNodes.28 /0/@diagram/@topLevelNodes.11 /0/@diagram/@topLevelNodes.4 /0/@diagram/@childNodes.29 /0/@diagram/@childNodes.33 /0/@diagram/@topLevelNodes.8 /0/@diagram/@topLevelNodes.12"
preferredSideName="EAST">
<diagramRunTimeClass
href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
@@ -8878,6 +8878,16 @@
xsi:type="gmfgen:LoadResourceAction"
qualifiedClassName="org.eclipse.papyrus.uml.diagram.clazz.part.LoadResourceAction"/>
</contextMenus>
+ <extensions
+ name="Custom templates"
+ rootInput="PapyrusUMLClassDiagram">
+ <invocations
+ xsi:type="gmfgen:GenTemplateInvocation"
+ description="VisualTypeProvider"
+ templateFqn="aspects::xpt::providers::VisualTypeProvider::VisualTypeProvider"
+ inputs="/0/@extensions.0"
+ oclExpression="self.diagram"/>
+ </extensions>
</gmfgen:GenEditorGenerator>
<papyrusgmfgenextension:PapyrusExtensionRootNode
comment="&quot;Required Comment&quot;">
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication/model/communicationdiagram.gmfgen b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication/model/communicationdiagram.gmfgen
index f362dc95940..bedf7141610 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication/model/communicationdiagram.gmfgen
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication/model/communicationdiagram.gmfgen
@@ -1067,6 +1067,16 @@
uses="/0/@diagram/@topLevelNodes.1/@labels.0/@modelFacet"
qualifiedName="org.eclipse.papyrus.uml.diagram.common.parser.ShortcutDiagramParser"/>
</labelParsers>
+ <extensions
+ name="Custom templates"
+ rootInput="PapyrusUMLCommunicationDiagram">
+ <invocations
+ xsi:type="gmfgen:GenTemplateInvocation"
+ description="VisualTypeProvider"
+ templateFqn="aspects::xpt::providers::VisualTypeProvider::VisualTypeProvider"
+ inputs="/0/@extensions.0"
+ oclExpression="self.diagram"/>
+ </extensions>
</gmfgen:GenEditorGenerator>
<papyrusgmfgenextension:PapyrusExtensionRootNode
comment="Papyrus specific extension for GMFGen">
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/model/ComponentDiagram.gmfgen b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/model/ComponentDiagram.gmfgen
index 8624ab4485b..7d7023adc20 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/model/ComponentDiagram.gmfgen
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/model/ComponentDiagram.gmfgen
@@ -1956,22 +1956,50 @@
<targetMetaFeature
href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Dependency/supplier"/>
</modelFacet>
- <labels visualID="6016" editPartClassName="UsageNameEditPart" itemSemanticEditPolicyClassName="UsageNameItemSemanticEditPolicy">
- <diagramRunTimeClass href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap xsi:type="gmfgen:ParentAssignedViewmap" getterName="getNameLabel" figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
- <attributes xsi:type="gmfgen:LabelOffsetAttributes" y="60"/>
+ <labels
+ visualID="6016"
+ editPartClassName="UsageNameEditPart"
+ itemSemanticEditPolicyClassName="UsageNameItemSemanticEditPolicy">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
+ <attributes
+ xsi:type="gmfgen:LabelOffsetAttributes"
+ y="60"/>
</viewmap>
- <modelFacet xsi:type="gmfgen:FeatureLabelModelFacet" parser="/0/@labelParsers/@implementations.0" viewPattern="">
- <metaFeatures href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0"
+ viewPattern="">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
</modelFacet>
</labels>
- <labels visualID="6017" editPartClassName="UsageAppliedStereotypeEditPart" itemSemanticEditPolicyClassName="UsageAppliedStereotypeItemSemanticEditPolicy">
- <diagramRunTimeClass href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap xsi:type="gmfgen:ParentAssignedViewmap" getterName="getAppliedStereotypeLabel" figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
- <attributes xsi:type="gmfgen:LabelOffsetAttributes" y="30"/>
+ <labels
+ visualID="6017"
+ editPartClassName="UsageAppliedStereotypeEditPart"
+ itemSemanticEditPolicyClassName="UsageAppliedStereotypeItemSemanticEditPolicy">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getAppliedStereotypeLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
+ <attributes
+ xsi:type="gmfgen:LabelOffsetAttributes"
+ y="30"/>
</viewmap>
- <modelFacet xsi:type="gmfgen:FeatureLabelModelFacet" parser="/0/@labelParsers/@implementations.2" viewPattern="&lt;&lt;{0}>>" editorPattern="&lt;&lt;{0}>>" editPattern="&lt;&lt;{0}>>">
- <metaFeatures href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.2"
+ viewPattern="&lt;&lt;{0}>>"
+ editorPattern="&lt;&lt;{0}>>"
+ editPattern="&lt;&lt;{0}>>">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
</modelFacet>
</labels>
<creationConstraints
@@ -2024,22 +2052,49 @@
<targetMetaFeature
href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/InterfaceRealization/contract"/>
</modelFacet>
- <labels visualID="6010" editPartClassName="InterfaceRealizationNameEditPart" itemSemanticEditPolicyClassName="InterfaceRealizationNameItemSemanticEditPolicy">
- <diagramRunTimeClass href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap xsi:type="gmfgen:ParentAssignedViewmap" getterName="getNameLabel" figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
- <attributes xsi:type="gmfgen:LabelOffsetAttributes" y="60"/>
+ <labels
+ visualID="6010"
+ editPartClassName="InterfaceRealizationNameEditPart"
+ itemSemanticEditPolicyClassName="InterfaceRealizationNameItemSemanticEditPolicy">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
+ <attributes
+ xsi:type="gmfgen:LabelOffsetAttributes"
+ y="60"/>
</viewmap>
- <modelFacet xsi:type="gmfgen:FeatureLabelModelFacet" parser="/0/@labelParsers/@implementations.0">
- <metaFeatures href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
</modelFacet>
</labels>
- <labels visualID="6011" editPartClassName="InterfaceRealizationAppliedStereotypeEditPart" itemSemanticEditPolicyClassName="InterfaceRealizationAppliedStereotypeEditPartItemSemanticEditPolicy">
- <diagramRunTimeClass href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap xsi:type="gmfgen:ParentAssignedViewmap" getterName="getAppliedStereotypeLabel" figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
- <attributes xsi:type="gmfgen:LabelOffsetAttributes" y="30"/>
+ <labels
+ visualID="6011"
+ editPartClassName="InterfaceRealizationAppliedStereotypeEditPart"
+ itemSemanticEditPolicyClassName="InterfaceRealizationAppliedStereotypeEditPartItemSemanticEditPolicy">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getAppliedStereotypeLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
+ <attributes
+ xsi:type="gmfgen:LabelOffsetAttributes"
+ y="30"/>
</viewmap>
- <modelFacet xsi:type="gmfgen:FeatureLabelModelFacet" parser="/0/@labelParsers/@implementations.2" viewPattern="&lt;&lt;{0}>>" editorPattern="&lt;&lt;{0}>>" editPattern="&lt;&lt;{0}>>">
- <metaFeatures href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.2"
+ viewPattern="&lt;&lt;{0}>>"
+ editorPattern="&lt;&lt;{0}>>"
+ editPattern="&lt;&lt;{0}>>">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
</modelFacet>
</labels>
<creationConstraints
@@ -3426,8 +3481,8 @@
qualifiedName="org.eclipse.papyrus.uml.diagram.common.parser.CommentParser"/>
<implementations
xsi:type="gmfgen:CustomParser"
- uses="/0/@diagram/@links.2/@labels.0/@modelFacet /0/@diagram/@links.4/@labels.1/@modelFacet /0/@diagram/@links.3/@labels.1/@modelFacet /0/@diagram/@links.5/@labels.1/@modelFacet /0/@diagram/@links.10/@labels.1/@modelFacet /0/@diagram/@childNodes.0/@labels.1/@modelFacet /0/@diagram/@links.13/@labels.0/@modelFacet /0/@diagram/@links.6/@labels.1/@modelFacet /0/@diagram/@links.0/@labels.1/@modelFacet /0/@diagram/@links.1/@labels.1/@modelFacet"
- qualifiedName="org.eclipse.papyrus.uml.diagram.common.parser.stereotype.AppliedStereotypeParser"/>
+ uses="/0/@diagram/@links.2/@labels.0/@modelFacet /0/@diagram/@links.4/@labels.1/@modelFacet /0/@diagram/@links.3/@labels.1/@modelFacet /0/@diagram/@links.5/@labels.1/@modelFacet /0/@diagram/@links.10/@labels.1/@modelFacet /0/@diagram/@childNodes.0/@labels.1/@modelFacet /0/@diagram/@links.13/@labels.0/@modelFacet /0/@diagram/@links.6/@labels.1/@modelFacet /0/@diagram/@links.0/@labels.1/@modelFacet /0/@diagram/@links.1/@labels.1/@modelFacet"
+ qualifiedName="org.eclipse.papyrus.uml.diagram.common.parser.stereotype.AppliedStereotypeParser"/>
<implementations
xsi:type="gmfgen:CustomParser"
uses="/0/@diagram/@topLevelNodes.6/@labels.1/@modelFacet /0/@diagram/@childNodes.7/@labels.1/@modelFacet"
@@ -3438,6 +3493,16 @@
<items
xsi:type="gmfgen:LoadResourceAction"/>
</contextMenus>
+ <extensions
+ name="Custom templates"
+ rootInput="PapyrusUMLComponentDiagram">
+ <invocations
+ xsi:type="gmfgen:GenTemplateInvocation"
+ description="VisualTypeProvider"
+ templateFqn="aspects::xpt::providers::VisualTypeProvider::VisualTypeProvider"
+ inputs="/0/@extensions.0"
+ oclExpression="self.diagram"/>
+ </extensions>
</gmfgen:GenEditorGenerator>
<papyrusgmfgenextension:PapyrusExtensionRootNode
comment="Papyrus specific extension for GMFGen">
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/model/compositediagram.gmfgen b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/model/compositediagram.gmfgen
index 5ae574ee7c0..cc2fad86891 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/model/compositediagram.gmfgen
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/model/compositediagram.gmfgen
@@ -8188,6 +8188,15 @@
<contextMenus context="/0/@diagram">
<items xsi:type="gmfgen:LoadResourceAction" />
</contextMenus>
+ <extensions
+ name="Custom templates"
+ rootInput="CompositeStructure">
+ <invocations xsi:type="gmfgen:GenTemplateInvocation"
+ description="VisualTypeProvider"
+ templateFqn="aspects::xpt::providers::VisualTypeProvider::VisualTypeProvider"
+ inputs="/0/@extensions.0"
+ oclExpression="self.diagram"/>
+ </extensions>
</gmfgen:GenEditorGenerator>
<papyrusgmfgenextension:PapyrusExtensionRootNode
comment="Papyrus specific extension for GMFGen">
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram.gmfgen b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram.gmfgen
index 8ad34684b0b..9d763a94cec 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram.gmfgen
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram.gmfgen
@@ -3612,6 +3612,16 @@
<items
xsi:type="gmfgen:LoadResourceAction"/>
</contextMenus>
+ <extensions
+ name="Custom templates"
+ rootInput="PapyrusUMLDeploymentDiagram">
+ <invocations
+ xsi:type="gmfgen:GenTemplateInvocation"
+ description="VisualTypeProvider"
+ templateFqn="aspects::xpt::providers::VisualTypeProvider::VisualTypeProvider"
+ inputs="/0/@extensions.0"
+ oclExpression="self.diagram"/>
+ </extensions>
</gmfgen:GenEditorGenerator>
<papyrusgmfgenextension:PapyrusExtensionRootNode
comment="Papyrus specific extension for GMFGen">
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile/model/profilediagram.gmfgen b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile/model/profilediagram.gmfgen
index 3fc5b4d5ac3..99cc3967bd8 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile/model/profilediagram.gmfgen
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile/model/profilediagram.gmfgen
@@ -2860,21 +2860,33 @@
<metaFeature
href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Constraint/context"/>
</modelFacet>
- <labels visualID="8501"
- editPartClassName="ContextLinkAppliedStereotypeEditPart" readOnly="true">
- <diagramRunTimeClass href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getAppliedStereotypeLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
- <attributes xsi:type="gmfgen:LabelOffsetAttributes" y="60"/>
- </viewmap>
- <behaviour
+ <labels
+ visualID="8501"
+ editPartClassName="ContextLinkAppliedStereotypeEditPart"
+ readOnly="true">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getAppliedStereotypeLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
+ <attributes
+ xsi:type="gmfgen:LabelOffsetAttributes"
+ y="60"/>
+ </viewmap>
+ <behaviour
xsi:type="gmfgen:CustomBehaviour"
key="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY"
editPolicyQualifiedClassName="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.NoSemanticParserEditPolicy"/>
- <modelFacet xsi:type="gmfgen:FeatureLabelModelFacet" parser="/0/@labelParsers/@implementations.1" viewPattern="&lt;&lt;{0}>>" editorPattern="&lt;&lt;{0}>>" editPattern="&lt;&lt;{0}>>">
- <metaFeatures href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.1"
+ viewPattern="&lt;&lt;{0}>>"
+ editorPattern="&lt;&lt;{0}>>"
+ editPattern="&lt;&lt;{0}>>">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
</labels>
</links>
<compartments
@@ -3701,6 +3713,16 @@
<items
xsi:type="gmfgen:LoadResourceAction"/>
</contextMenus>
+ <extensions
+ name="Custom templates"
+ rootInput="PapyrusUMLProfileDiagram">
+ <invocations
+ xsi:type="gmfgen:GenTemplateInvocation"
+ description="VisualTypeProvider"
+ templateFqn="aspects::xpt::providers::VisualTypeProvider::VisualTypeProvider"
+ inputs="/0/@extensions.0"
+ oclExpression="self.diagram"/>
+ </extensions>
</gmfgen:GenEditorGenerator>
<papyrusgmfgenextension:PapyrusExtensionRootNode
comment="Papyrus specific extension for GMFGen">
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/model/sequenceDiagram.gmfgen b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/model/sequenceDiagram.gmfgen
index 765a764ca65..93ef814995f 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/model/sequenceDiagram.gmfgen
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/model/sequenceDiagram.gmfgen
@@ -7466,6 +7466,16 @@
<items
xsi:type="gmfgen:LoadResourceAction"/>
</contextMenus>
+ <extensions
+ name="Custom templates"
+ rootInput="PapyrusUMLSequenceDiagram">
+ <invocations
+ xsi:type="gmfgen:GenTemplateInvocation"
+ description="VisualTypeProvider"
+ templateFqn="aspects::xpt::providers::VisualTypeProvider::VisualTypeProvider"
+ inputs="/0/@extensions.0"
+ oclExpression="self.diagram"/>
+ </extensions>
</gmfgen:GenEditorGenerator>
<papyrusgmfgenextension:PapyrusExtensionRootNode>
<extensionNodes
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/model/stateMachineDiagram.gmfgen b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/model/stateMachineDiagram.gmfgen
index 7b15b6961a5..8d69b67087d 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/model/stateMachineDiagram.gmfgen
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/model/stateMachineDiagram.gmfgen
@@ -2302,10 +2302,10 @@
xsi:type="gmfgen:CustomBehaviour"
key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.statemachine.custom.policies.CustomStateMachineDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CREATION_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.statemachine.custom.policies.CustomStateMachineCompartmentCreationEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CREATION_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.statemachine.custom.policies.CustomStateMachineCompartmentCreationEditPolicy"/>
</compartments>
<compartments
visualID="6002"
@@ -2738,6 +2738,16 @@
<items
xsi:type="gmfgen:LoadResourceAction"/>
</contextMenus>
+ <extensions
+ name="Custom templates"
+ rootInput="PapyrusUMLStateMachineDiagram">
+ <invocations
+ xsi:type="gmfgen:GenTemplateInvocation"
+ description="VisualTypeProvider"
+ templateFqn="aspects::xpt::providers::VisualTypeProvider::VisualTypeProvider"
+ inputs="/0/@extensions.0"
+ oclExpression="self.diagram"/>
+ </extensions>
</gmfgen:GenEditorGenerator>
<papyrusgmfgenextension:PapyrusExtensionRootNode
comment="Papyrus specific extension for GMFGen">
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.timing/model/timingdiagram.gmfgen b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.timing/model/timingdiagram.gmfgen
index ca2f0d1b726..f2b4555dd8c 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.timing/model/timingdiagram.gmfgen
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.timing/model/timingdiagram.gmfgen
@@ -2247,6 +2247,17 @@
uses="/0/@diagram/@links.0/@labels.1/@modelFacet /0/@diagram/@links.4/@labels.1/@modelFacet /0/@diagram/@links.3/@labels.1/@modelFacet /0/@diagram/@links.2/@labels.1/@modelFacet /0/@diagram/@links.1/@labels.1/@modelFacet /0/@diagram/@links.5/@labels.1/@modelFacet /0/@diagram/@links.6/@labels.1/@modelFacet /0/@diagram/@childNodes.4/@labels.1/@modelFacet /0/@diagram/@childNodes.5/@labels.1/@modelFacet /0/@diagram/@childNodes.2/@labels.0/@modelFacet /0/@diagram/@childNodes.16/@labels.1/@modelFacet /0/@diagram/@childNodes.3/@labels.1/@modelFacet /0/@diagram/@childNodes.8/@labels.1/@modelFacet /0/@diagram/@childNodes.9/@labels.1/@modelFacet"
qualifiedName="org.eclipse.papyrus.uml.diagram.common.parser.stereotype.AppliedStereotypeParser"/>
</labelParsers>
+ <extensions
+ name="Custom templates">
+ <rootInput
+ href="../../org.eclipse.papyrus.uml.diagram.activity/model/activityDiagram.gmfgen#PapyrusUMLActivityDiagram"/>
+ <invocations
+ xsi:type="gmfgen:GenTemplateInvocation"
+ description="VisualTypeProvider"
+ templateFqn="aspects::xpt::providers::VisualTypeProvider::VisualTypeProvider"
+ inputs="/0/@extensions.0"
+ oclExpression="self.diagram"/>
+ </extensions>
</gmfgen:GenEditorGenerator>
<papyrusgmfgenextension:PapyrusExtensionRootNode
comment="Papyrus-specific extensions to GMFGen">
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/models/usecaseDiagram.gmfgen b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/models/usecaseDiagram.gmfgen
index 4a438edadf5..48a5c7d75b3 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/models/usecaseDiagram.gmfgen
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/models/usecaseDiagram.gmfgen
@@ -3097,6 +3097,16 @@
xsi:type="gmfgen:LoadResourceAction"
qualifiedClassName="org.eclipse.papyrus.uml.diagram.usecase.part.LoadResourceAction"/>
</contextMenus>
+ <extensions
+ name="Custom templates"
+ rootInput="UseCase">
+ <invocations
+ xsi:type="gmfgen:GenTemplateInvocation"
+ description="VisualTypeProvider"
+ templateFqn="aspects::xpt::providers::VisualTypeProvider::VisualTypeProvider"
+ inputs="/0/@extensions.0"
+ oclExpression="self.diagram"/>
+ </extensions>
</gmfgen:GenEditorGenerator>
<papyrusgmfgenextension:PapyrusExtensionRootNode
comment="Required Comment">

Back to the top