No real name Messages: 4 Registered: September 2009
Junior Member
Hello,
I'm currently building my own editor for eclipse. In this editor I want to
use the "Open Declaration" feature.
When I try to create my own Action with "F3" as accellerator it works in
it's own way. Means, a popup is displayed and it asks which of the two "F3"
actions should be executed which is a bit annoying after a while.
I do not want to deregister the original "F3" feature to allow the user to
code java in eclipse with plugin installed. I also do not want to give a
different key to my version of "Open declaration" so the user can use his
beloved "F3" to lookup where something comes from.
Is there a way to "delegate" the "Open declaration" to a different code when
hit in my editor?
Phyxas wrote:
> Hello,
>
> I'm currently building my own editor for eclipse. In this editor I
> want to use the "Open Declaration" feature.
>
> When I try to create my own Action with "F3" as accellerator it works
> in it's own way. Means, a popup is displayed and it asks which of the
> two "F3" actions should be executed which is a bit annoying after a
> while.
>
> I do not want to deregister the original "F3" feature to allow the
> user to code java in eclipse with plugin installed. I also do not want
> to give a different key to my version of "Open declaration" so the
> user can use his beloved "F3" to lookup where something comes from.
>
> Is there a way to "delegate" the "Open declaration" to a different
> code when hit in my editor?
Your editor should provide it's own key binding scope and then you can
register your command for that scope and bind F3 to it.