Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » GetEditPart only with semantic model element
GetEditPart only with semantic model element [message #142979] Tue, 17 July 2007 09:52 Go to next message
Eclipse UserFriend
Originally posted by: Eclipse.stmonline.de

Hi,

is it possible to get the correct EditPart for a model element, e.g. if
the model element is currently not represented in the diagram but I want
to delete it using the getCommand(DestroyElementRequest)?

Is the a Map where the EditParts are registered for their semantic model
element?


Thanks,

Stefan
Re: GetEditPart only with semantic model element [message #144270 is a reply to message #142979] Wed, 25 July 2007 19:34 Go to previous message
Cherie Revells is currently offline Cherie RevellsFriend
Messages: 299
Registered: July 2009
Senior Member
Stefan,

An editpart exists for an element only when it is being shown in a diagram.

Yes, there is such a map. Take a look at the method
DiagramGraphicalViewer.findEditPartsForElement(String elementIdStr,
Class editPartClass).

Regards,
Cherie

Stefan wrote:
> Hi,
>
> is it possible to get the correct EditPart for a model element, e.g. if
> the model element is currently not represented in the diagram but I want
> to delete it using the getCommand(DestroyElementRequest)?
>
> Is the a Map where the EditParts are registered for their semantic model
> element?
>
>
> Thanks,
>
> Stefan
Previous Topic:Filtering Node/Elements from Diagram
Next Topic:Help with Filtering Views
Goto Forum:
  


Current Time: Fri Nov 08 22:17:04 GMT 2024

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

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

Back to the top