diff options
| author | cbrun | 2015-12-28 12:29:39 +0000 |
|---|---|---|
| committer | Maxime Porhel | 2015-12-29 14:23:59 +0000 |
| commit | 37ef425143c56c541f5dec47b84c1ad4b386ea2b (patch) | |
| tree | 39487335d0d53b37575f05ffbf868bb7b2821bc3 | |
| parent | e48e9bd394574444fb9df3f1e260cb0d6e2cf890 (diff) | |
| download | org.eclipse.sirius-37ef425143c56c541f5dec47b84c1ad4b386ea2b.tar.gz org.eclipse.sirius-37ef425143c56c541f5dec47b84c1ad4b386ea2b.tar.xz org.eclipse.sirius-37ef425143c56c541f5dec47b84c1ad4b386ea2b.zip | |
[478878] Migrate Legacy expressions to AQL in "do not migrate" VSMs
The migration is done using the text editor in order to avoid the
automatic migration of the .odesign files.
Bug: 478878
Change-Id: I61e4d2614feb8eabd666377962f061a7e00a9856
3 files changed, 8 insertions, 8 deletions
diff --git a/plugins/org.eclipse.sirius.tests.junit/data/unit/migration/do_not_migrate/VP-1981/base.odesign b/plugins/org.eclipse.sirius.tests.junit/data/unit/migration/do_not_migrate/VP-1981/base.odesign index 3b843d022a..6878ce2acd 100644 --- a/plugins/org.eclipse.sirius.tests.junit/data/unit/migration/do_not_migrate/VP-1981/base.odesign +++ b/plugins/org.eclipse.sirius.tests.junit/data/unit/migration/do_not_migrate/VP-1981/base.odesign @@ -3,14 +3,14 @@ <ownedViewpoints name="EdgeLabelRefreshPb" modelFileExtension="ecore"> <ownedRepresentations xsi:type="description:DiagramDescription" name="EdgeLabelRefreshPb" domainClass="EPackage"> <defaultLayer name="Default"> - <nodeMappings name="Class" semanticCandidatesExpression="<%eContents.filter("EClass")%>" domainClass="EClass"> - <style xsi:type="style:SquareDescription" borderSizeComputationExpression="10" labelSize="81" labelFormat="italic" showIcon="false" labelExpression="<%name%>1" tooltipExpression="OneToolTip" sizeComputationExpression="31" labelPosition="node" hideLabelByDefault="true" resizeKind="NSEW" width="1" height="1"> + <nodeMappings name="Class" semanticCandidatesExpression="aql:self.eContents()->filter(ecore::EClass)" domainClass="EClass"> + <style xsi:type="style:SquareDescription" borderSizeComputationExpression="10" labelSize="81" labelFormat="italic" showIcon="false" labelExpression="aql:self.name + '1'" tooltipExpression="OneToolTip" sizeComputationExpression="31" labelPosition="node" hideLabelByDefault="true" resizeKind="NSEW" width="1" height="1"> <borderColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> <labelColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='blue']"/> <color xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='orange']"/> </style> </nodeMappings> - <edgeMappings name="edge" deletionDescription="//@ownedViewpoints[name='EdgeLabelRefreshPb']/@ownedRepresentations[name='EdgeLabelRefreshPb']/@defaultLayer/@toolSections.0/@ownedTools[name='TestDel']" semanticElements="var:self" sourceMapping="//@ownedViewpoints[name='EdgeLabelRefreshPb']/@ownedRepresentations[name='EdgeLabelRefreshPb']/@defaultLayer/@nodeMappings[name='Class']" targetMapping="//@ownedViewpoints[name='EdgeLabelRefreshPb']/@ownedRepresentations[name='EdgeLabelRefreshPb']/@defaultLayer/@nodeMappings[name='Class']" targetFinderExpression="<%eType%>" sourceFinderExpression="feature:eContainer" domainClass="EReference" useDomainElement="true"> + <edgeMappings name="edge" deletionDescription="//@ownedViewpoints[name='EdgeLabelRefreshPb']/@ownedRepresentations[name='EdgeLabelRefreshPb']/@defaultLayer/@toolSections.0/@ownedTools[name='TestDel']" semanticElements="var:self" sourceMapping="//@ownedViewpoints[name='EdgeLabelRefreshPb']/@ownedRepresentations[name='EdgeLabelRefreshPb']/@defaultLayer/@nodeMappings[name='Class']" targetMapping="//@ownedViewpoints[name='EdgeLabelRefreshPb']/@ownedRepresentations[name='EdgeLabelRefreshPb']/@defaultLayer/@nodeMappings[name='Class']" targetFinderExpression="aql:self.eType" sourceFinderExpression="feature:eContainer" domainClass="EReference" useDomainElement="true"> <style lineStyle="dot" sizeComputationExpression="2" routingStyle="manhattan" foldingStyle="SOURCE"> <strokeColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='green']"/> <centerLabelStyleDescription labelSize="5" labelFormat="bold" showIcon="false" labelExpression="plop1"> diff --git a/plugins/org.eclipse.sirius.tests.junit/data/unit/migration/do_not_migrate/VP-1981/referencing.odesign b/plugins/org.eclipse.sirius.tests.junit/data/unit/migration/do_not_migrate/VP-1981/referencing.odesign index 700c82fc63..742dfb74da 100644 --- a/plugins/org.eclipse.sirius.tests.junit/data/unit/migration/do_not_migrate/VP-1981/referencing.odesign +++ b/plugins/org.eclipse.sirius.tests.junit/data/unit/migration/do_not_migrate/VP-1981/referencing.odesign @@ -3,7 +3,7 @@ <ownedViewpoints name="ReferencingViewpoint"> <ownedRepresentations xsi:type="description:DiagramDescription" name="ReferencingDiagram"> <defaultLayer name="Default"> - <edgeMappings name="edge" semanticElements="var:self" targetFinderExpression="<%eType%>" sourceFinderExpression="feature:eContainer" domainClass="EReference" useDomainElement="true"> + <edgeMappings name="edge" semanticElements="var:self" targetFinderExpression="aql:self.eType" sourceFinderExpression="feature:eContainer" domainClass="EReference" useDomainElement="true"> <style lineStyle="dot" sizeComputationExpression="2" routingStyle="manhattan" foldingStyle="SOURCE"> <strokeColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='green']"/> <centerLabelStyleDescription labelSize="5" labelFormat="bold" showIcon="false" labelExpression="plop1"> diff --git a/plugins/org.eclipse.sirius.tests.junit/data/unit/migration/do_not_migrate/ddiagramSetRemoval/2077.odesign b/plugins/org.eclipse.sirius.tests.junit/data/unit/migration/do_not_migrate/ddiagramSetRemoval/2077.odesign index 202c708a5e..7fcb8ee10b 100644 --- a/plugins/org.eclipse.sirius.tests.junit/data/unit/migration/do_not_migrate/ddiagramSetRemoval/2077.odesign +++ b/plugins/org.eclipse.sirius.tests.junit/data/unit/migration/do_not_migrate/ddiagramSetRemoval/2077.odesign @@ -3,16 +3,16 @@ <ownedViewpoints name="2077" modelFileExtension="*.ecore"> <ownedRepresentations xsi:type="description_1:DiagramDescription" name="2077" domainClass="EPackage"> <defaultLayer name="Default"> - <edgeMappings name="EReference" semanticCandidatesExpression="<%eAllContents("EReference")[!eOpposite]%>" sourceMapping="//@ownedViewpoints[name='2077']/@ownedRepresentations[name='2077']/@defaultLayer/@containerMappings[name='EPackage']/@subNodeMappings[name='EClass']" targetMapping="//@ownedViewpoints[name='2077']/@ownedRepresentations[name='2077']/@defaultLayer/@containerMappings[name='EPackage']/@subNodeMappings[name='EClass']" targetFinderExpression="<%eType%>" sourceFinderExpression="<%eContainer()%>" domainClass="EReference" useDomainElement="true"> + <edgeMappings name="EReference" semanticCandidatesExpression="aql:self.eAllContents(ecore::EReference)->select(e | not e.eOpposite)" sourceMapping="//@ownedViewpoints[name='2077']/@ownedRepresentations[name='2077']/@defaultLayer/@containerMappings[name='EPackage']/@subNodeMappings[name='EClass']" targetMapping="//@ownedViewpoints[name='2077']/@ownedRepresentations[name='2077']/@defaultLayer/@containerMappings[name='EPackage']/@subNodeMappings[name='EClass']" targetFinderExpression="aql:self.eType" sourceFinderExpression="aql:self.eContainer()" domainClass="EReference" useDomainElement="true"> <style sizeComputationExpression="1"> <strokeColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='gray']"/> - <centerLabelStyleDescription showIcon="false" labelExpression="<%name%>"> + <centerLabelStyleDescription showIcon="false" labelExpression="aql:self.name"> <labelColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/> </centerLabelStyleDescription> </style> </edgeMappings> - <containerMappings name="EPackage" semanticCandidatesExpression="<%eContents.filter("EPackage")%>" domainClass="EPackage" reusedContainerMappings="//@ownedViewpoints[name='2077']/@ownedRepresentations[name='2077']/@defaultLayer/@containerMappings[name='EPackage']"> - <subNodeMappings name="EClass" semanticCandidatesExpression="<%eContents.filter("EClass")%>" domainClass="EClass"> + <containerMappings name="EPackage" semanticCandidatesExpression="aql:self.eContents()->filter(ecore::EPackage)" domainClass="EPackage" reusedContainerMappings="//@ownedViewpoints[name='2077']/@ownedRepresentations[name='2077']/@defaultLayer/@containerMappings[name='EPackage']"> + <subNodeMappings name="EClass" semanticCandidatesExpression="aql:self.eContents()->filter(ecore::EClass)" domainClass="EClass"> <style xsi:type="style:SquareDescription"> <borderColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/> <labelColor xsi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/> |
