Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » CTRL+S
CTRL+S [message #273453] Wed, 06 October 2004 11:29 Go to next message
Eclipse UserFriend
I have a custom editor that I inherited from another group. Everything
works fine, except the editor doesn't respond to the CTRL+S keyboard
shortcut to save.

Is there a way to see who is consuming this event?
Re: CTRL+S [message #273693 is a reply to message #273453] Fri, 08 October 2004 16:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: douglas.pollock.magma.ca

Shawn L. Pecze wrote:

> I have a custom editor that I inherited from another group. Everything
> works fine, except the editor doesn't respond to the CTRL+S keyboard
> shortcut to save.
>
> Is there a way to see who is consuming this event?

Run with key binding debug options. You would need to create a file
some on disk called "options". In it put the following 4 lines:

org.eclipse.ui/debug=true
org.eclipse.ui/trace/contexts=true
org.eclipse.ui/trace/keyBindings=true
org.eclipse.ui/trace/keyBindings.verbose=true

Then, open a command prompt and run Eclipse. Start Eclipse with the
following additional parameter:

-debug C:\path\to\options


This might help. You could also check to see whether
AbstractTextEditor.createActions() is being called.



cheers,
d.
Re: CTRL+S [message #273765 is a reply to message #273693] Mon, 11 October 2004 12:51 Go to previous messageGo to next message
Eclipse UserFriend
Ok...I ran in debug mode with a break point in the AbstractTextEditor's
createActions function, and that never seems to get called.

Am I supposed to call this, or is this supposed to happen automatically?

Thanks!

"Douglas Pollock" <douglas.pollock@magma.ca> wrote in message
news:ck6s6p$r1e$4@eclipse.org...
> Shawn L. Pecze wrote:
>
> > I have a custom editor that I inherited from another group. Everything
> > works fine, except the editor doesn't respond to the CTRL+S keyboard
> > shortcut to save.
> >
> > Is there a way to see who is consuming this event?
>
> Run with key binding debug options. You would need to create a file
> some on disk called "options". In it put the following 4 lines:
>
> org.eclipse.ui/debug=true
> org.eclipse.ui/trace/contexts=true
> org.eclipse.ui/trace/keyBindings=true
> org.eclipse.ui/trace/keyBindings.verbose=true
>
> Then, open a command prompt and run Eclipse. Start Eclipse with the
> following additional parameter:
>
> -debug C:\path\to\options
>
>
> This might help. You could also check to see whether
> AbstractTextEditor.createActions() is being called.
>
>
>
> cheers,
> d.
>
Re: CTRL+S [message #273872 is a reply to message #273765] Wed, 13 October 2004 09:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Shawn L. Pecze wrote:

>Ok...I ran in debug mode with a break point in the AbstractTextEditor's
>createActions function, and that never seems to get called.
>
>
Did you overwrite it without calling super?

Dani

>Am I supposed to call this, or is this supposed to happen automatically?
>
>Thanks!
>
>"Douglas Pollock" <douglas.pollock@magma.ca> wrote in message
>news:ck6s6p$r1e$4@eclipse.org...
>
>
>>Shawn L. Pecze wrote:
>>
>>
>>
>>>I have a custom editor that I inherited from another group. Everything
>>>works fine, except the editor doesn't respond to the CTRL+S keyboard
>>>shortcut to save.
>>>
>>>Is there a way to see who is consuming this event?
>>>
>>>
>>Run with key binding debug options. You would need to create a file
>>some on disk called "options". In it put the following 4 lines:
>>
>> org.eclipse.ui/debug=true
>> org.eclipse.ui/trace/contexts=true
>> org.eclipse.ui/trace/keyBindings=true
>> org.eclipse.ui/trace/keyBindings.verbose=true
>>
>>Then, open a command prompt and run Eclipse. Start Eclipse with the
>>following additional parameter:
>>
>> -debug C:\path\to\options
>>
>>
>>This might help. You could also check to see whether
>>AbstractTextEditor.createActions() is being called.
>>
>>
>>
>>cheers,
>>d.
>>
>>
>>
>
>
>
>
Re: CTRL+S [message #273900 is a reply to message #273872] Wed, 13 October 2004 11:21 Go to previous message
Eclipse UserFriend
I did over write the createActions function, but the first line in my
function is super.createActoins();

Am I supposed to call this function somewhere in my code, or does the
Workbench do it for me automatically?
Previous Topic:Assign CTRL+PageUp to another key
Next Topic:Disaster struck!
Goto Forum:
  


Current Time: Wed Sep 24 18:16:45 EDT 2025

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

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

Back to the top