How can I use the DEL key for mutiple objectContributions? [message #517293] |
Fri, 26 February 2010 15:01  |
Eclipse User |
|
|
|
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 01:28  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04387 seconds