Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2014-05-07 12:05:46 +0000
committerCamille Letavernier2014-05-13 13:32:08 +0000
commitd1eb4952002cb745de84b1c49a4c0d06ecf4a6d3 (patch)
tree35f5f6a89b32e67ad0027c829ace920838453a89 /plugins/facet/org.eclipse.papyrus.emf.facet.custom.ui/src/org/eclipse/papyrus
parent1893285f280c0b80e14e6cc41b281102a8a383be (diff)
downloadorg.eclipse.papyrus-d1eb4952002cb745de84b1c49a4c0d06ecf4a6d3.tar.gz
org.eclipse.papyrus-d1eb4952002cb745de84b1c49a4c0d06ecf4a6d3.tar.xz
org.eclipse.papyrus-d1eb4952002cb745de84b1c49a4c0d06ecf4a6d3.zip
434133: [ModelExplorer] ModelExplorer items should be IAdaptable
https://bugs.eclipse.org/bugs/show_bug.cgi?id=434133
Diffstat (limited to 'plugins/facet/org.eclipse.papyrus.emf.facet.custom.ui/src/org/eclipse/papyrus')
-rw-r--r--plugins/facet/org.eclipse.papyrus.emf.facet.custom.ui/src/org/eclipse/papyrus/emf/facet/custom/ui/internal/CustomizedTreeContentProvider.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.ui/src/org/eclipse/papyrus/emf/facet/custom/ui/internal/CustomizedTreeContentProvider.java b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.ui/src/org/eclipse/papyrus/emf/facet/custom/ui/internal/CustomizedTreeContentProvider.java
index 1a454cac2bc..abd94f120ee 100644
--- a/plugins/facet/org.eclipse.papyrus.emf.facet.custom.ui/src/org/eclipse/papyrus/emf/facet/custom/ui/internal/CustomizedTreeContentProvider.java
+++ b/plugins/facet/org.eclipse.papyrus.emf.facet.custom.ui/src/org/eclipse/papyrus/emf/facet/custom/ui/internal/CustomizedTreeContentProvider.java
@@ -43,6 +43,7 @@ import org.eclipse.papyrus.emf.facet.custom.core.exception.CustomizationExceptio
import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.internal.treeproxy.EAttributeTreeElement;
import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.internal.treeproxy.EObjectTreeElement;
import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.internal.treeproxy.EReferenceTreeElement;
+import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.internal.treeproxy.EStructuralFeatureTreeElement;
import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.internal.treeproxy.TreeElement;
import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.internal.treeproxy.TreeproxyFactory;
@@ -183,6 +184,7 @@ public class CustomizedTreeContentProvider implements ICustomizedTreeContentProv
final EObject eObject = (EObject)element;
final EObjectTreeElement eObjectProxy = TreeproxyFactory.eINSTANCE.createEObjectTreeElement();
eObjectProxy.setEObject(eObject);
+ eObjectProxy.setParent(parent);
return eObjectProxy;
}
@@ -351,7 +353,7 @@ public class CustomizedTreeContentProvider implements ICustomizedTreeContentProv
Object result = null;
if (element instanceof TreeElement) {
final TreeElement treeElement = (TreeElement) element;
- result = treeElement.eContainer();
+ result = treeElement.getParent();
}
return result;
}

Back to the top