Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » how to enable "Delete from model" function for shortcut
how to enable "Delete from model" function for shortcut [message #8029] Sun, 06 August 2006 22:30 Go to next message
Eclipse UserFriend
Originally posted by: dzhpingbo.sohu.com

Hi,
I found that Delete from model does not work for shortcut, when I right
click on shortcut and choose "Delete from model", the element wasn't removed
from the model any more.

If I want to enable "Delete from model" function for shortcut, how can I do?

Regards,


Re: how to enable "Delete from model" function for shortcut [message #18151 is a reply to message #8029] Mon, 14 August 2006 14:37 Go to previous messageGo to next message
Eclipse UserFriend
Hello dzh,

For now you have to modify generated code for it. This problem was reported
in a request: https://bugs.eclipse.org/bugs/show_bug.cgi?id=150645

-----------------
Alex Shatalin
Re: how to enable "Delete from model" function for shortcut [message #18248 is a reply to message #18151] Tue, 15 August 2006 02:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dzhpingbo.sohu.com

I had followed the news https://bugs.eclipse.org/bugs/show_bug.cgi?id=150645
you had told me, and I agree with what Fedor Isakov had said
"As a matter of fact, the menu item saying "Delete from model" should not be
allowed on shortcut at all, as it can only be removed from view."

so I think if I can disable the"delete from model" function for all
shortcut, it will be ok then, how can I fullfil this ?
and now I disable the "delete from model" function for special element
succefully, but how can I disable the function for shortcut?

"Alex Shatalin" <vano@borland.com> д
Re: how to enable "Delete from model" function for shortcut [message #18385 is a reply to message #18248] Tue, 15 August 2006 06:59 Go to previous messageGo to next message
Eclipse UserFriend
Hello dzh,

You can try to follow solution suggested by Linda (news://news.eclipse.org/ebaf3j$342$1@utils.eclipse.org)
or patch generated *BaseItemSemanticEditPolicy.getSemanticCommandSwitch()
for now to return UnexecutableCommand as a response to DestroyElementRequest
in case of shortcuts.

-----------------
Alex Shatalin
Re: how to enable "Delete from model" function for shortcut [message #23903 is a reply to message #18385] Fri, 18 August 2006 23:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dzhpingbo.sohu.com

"Alex Shatalin" <vano@borland.com> д
Re: how to enable "Delete from model" function for shortcut [message #23943 is a reply to message #23903] Fri, 18 August 2006 23:28 Go to previous message
Eclipse UserFriend
Originally posted by: dzhpingbo.sohu.com

yes, I got it.
EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
if (annotation != null) {
return view;
}
"dzh" <dzhpingbo@sohu.com> д
Previous Topic:Editor doesn't recognizes model changes.
Next Topic:problems implementing swimlanes
Goto Forum:
  


Current Time: Mon Apr 21 08:27:59 EDT 2025

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

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

Back to the top