Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Does GEF support adding shortcut keys to palette items?
Does GEF support adding shortcut keys to palette items? [message #207130] Wed, 11 January 2006 09:56 Go to next message
Eclipse UserFriend
Originally posted by: shubhada.clovissolutions.com

Hi,

Can anybody tell me whether GEF supports adding shortcut keys to palette
items.
If so, may I know how it can be achieved programmatically.


Thanks in advance
Shubhada
Re: Does GEF support adding shortcut keys to palette items? [message #207308 is a reply to message #207130] Thu, 12 January 2006 22:06 Go to previous messageGo to next message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
In general, keyboard shortcuts are associated with actions, and a
PaletteEntry is no action.

I don't know what Randy would say, but I would create an action that
associates the same tool and factory as the PaletteEntry with the
EditDomain, then associate a keyboard shortcut with that action. It's not
beautiful, but it should work; I have done similar things before.

"Shubhada" <shubhada@clovissolutions.com> wrote in message
news:4ccd4c9b79c6ae2cc86b97ef85691fcc$1@www.eclipse.org...
> Hi,
>
> Can anybody tell me whether GEF supports adding shortcut keys to palette
> items.
> If so, may I know how it can be achieved programmatically.
>
>
> Thanks in advance
> Shubhada
>
Re: Does GEF support adding shortcut keys to palette items? [message #207468 is a reply to message #207308] Mon, 16 January 2006 16:44 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

We would like to display the keybinding in the palette entry's tooltip, and
support editing the binding in the customizer dialog. Unfortunately, we
haven't had the resources to get to this function yet.

The workaround is to programatically select the entry using an action or
similar.

"Felix L J Mayer" <felix.mayer@objectaid.com> wrote in message
news:dq6jsr$gkk$1@utils.eclipse.org...
> In general, keyboard shortcuts are associated with actions, and a
> PaletteEntry is no action.
>
> I don't know what Randy would say, but I would create an action that
> associates the same tool and factory as the PaletteEntry with the
> EditDomain, then associate a keyboard shortcut with that action. It's not
> beautiful, but it should work; I have done similar things before.
>
Previous Topic:Splitting a GEF editor in two
Next Topic:ConnectionAnchor
Goto Forum:
  


Current Time: Mon Sep 16 23:25:28 GMT 2024

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

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

Back to the top