Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » How can I use the DEL key for mutiple objectContributions?
How can I use the DEL key for mutiple objectContributions? [message #517293] Fri, 26 February 2010 20:01 Go to next message
Eclipse UserFriend
Originally posted by: felix.mayer.erdas.com

Most of the actions in the UI of my RCP application are contributed as
objectContributions in plugin.xml. That works very well in the the various
trees and tables, but there is one drawback: I would like the DEL key to
trigger a different deletion in each view, but when I use the
definitionId="org.eclipse.ui.edit.delete" in more than one
objectContribution I get a handler conflict and the DEL key doesn't do
anything. I guess the problem is that objectContributions are global, but I
define them separately for each view. Is there any way to get around this
limitation?

Thanks, Felix
Re: How can I use the DEL key for mutiple objectContributions? [message #517380 is a reply to message #517293] Sat, 27 February 2010 06:28 Go to previous message
Christian is currently offline ChristianFriend
Messages: 72
Registered: July 2009
Member
Am 26.02.2010 21:01, schrieb Felix LJ Mayer:
> Most of the actions in the UI of my RCP application are contributed as
> objectContributions in plugin.xml. That works very well in the the various
> trees and tables, but there is one drawback: I would like the DEL key to
> trigger a different deletion in each view, but when I use the
> definitionId="org.eclipse.ui.edit.delete" in more than one
> objectContribution I get a handler conflict and the DEL key doesn't do
> anything. I guess the problem is that objectContributions are global, but I
> define them separately for each view. Is there any way to get around this
> limitation?
>
> Thanks, Felix
>
>

you have to define the the handler with proper "activeWhen"
definitions... there must be only one Handler active at any time for
this to work
Previous Topic:Contextual Menu visibility
Next Topic:[Databinding] TreeViewer with items that contain lists (that should appear as subtrees)
Goto Forum:
  


Current Time: Mon Dec 22 00:45:56 GMT 2014

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

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