Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » how to know when the "delete from model" popup menu is executed
how to know when the "delete from model" popup menu is executed [message #173818] Fri, 22 February 2008 12:30 Go to next message
Eclipse UserFriend
I would like to add more functionality to my plug-in when user choose to
the pop up menu "Delete from model" which is predefined by Eclipse, I
guess. More precisely, I would like to delete some directory structure
relevant with the element that user want to delete. But I can not find the
class or code so that I can extend or add some code for my purpose.

Any idea can bring me a solution is highly appreciated.
Re: how to know when the "delete from model" popup menu is executed [message #173883 is a reply to message #173818] Sat, 23 February 2008 04:07 Go to previous message
Eclipse UserFriend
Originally posted by: Marco.Luetzenberger.dai-labor.de

Hey hoang_vu

You may want to have a look into the ???ItemSematicEditPolicy of the
EditPart in which you want to extend the delete-method.
override the "getDestroyElementCommand"-method, which is responsible for
delivering the delete-command for invoking delete-from-model of the
context menu.

Greetings Marco

hoang_vu schrieb:
> I would like to add more functionality to my plug-in when user choose to
> the pop up menu "Delete from model" which is predefined by Eclipse, I
> guess. More precisely, I would like to delete some directory structure
> relevant with the element that user want to delete. But I can not find
> the class or code so that I can extend or add some code for my purpose.
>
> Any idea can bring me a solution is highly appreciated.
>
Previous Topic:EMF
Next Topic:how to avoid two child-views overlapping each other?
Goto Forum:
  


Current Time: Fri Jul 25 21:17:18 EDT 2025

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

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

Back to the top