Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mdt-papyrus.dev] [Core] How to get the ServicesRegistry from an EObject


  Hy,

  I have committed a utility class allowing to retrieve the ServicesRegistry from an EObject or an emf.Resource:
  • org.eclipse.papyrus.infra.emf.utils.ServiceUtilsForResource

There is an example plugin showing:
  • how to retrieve an EObject from a selection (by using adapters)
  • how to get the ServicesRegistry associated to the ResourceSet owning the Resource owning the EObject.
  • see trunk/examples/infra/org.eclipse.papyrus.example.infra.servicesregistry.retrieval

  I have also updated the wiki:

  Hope this help,
  Cedric





Back to the top