Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian W. Damus2014-03-10 17:16:25 -0400
committerChristian W. Damus2014-03-10 17:16:25 -0400
commit82393c406cede01d7cb6acd6632d775a0c48ef1f (patch)
treec8020ddebeccfa5dfe29cf9145d881d161af1d0a /tests/junit
parent999616da64f24cf97b90b34cbb1d9de9a7f83efe (diff)
downloadorg.eclipse.papyrus-82393c406cede01d7cb6acd6632d775a0c48ef1f.tar.gz
org.eclipse.papyrus-82393c406cede01d7cb6acd6632d775a0c48ef1f.tar.xz
org.eclipse.papyrus-82393c406cede01d7cb6acd6632d775a0c48ef1f.zip
429826: [Read-Only] Orthogonal Classification of Read-Only Concerns
https://bugs.eclipse.org/bugs/show_bug.cgi?id=429826 Update clients of the ReadOnlyManager to ensure that all read-only axes are considered where appropriate (such as in the EnableWriteCommandHandler). Add a listener protocol to notify interested parties when the read-only state of a resource changes on some axis. Update the Model Explorer view to trigger refresh on read-only state changes.
Diffstat (limited to 'tests/junit')
-rw-r--r--tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.core.tests/src/org/eclipse/papyrus/cdo/core/resource/tests/CDOAwareModelSetTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.core.tests/src/org/eclipse/papyrus/cdo/core/resource/tests/CDOAwareModelSetTest.java b/tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.core.tests/src/org/eclipse/papyrus/cdo/core/resource/tests/CDOAwareModelSetTest.java
index 5d69a8cb927..27a69ac726b 100644
--- a/tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.core.tests/src/org/eclipse/papyrus/cdo/core/resource/tests/CDOAwareModelSetTest.java
+++ b/tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.core.tests/src/org/eclipse/papyrus/cdo/core/resource/tests/CDOAwareModelSetTest.java
@@ -9,6 +9,7 @@
* Contributors:
* CEA LIST - Initial API and implementation
* Christian W. Damus (CEA) - bug 429242
+ * Christian W. Damus (CEA) - bug 429826
*
*****************************************************************************/
package org.eclipse.papyrus.cdo.core.resource.tests;
@@ -38,6 +39,7 @@ import org.eclipse.papyrus.cdo.core.resource.PapyrusCDOResourceFactory;
import org.eclipse.papyrus.cdo.core.tests.AbstractPapyrusCDOTest;
import org.eclipse.papyrus.infra.core.Activator;
import org.eclipse.papyrus.infra.core.resource.ModelSet;
+import org.eclipse.papyrus.infra.core.resource.ReadOnlyAxis;
import org.eclipse.papyrus.infra.core.services.ExtensionServicesRegistry;
import org.eclipse.papyrus.infra.core.services.ServiceMultiException;
import org.eclipse.papyrus.infra.core.services.ServiceNotFoundException;
@@ -107,7 +109,7 @@ public class CDOAwareModelSetTest extends AbstractPapyrusCDOTest {
CDOTransaction transaction = getTransaction(fixture);
Resource resource = transaction.getOrCreateResource(getResourcePath(MODEL_FILENAME));
- assertThat(fixture.getReadOnlyHandler().anyReadOnly(new URI[]{ resource.getURI() }), is(Optional.of(false)));
+ assertThat(fixture.getReadOnlyHandler().anyReadOnly(ReadOnlyAxis.anyAxis(), new URI[]{ resource.getURI() }), is(Optional.of(false)));
}
@Test

Back to the top