Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » keybinding to TextViewer
keybinding to TextViewer [message #326341] Sat, 15 March 2008 15:39 Go to next message
Eclipse UserFriend
I'm not sure how far off I am on building my editor. I have an editor that
contains a StyledText widget from a TextViewer. I want to add a right click
context menu to the widget. I implemented that from an example to create a
popup menu using a listener.

Now I want to add a keybinding when the widget has focus. When I entry
CTRL+U, I want the text to all change to uppercase. I want this also on the
option on the context menu.

How is the best way to implement this?
Re: keybinding to TextViewer [message #326381 is a reply to message #326341] Tue, 18 March 2008 10:51 Go to previous message
Eclipse UserFriend
Jay Simpson wrote:
> I'm not sure how far off I am on building my editor. I have an editor that
> contains a StyledText widget from a TextViewer.
From which class does your editor inherit?

Dani
> I want to add a right click
> context menu to the widget. I implemented that from an example to create a
> popup menu using a listener.
>
> Now I want to add a keybinding when the widget has focus. When I entry
> CTRL+U, I want the text to all change to uppercase. I want this also on the
> option on the context menu.
>
> How is the best way to implement this?
>
>
>
Previous Topic:Can I prevent the Help View from opening on F1?
Next Topic:Remove filter input from Wizard
Goto Forum:
  


Current Time: Wed May 07 16:03:29 EDT 2025

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

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

Back to the top