Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Re: Temporarily disabling editor action.
Re: Temporarily disabling editor action. [message #304976] Tue, 20 June 2006 10:28 Go to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Torkild U. Resheim wrote:
> I'm writing a line draw feature for my editor and need to use the CTRL+
> arrow keys. These are taken by actions so I'm trying to disable these and
> use a VerifyKeyListener to produce the characters. The disabling code looks
> like this:
>
> IKeyBindingService service = getEditorSite().getKeyBindingService();
> IAction down = getAction("org.eclipse.ui.edit.text.scroll.lineDown");
> service.unregisterAction(down);
>
> The action is disabled but CTRL+DOWN is still intercepted. Is there any way
> I can remedy this.


Redirected to eclipse.platform, it's a platform question.

Later,
PW


Re: Temporarily disabling editor action. [message #305010 is a reply to message #304976] Wed, 21 June 2006 04:32 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
Paul Webster wrote:

> Torkild U. Resheim wrote:
>
>> I'm writing a line draw feature for my editor and need to use the CTRL+
>> arrow keys. These are taken by actions so I'm trying to disable these
>> and
>> use a VerifyKeyListener to produce the characters. The disabling code
>> looks
>> like this:
>>
>> IKeyBindingService service = getEditorSite().getKeyBindingService();
>> IAction down = getAction("org.eclipse.ui.edit.text.scroll.lineDown");
>> service.unregisterAction(down);
>>
>> The action is disabled but CTRL+DOWN is still intercepted. Is there
>> any way
>> I can remedy this.
>
I guess the widget is handling it by itself.

Dani

>
>
> Redirected to eclipse.platform, it's a platform question.
>
> Later,
> PW
Previous Topic:How to update editor after preferences changed !
Next Topic:How can detect if a perspective is switched to another one
Goto Forum:
  


Current Time: Fri Jul 25 19:23:52 EDT 2014

Powered by FUDForum. Page generated in 0.02528 seconds