diff options
author | Ed Willink | 2018-11-27 14:33:52 +0000 |
---|---|---|
committer | Ed Willink | 2018-11-27 14:33:52 +0000 |
commit | f9578eaf1a39d0faa66ce90a422357ac5efbe298 (patch) | |
tree | 67c9f9afd8231231bc5fe3652e6ed5c85059d46c | |
parent | 4168fc03574828ec6d5b0506d2edd952a66f3a93 (diff) | |
download | org.eclipse.qvtd-0.17.0M3.tar.gz org.eclipse.qvtd-0.17.0M3.tar.xz org.eclipse.qvtd-0.17.0M3.zip |
[releng] Revert changes requiring post M3 OCL0.17.0M3
4 files changed, 5 insertions, 5 deletions
diff --git a/examples/org.eclipse.qvtd.examples.qvtrelation.hstm2fstm/model/HierarchicalStateMachine2FlatStateMachine.qvtr b/examples/org.eclipse.qvtd.examples.qvtrelation.hstm2fstm/model/HierarchicalStateMachine2FlatStateMachine.qvtr index 008e8d72b..77bacfa8e 100644 --- a/examples/org.eclipse.qvtd.examples.qvtrelation.hstm2fstm/model/HierarchicalStateMachine2FlatStateMachine.qvtr +++ b/examples/org.eclipse.qvtd.examples.qvtrelation.hstm2fstm/model/HierarchicalStateMachine2FlatStateMachine.qvtr @@ -27,7 +27,7 @@ transformation org::eclipse::qvtd::examples::qvtrelation::hstm2fstm::Hierarchica * Return the leafStates of a given hierarchicalState. */ query getLeafStates(hierarchicalState : hierMM::State[1]) : Set(hierMM::State) { - hierarchicalState->closure(nestedStates)->select(nestedStates->isEmpty()) + hierarchicalState->closure(nestedStates)?->select(nestedStates->isEmpty()) } /** diff --git a/plugins/org.eclipse.qvtd.pivot.qvtbase/src/org/eclipse/qvtd/pivot/qvtbase/utilities/QVTbaseEnvironmentFactory.java b/plugins/org.eclipse.qvtd.pivot.qvtbase/src/org/eclipse/qvtd/pivot/qvtbase/utilities/QVTbaseEnvironmentFactory.java index 7af457e8b..5f776ef43 100644 --- a/plugins/org.eclipse.qvtd.pivot.qvtbase/src/org/eclipse/qvtd/pivot/qvtbase/utilities/QVTbaseEnvironmentFactory.java +++ b/plugins/org.eclipse.qvtd.pivot.qvtbase/src/org/eclipse/qvtd/pivot/qvtbase/utilities/QVTbaseEnvironmentFactory.java @@ -15,11 +15,11 @@ import org.eclipse.jdt.annotation.NonNull; import org.eclipse.jdt.annotation.Nullable; import org.eclipse.ocl.pivot.Type; import org.eclipse.ocl.pivot.internal.manager.TemplateParameterSubstitutionVisitor; -import org.eclipse.ocl.pivot.internal.utilities.PivotEnvironmentFactory; import org.eclipse.ocl.pivot.resource.ProjectManager; +import org.eclipse.ocl.pivot.utilities.AbstractEnvironmentFactory; import org.eclipse.qvtd.pivot.qvtbase.model.QVTbaseLibrary; -public class QVTbaseEnvironmentFactory extends PivotEnvironmentFactory +public class QVTbaseEnvironmentFactory extends AbstractEnvironmentFactory { public static abstract class CreateStrategy { diff --git a/tests/org.eclipse.qvtd.xtext.qvtrelation.tests/models/hstm2fstm/HierarchicalStateMachine2FlatStateMachine.qvtr b/tests/org.eclipse.qvtd.xtext.qvtrelation.tests/models/hstm2fstm/HierarchicalStateMachine2FlatStateMachine.qvtr index c15116fd6..d48cb01d9 100644 --- a/tests/org.eclipse.qvtd.xtext.qvtrelation.tests/models/hstm2fstm/HierarchicalStateMachine2FlatStateMachine.qvtr +++ b/tests/org.eclipse.qvtd.xtext.qvtrelation.tests/models/hstm2fstm/HierarchicalStateMachine2FlatStateMachine.qvtr @@ -28,7 +28,7 @@ package org::eclipse::qvtd::xtext::qvtrelation::tests::hstm2fstm { * Return the leafStates of a given hierarchicalState. */ query getLeafStates(hierarchicalState : hierMM::State[1]) : Set(hierMM::State) { - hierarchicalState->closure(nestedStates)->select(nestedStates->isEmpty()) + hierarchicalState->closure(nestedStates)?->select(nestedStates->isEmpty()) } /** diff --git a/tests/org.eclipse.qvtd.xtext.qvtrelation.tests/models/mitosi/MiToSiSimple.qvtr b/tests/org.eclipse.qvtd.xtext.qvtrelation.tests/models/mitosi/MiToSiSimple.qvtr index d2744b547..af1a3d011 100644 --- a/tests/org.eclipse.qvtd.xtext.qvtrelation.tests/models/mitosi/MiToSiSimple.qvtr +++ b/tests/org.eclipse.qvtd.xtext.qvtrelation.tests/models/mitosi/MiToSiSimple.qvtr @@ -26,7 +26,7 @@ transformation MiToSiSimple(uml:{umlmmmi,ecoreMM}, java:javammsi) * Return true if this class or a transitive super-class is marked as DomainRoot. */ query isClass(c : umlmmmi::Class) : Boolean { - c.oclAsSet()->closure(supers)->exists(v : umlmmmi::Class[1] | v.type = 'DomainRoot') + c->closure(supers)->exists(type = 'DomainRoot') } /** |