dcsimg
How to detect keyboard events within the editor?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, March 15, 2007 11:48 AM

I've seen some snippets showing the way to detect events (from keyboard) with swt in java applications, but I haven't found the way of detecting events within an editor that works in eclipse, preferredly, the main editor. Any suggestions?? Thanks.

Re: How to detect keyboard events within the editor?

Posted By:   Anonymous  
Posted On:   Tuesday, March 20, 2007 04:06 AM

Hi,

If you want to do some thing on the event that is occur on the
editor of eclipse you have to see the library of eclipse.
ISelection and Action is a class present there actualy
it will provide you a selected object and you can implement
your logic there. Ex- Suppose you slelect a word on the editor
it means text present in active editor is selected so u can do more....



Thanks,

vinay
About | Sitemap | Contact