Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVincent Lorenzo2018-11-27 13:01:06 +0000
committerPatrick Tessier2018-11-27 15:43:51 +0000
commitae880b7505f411203a3c90a32ee49089c3fdb7f7 (patch)
tree297e0f714c402ebe65462850d2006f26b783b2aa /tests
parent52faf3e1e56dd5154d314dc89266d310ff91bcec (diff)
downloadorg.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 'tests')
-rw-r--r--tests/junit/plugins/infra/emf/org.eclipse.papyrus.infra.ui.emf.tests/src/org/eclipse/papyrus/infra/ui/internal/emf/readonly/handlers/ReferencedModelReadOnlyHandlerTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/junit/plugins/infra/emf/org.eclipse.papyrus.infra.ui.emf.tests/src/org/eclipse/papyrus/infra/ui/internal/emf/readonly/handlers/ReferencedModelReadOnlyHandlerTest.java b/tests/junit/plugins/infra/emf/org.eclipse.papyrus.infra.ui.emf.tests/src/org/eclipse/papyrus/infra/ui/internal/emf/readonly/handlers/ReferencedModelReadOnlyHandlerTest.java
index 77dd810bb7a..7eacdf3980b 100644
--- a/tests/junit/plugins/infra/emf/org.eclipse.papyrus.infra.ui.emf.tests/src/org/eclipse/papyrus/infra/ui/internal/emf/readonly/handlers/ReferencedModelReadOnlyHandlerTest.java
+++ b/tests/junit/plugins/infra/emf/org.eclipse.papyrus.infra.ui.emf.tests/src/org/eclipse/papyrus/infra/ui/internal/emf/readonly/handlers/ReferencedModelReadOnlyHandlerTest.java
@@ -1,5 +1,5 @@
-/*
- * Copyright (c) 2014, 2016 CEA, Christian W. Damus, and others.
+/**
+ * Copyright (c) 2014, 2016, 2018 CEA, Christian W. Damus, and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -11,7 +11,7 @@
* Contributors:
* Christian W. Damus (CEA) - Initial API and implementation
* Christian W. Damus - bugs 463631, 485220
- *
+ * Vincent LORENZO - bug 541313 - [UML][CDO] UML calls to the method getCacheAdapter(EObject) must be replaced
*/
package org.eclipse.papyrus.infra.ui.internal.emf.readonly.handlers;
@@ -333,7 +333,7 @@ public class ReferencedModelReadOnlyHandlerTest extends AbstractPapyrusTest {
void assertLocalViewsNotReadOnly(EObject object) {
boolean foundSomeLocalViews = false;
- for (EStructuralFeature.Setting setting : CacheAdapter.getCacheAdapter(object).getNonNavigableInverseReferences(object)) {
+ for (EStructuralFeature.Setting setting : CacheAdapter.getInstance().getNonNavigableInverseReferences(object)) {
if (setting.getEStructuralFeature() == NotationPackage.Literals.VIEW__ELEMENT) {
EObject view = setting.getEObject();
Set<URI> uris = ControlledResourceTracker.getInstance(domain).getRootResourceURIs(view.eResource().getURI());

Back to the top