Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Getting matching elementTypes from eObject
Getting matching elementTypes from eObject [message #1697383] Wed, 03 June 2015 14:06 Go to next message
Patrik Nandorf is currently offline Patrik NandorfFriend
Messages: 169
Registered: January 2013
Location: Sweden
Senior Member
I'm trying to get a list of all ElementTypes for an eObject using ElementTypeRegistry.getInstance().getAllTypesMatching(eObject)

However the list doen't contain all the elementTypes I expect, but the only one I get is DefaultMetaModelType[org.eclipse.gmf.runtime.emf.type.core.default] even though the eObject is a UML model element and should match something more, right?

I having a faint memory of using ElementTypeRegistry.getInstance().getAllTypesMatching(eObject,clientContex) and getting it to work but which clientcontext should I use and how do I get it?

Re: Getting matching elementTypes from eObject [message #1697386 is a reply to message #1697383] Wed, 03 June 2015 14:12 Go to previous message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 926
Registered: February 2011
Senior Member
Hi,

Papyrus uses a singleton ClientContext, so org.eclipse.papyrus.infra.services.edit.internal.context.TypeContext.getContext() is probably what you are looking for

HTH,
Camille


Camille Letavernier
Previous Topic:Listen for profile application during import of RSA models
Next Topic:How to make Papyrus Development Environments
Goto Forum:
  


Current Time: Thu Aug 13 02:48:22 GMT 2020

Powered by FUDForum. Page generated in 0.01487 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top