Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Keybinding problem after inheriting the eclipse default scheme
Keybinding problem after inheriting the eclipse default scheme [message #516192] Tue, 23 February 2010 06:53 Go to next message
Zhang Peng is currently offline Zhang Peng
Messages: 30
Registered: July 2009
Member
Hi All,

I met a problem when using key binding mechanism. In my RCP product I
have to use the accelerate key combination: "M1+N" to open a new editor,
but unfortunately the eclipse UI has already give the default action for
this combination.

So I apply a new scheme for this, and let
org.eclipse.ui.defaultAcceleratorConfiguration be the parentId.

It appears normal when I press Ctrl+N slowly, but when I frequently
press the Ctrl+N several times(without intterrupt), the Original Eclipse
New Wizard shows, its useless for my product.

In my handler, the process is a little slow. I think that's the problem,
for if I removed all the codes in the handler.execute() function,
everything works fine.

I'm confused by this behavior, seems even if the new scheme activated,
the keybindings in the old scheme can still have high priority in some
situation? Does anyone have the idea about this and give me some clue?

Great thanks!
Re: Keybinding problem after inheriting the eclipse default scheme [message #516809 is a reply to message #516192] Thu, 25 February 2010 04:30 Go to previous messageGo to next message
Zhang Peng is currently offline Zhang Peng
Messages: 30
Registered: July 2009
Member
Can anyone give me a clue? Thanks!

On 2/23/2010 2:53 PM, nemo.zhp wrote:
> Hi All,
>
> I met a problem when using key binding mechanism. In my RCP product I
> have to use the accelerate key combination: "M1+N" to open a new editor,
> but unfortunately the eclipse UI has already give the default action for
> this combination.
>
> So I apply a new scheme for this, and let
> org.eclipse.ui.defaultAcceleratorConfiguration be the parentId.
>
> It appears normal when I press Ctrl+N slowly, but when I frequently
> press the Ctrl+N several times(without intterrupt), the Original Eclipse
> New Wizard shows, its useless for my product.
>
> In my handler, the process is a little slow. I think that's the problem,
> for if I removed all the codes in the handler.execute() function,
> everything works fine.
>
> I'm confused by this behavior, seems even if the new scheme activated,
> the keybindings in the old scheme can still have high priority in some
> situation? Does anyone have the idea about this and give me some clue?
>
> Great thanks!
Re: Keybinding problem after inheriting the eclipse default scheme [message #523529 is a reply to message #516809] Fri, 26 March 2010 17:29 Go to previous message
Vimal G is currently offline Vimal G
Messages: 5
Registered: March 2010
Location: Pune
Junior Member
Hi there,

Can you please share the code fragment of the plugin.xml ?

Regards,


Vimal G.
Programmer Analyst,
CTS, Pune
Previous Topic:customise the content of the OutlineView
Next Topic:Increase Heap space using INI file
Goto Forum:
  


Current Time: Mon Sep 22 18:21:30 GMT 2014

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

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