Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Own editor plugin with "F3" feature
Own editor plugin with "F3" feature [message #488891] Wed, 30 September 2009 15:38 Go to next message
No real name is currently offline No real nameFriend
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?

Thanks in advance :)
Re: Own editor plugin with "F3" feature [message #489001 is a reply to message #488891] Thu, 01 October 2009 07:56 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
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.

Dani
>
> Thanks in advance :)
>
>
>
Previous Topic:Freeware eclipse plugins?
Next Topic:Subversion hidden files in "Open Resource"
Goto Forum:
  


Current Time: Fri Apr 26 18:14:50 GMT 2024

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

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

Back to the top