Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2014-03-13 09:29:53 +0000
committerVincent Lorenzo2014-03-13 09:29:53 +0000
commit601924f9d8b3ee332f20c038fbdf78d93b28a0ca (patch)
tree0d60aad5b21e880b338857424aa0ef4de900de4f /plugins/infra
parentc4f19e4d10324deb07dc9b03034eeb9ca33ecc22 (diff)
downloadorg.eclipse.papyrus-601924f9d8b3ee332f20c038fbdf78d93b28a0ca.tar.gz
org.eclipse.papyrus-601924f9d8b3ee332f20c038fbdf78d93b28a0ca.tar.xz
org.eclipse.papyrus-601924f9d8b3ee332f20c038fbdf78d93b28a0ca.zip
430207: [Table 2] Delete Row Element in a synchronized table generate a ClassCastException
Diffstat (limited to 'plugins/infra')
-rwxr-xr-x[-rw-r--r--]plugins/infra/nattable/org.eclipse.papyrus.infra.emf.nattable/src/org/eclipse/papyrus/infra/emf/nattable/manager/axis/AbstractSynchronizedOnEStructuralFeatureAxisManager.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/infra/nattable/org.eclipse.papyrus.infra.emf.nattable/src/org/eclipse/papyrus/infra/emf/nattable/manager/axis/AbstractSynchronizedOnEStructuralFeatureAxisManager.java b/plugins/infra/nattable/org.eclipse.papyrus.infra.emf.nattable/src/org/eclipse/papyrus/infra/emf/nattable/manager/axis/AbstractSynchronizedOnEStructuralFeatureAxisManager.java
index 57effc52937..183b3268e87 100644..100755
--- a/plugins/infra/nattable/org.eclipse.papyrus.infra.emf.nattable/src/org/eclipse/papyrus/infra/emf/nattable/manager/axis/AbstractSynchronizedOnEStructuralFeatureAxisManager.java
+++ b/plugins/infra/nattable/org.eclipse.papyrus.infra.emf.nattable/src/org/eclipse/papyrus/infra/emf/nattable/manager/axis/AbstractSynchronizedOnEStructuralFeatureAxisManager.java
@@ -85,7 +85,9 @@ public abstract class AbstractSynchronizedOnEStructuralFeatureAxisManager extend
final Object current = getElements().get(axisPosition);
final Object elementToDestroy = AxisUtils.getRepresentedElement(current);
if(this.managedObject.contains(current) || this.managedObject.contains(elementToDestroy)) {
- return !EMFHelper.isReadOnly(((EObjectAxis)current).getElement());
+ if(elementToDestroy instanceof EObject) {
+ return !EMFHelper.isReadOnly((EObject)elementToDestroy);
+ }
}
return false;
}

Back to the top