Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptessier2014-03-11 09:18:55 +0000
committerptessier2014-03-11 09:18:55 +0000
commit74388643106cb46c76d67297e01e95542a70211d (patch)
treee29e59af76700ec6ff9a8ff57606262d7bce4bee /plugins/infra
parent11e3e81f09f7439b87400c95b1ece63dde395fbe (diff)
downloadorg.eclipse.papyrus-74388643106cb46c76d67297e01e95542a70211d.tar.gz
org.eclipse.papyrus-74388643106cb46c76d67297e01e95542a70211d.tar.xz
org.eclipse.papyrus-74388643106cb46c76d67297e01e95542a70211d.zip
Bug 386118 - [EMF Facet] Papyrus should progressively support EMF Facet
0.2 make creation table eanble
Diffstat (limited to 'plugins/infra')
-rw-r--r--plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.common/src/org/eclipse/papyrus/infra/nattable/common/handlers/AbstractCreateNattableEditorHandler.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.common/src/org/eclipse/papyrus/infra/nattable/common/handlers/AbstractCreateNattableEditorHandler.java b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.common/src/org/eclipse/papyrus/infra/nattable/common/handlers/AbstractCreateNattableEditorHandler.java
index 816843304ef..75b61a09193 100644
--- a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.common/src/org/eclipse/papyrus/infra/nattable/common/handlers/AbstractCreateNattableEditorHandler.java
+++ b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.common/src/org/eclipse/papyrus/infra/nattable/common/handlers/AbstractCreateNattableEditorHandler.java
@@ -43,6 +43,7 @@ import org.eclipse.papyrus.infra.core.services.ServicesRegistry;
import org.eclipse.papyrus.infra.core.utils.EditorNameInitializer;
import org.eclipse.papyrus.infra.core.utils.EditorUtils;
import org.eclipse.papyrus.infra.core.utils.ServiceUtils;
+import org.eclipse.papyrus.infra.emf.utils.EMFHelper;
import org.eclipse.papyrus.infra.emf.utils.ServiceUtilsForHandlers;
import org.eclipse.papyrus.infra.nattable.Activator;
import org.eclipse.papyrus.infra.nattable.common.modelresource.PapyrusNattableModel;
@@ -250,13 +251,11 @@ public abstract class AbstractCreateNattableEditorHandler extends AbstractHandle
final Iterator<?> it = structuredSelection.iterator();
while(it.hasNext()) {
final Object object = it.next();
- if(object instanceof IAdaptable) {
- final EObject currentEObject = (EObject)((IAdaptable)object).getAdapter(EObject.class);
+ final EObject currentEObject = EMFHelper.getEObject(object);
if(currentEObject != null) {
selectedElements.add(currentEObject);
}
- }
}
}

Back to the top