ElementTypeRegistry question [message #640476] |
Mon, 22 November 2010 09:14 |
Eclipse User |
|
|
|
Originally posted by: marius.groeger.googlemail.com
Hi,
the following method:
ElementTypeRegistry.getInstance().getAllTypesMatching(EObjec t o);
returns a list (array) of all IElementType s known to the registry that
realize an edit part (or view, rather?) for the specified EObject.
When using multiple diagram editors for the same editing domain, how can
I determine which of these element types are suitable for a given
diagram? I'm using [1] for shared diagrams, btw.
TIA
Marius
[1]
http://code.google.com/p/gmftools/wiki/SharedEditingDomain
|
|
|
Re: ElementTypeRegistry question [message #640492 is a reply to message #640476] |
Mon, 22 November 2010 10:00 |
Eclipse User |
|
|
|
Originally posted by: marius.groeger.googlemail.com
On 22.11.2010 10:14, Marius Gröger wrote:
> ElementTypeRegistry.getInstance().getAllTypesMatching(EObjec t o);
>
> returns a list (array) of all IElementType s known to the registry that
> realize an edit part (or view, rather?) for the specified EObject.
>
> When using multiple diagram editors for the same editing domain, how can
> I determine which of these element types are suitable for a given
> diagram? I'm using [1] for shared diagrams, btw.
I have not found a generic way, but since I know the diagrams I'm using,
I'm now using the XXXVisualIDRegistry.getNodeVisualID() and
XXXElementTypes.getElementType() methods of each diagram.
Regards
Marius
|
|
|
Powered by
FUDForum. Page generated in 0.03273 seconds