Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mdt-papyrus.dev] Impact of EMF facet 0.2

Hi,

The usage of EMF-Facet 0.2 has been integrated into Papyrus.

This usage involves one major change.

 

In the context of old framewok, to obtain the UML element from the model explorer, it was only needed to adapt it into an EObject.

Now this approach does not run. In fact all elements in the model explorer that are directly displayed with EMF- Facet are EObjects. See org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.internal.treeproxy

 

It implies that the test with IAdaptable does not un.

 

Now , I advise you to use

 

import org.eclipse.papyrus.infra.emf.utils.EMFHelper;

       obj = EMFHelper.getEObject(obj);

 

 

Patrick

Laboratoire d'Ingénierie dirigée par les modèles pour les Systèmes Embarqués (LISE)

CEA Saclay Nano-INNOV - Institut CARNOT CEA LIST, DILS - Point Courrier n° 174 - 91 191 Gif sur Yvette CEDEX

 

 


Back to the top