diff options
author | Vincent Lorenzo | 2018-11-27 13:01:06 +0000 |
---|---|---|
committer | Patrick Tessier | 2018-11-27 15:43:51 +0000 |
commit | ae880b7505f411203a3c90a32ee49089c3fdb7f7 (patch) | |
tree | 297e0f714c402ebe65462850d2006f26b783b2aa /plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse | |
parent | 52faf3e1e56dd5154d314dc89266d310ff91bcec (diff) | |
download | org.eclipse.papyrus-ae880b7505f411203a3c90a32ee49089c3fdb7f7.tar.gz org.eclipse.papyrus-ae880b7505f411203a3c90a32ee49089c3fdb7f7.tar.xz org.eclipse.papyrus-ae880b7505f411203a3c90a32ee49089c3fdb7f7.zip |
Bug 541313: [UML][CDO] UML calls to the method getCacheAdapter(EObject) must be replaced
https://bugs.eclipse.org/bugs/show_bug.cgi?id=541313
Change-Id: I590e72c871f86af1f26878aacb1884c982cdb9a4
Signed-off-by: Vincent Lorenzo <vincent.lorenzo@cea.fr>
Diffstat (limited to 'plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse')
-rw-r--r-- | plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/util/ExecutionSpecificationUtil.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/util/ExecutionSpecificationUtil.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/util/ExecutionSpecificationUtil.java index 53e791a1e4d..709b0c7f5af 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/util/ExecutionSpecificationUtil.java +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/util/ExecutionSpecificationUtil.java @@ -11,7 +11,7 @@ * Contributors: * Nicolas FAUVERGUE (CEA LIST) nicolas.fauvergue@cea.fr - Initial API and implementation * Christian W. Damus - bug 533679 - * + * Vincent LORENZO - bug 541313 - [UML][CDO] UML calls to the method getCacheAdapter(EObject) must be replaced *****************************************************************************/ package org.eclipse.papyrus.uml.diagram.sequence.util; @@ -90,7 +90,7 @@ public class ExecutionSpecificationUtil { final EditPart editPartToSkip) { return calculateExecutionSpecificationCorrectLocation(lifeLineEditPart, executionSpecificationRectangles, initialRectangle, Collections.singleton(editPartToSkip)); } - + /** * This allows to calculate the correct location of the execution specification with the list of rectangles of the execution specification for the current life line. * @@ -246,13 +246,14 @@ public class ExecutionSpecificationUtil { public static Map<AbstractExecutionSpecificationEditPart, Rectangle> getRectangles(final LifelineEditPart lifeLineEditPart) { return getRectangles(lifeLineEditPart, null); } - + /** * This allows to get initial rectangles by execution specification available in the current life line. * * @param lifeLineEditPart * The current life line edit part. - * @param editPartsToSkip The collection of edit parts to skip during the calculation. + * @param editPartsToSkip + * The collection of edit parts to skip during the calculation. * @return The map with the rectangle by execution specification edit part. */ public static Map<AbstractExecutionSpecificationEditPart, Rectangle> getRectangles(final LifelineEditPart lifeLineEditPart, final Collection<EditPart> editPartsToSkip) { @@ -314,14 +315,14 @@ public class ExecutionSpecificationUtil { /** * Query the execution, if any, that is started by an {@code occurrence}. - * + * * @param occurrence * an occurrence specification * @return the execution specification that it starts * @since 5.0 */ public static Optional<ExecutionSpecification> getStartedExecution(OccurrenceSpecification occurrence) { - CacheAdapter cache = CacheAdapter.getCacheAdapter(occurrence); + CacheAdapter cache = CacheAdapter.getInstance(); Predicate<EStructuralFeature.Setting> settingFilter = setting -> setting.getEStructuralFeature() == UMLPackage.Literals.EXECUTION_SPECIFICATION__START; return cache.getInverseReferences(occurrence).stream() |