GetEditPart only with semantic model element [message #142979] |
Tue, 17 July 2007 05:52  |
Eclipse User |
|
|
|
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 15:34  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02360 seconds