Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Keyboard shortcuts disappeard ?
Keyboard shortcuts disappeard ? [message #459113] Tue, 02 August 2005 10:31 Go to next message
Vincent Etter is currently offline Vincent EtterFriend
Messages: 72
Registered: July 2009
Member
Hello !

I've set some keyboard shortcuts on my menu items using setText (e.g.
setText("Exit@Ctrl+E")). But now I have this error on runtime :

Invalid Menu Extension (Path is invalid):
org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction

The shortcuts are not displayed and don't work anymore. Is it becase of
the error ? What means this error ?

Thanks

Vincent
Re: Keyboard shortcuts disappeard ? [message #459142 is a reply to message #459113] Tue, 02 August 2005 14:18 Go to previous messageGo to next message
Vincent Etter is currently offline Vincent EtterFriend
Messages: 72
Registered: July 2009
Member
Vincent Etter a écrit :
> Hello !
>
> I've set some keyboard shortcuts on my menu items using setText (e.g.
> setText("Exit@Ctrl+E")). But now I have this error on runtime :
>
> Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction
>
> The shortcuts are not displayed and don't work anymore. Is it becase of
> the error ? What means this error ?
>
> Thanks
>
> Vincent

I solved the invalid menu extension issue but my shortcuts didn't
re-appeared...

Someone has an idea ?
Re: Keyboard shortcuts disappeard ? [message #459159 is a reply to message #459142] Tue, 02 August 2005 19:00 Go to previous messageGo to next message
Douglas Pollock is currently offline Douglas PollockFriend
Messages: 84
Registered: July 2009
Member
Vincent Etter wrote:
>> I've set some keyboard shortcuts on my menu items using setText (e.g.
>> setText("Exit@Ctrl+E")). But now I have this error on runtime :

You should read IAction.setAccelerator(...) and see if it applies to you
(hint: if you are using the "org.eclipse.ui.workbench" plug-in in your app,
then it does).

In that case, you probably want to use the commands and bindings extension
points to define the binding. Questions about these extension points are
best asked on the eclipse.platform newsgroup.



cheers,
d.
Re: Keyboard shortcuts disappeard ? [message #459202 is a reply to message #459159] Wed, 03 August 2005 10:35 Go to previous messageGo to next message
Vincent Etter is currently offline Vincent EtterFriend
Messages: 72
Registered: July 2009
Member
Douglas Pollock a écrit :
> You should read IAction.setAccelerator(...) and see if it applies to you
> (hint: if you are using the "org.eclipse.ui.workbench" plug-in in your app,
> then it does).
>
> In that case, you probably want to use the commands and bindings extension
> points to define the binding. Questions about these extension points are
> best asked on the eclipse.platform newsgroup.
>
>
>
> cheers,
> d.
>

I tried action.setAccelerator(SWT.CTRL | 'E') but it doesn't work. This
is very strange because it worked fine last week...
Re: Keyboard shortcuts disappeard ? [message #459223 is a reply to message #459202] Wed, 03 August 2005 18:39 Go to previous messageGo to next message
Douglas Pollock is currently offline Douglas PollockFriend
Messages: 84
Registered: July 2009
Member
Vincent Etter wrote:
> I tried action.setAccelerator(SWT.CTRL | 'E') but it doesn't work. This
> is very strange because it worked fine last week...

I just remembered something. If you are using a recent 3.2 I-build, then
this will be broken. The change made by Bug 90355 broke the setAccelerator
case in the Eclipse workbench.



cheers,
d.
Re: Keyboard shortcuts disappeard ? [message #459240 is a reply to message #459223] Thu, 04 August 2005 08:01 Go to previous messageGo to next message
Vincent Etter is currently offline Vincent EtterFriend
Messages: 72
Registered: July 2009
Member
Douglas Pollock a écrit :
> I just remembered something. If you are using a recent 3.2 I-build, then
> this will be broken. The change made by Bug 90355 broke the setAccelerator
> case in the Eclipse workbench.
>
>
>
> cheers,
> d.
>

So keyboard shortcuts are no more available ??
Re: Keyboard shortcuts disappeard ? [message #459250 is a reply to message #459240] Thu, 04 August 2005 14:00 Go to previous messageGo to next message
Douglas Pollock is currently offline Douglas PollockFriend
Messages: 84
Registered: July 2009
Member
Vincent Etter wrote:
> So keyboard shortcuts are no more available ??

No, the particular mechanism you are trying to use (action.setAccelerator)
-- which is deprecated -- won't work in the current 3.2 I-builds. We are
working on resolving this issue.



d.
Re: Keyboard shortcuts disappeard ? [message #459309 is a reply to message #459250] Fri, 05 August 2005 09:53 Go to previous message
Vincent Etter is currently offline Vincent EtterFriend
Messages: 72
Registered: July 2009
Member
Douglas Pollock a écrit :
> No, the particular mechanism you are trying to use (action.setAccelerator)
> -- which is deprecated -- won't work in the current 3.2 I-builds. We are
> working on resolving this issue.
>
>
>
> d.
>

I'm sorry but I don't think I'm using 3.2 ;) ! In fact the problem
appeared at the same time that a "Cheat Sheets..." item appeared in my
help menu. The shortcuts for the default actions (ActionFactory.QUIT,
....) do not work either...
Previous Topic:May I make checkbox of table read_only?
Next Topic:"Selected effect" on Label
Goto Forum:
  


Current Time: Fri Mar 29 05:23:53 GMT 2024

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

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

Back to the top