Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow can I use the DEL key for mutiple objectContributions?
https://www.eclipse.org/forums/index.php/mv/msg/163440/517293/#msg_517293
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]]>2010-02-26T20:01:38-00:00Re: How can I use the DEL key for mutiple objectContributions?
https://www.eclipse.org/forums/index.php/mv/msg/163440/517380/#msg_517380
> 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]]>Christian2010-02-27T06:28:03-00:00