Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » ElementTypeRegistry question
ElementTypeRegistry question [message #640476] Mon, 22 November 2010 09:14 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:ListCompartmentEditPart bug? - cannot select figures in compartment
Next Topic:Anchor that slides on the border of a figure
Goto Forum:
  


Current Time: Thu Apr 25 07:48:17 GMT 2024

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

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

Back to the top