Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » TO ACTIVATE "Delete from Diagram" ACTION
TO ACTIVATE "Delete from Diagram" ACTION [message #191393] Fri, 06 June 2008 09:25 Go to next message
Carmine is currently offline CarmineFriend
Messages: 8
Registered: July 2009
Junior Member
Hi to everybody,
I am realizing an editor graphic with GMF and I would like to train the
action of "Delete from Diagram " from the popmenù.
How does he do? can someone help me?
Thanks
Re: TO ACTIVATE "Delete from Diagram" ACTION [message #192320 is a reply to message #191393] Thu, 12 June 2008 15:38 Go to previous messageGo to next message
Youmm P. is currently offline Youmm P.Friend
Messages: 140
Registered: July 2009
Senior Member
Carmine2581 wrote:
> Hi to everybody, I am realizing an editor graphic with GMF and I
> would like to train the action of "Delete from Diagram " from the
> popmenù. How does he do? can someone help me? Thanks

If you look at the source of the DeleteFromDiagramAction, you can see
that "Delete From Diagram" is activated only if the parent of the
selected EditPart does not have a CANONICAL_ROLE policy installed.

For what I understand canonical policies are used to synchronize
semantic elements and the notation elements, so probably it doesn't make
so much sens to have a "Delete From Diagram" that won't delete the children:

"Canonical is the terminology we use to describe a container that keeps
its view of the semantic data synchronized with the semantic children."
in "Tutorial: Canonical Containers"

Regards.
Re: TO ACTIVATE "Delete from Diagram" ACTION [message #192381 is a reply to message #192320] Fri, 13 June 2008 09:38 Go to previous message
Carmine is currently offline CarmineFriend
Messages: 8
Registered: July 2009
Junior Member
Thanks for your intervention!
To me it serves the "Delete from Diagram" because I have realized an
action of copy not in depth of a semantic element, therefore the element
copies that is not semantic it has to have the possibility to be
cancelled.

If even in this case it is not possible to activate the "Delete From
Diagram", can you advise me on as to implement a separate class that
allows me to cancel only the non semantic elements?

Thanks of everything!!
Previous Topic:[Announce] GMF 2.1.0RC5 is available
Next Topic:How to write related diagrams to different files?
Goto Forum:
  


Current Time: Thu Apr 25 19:02:12 GMT 2024

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

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

Back to the top