Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » java editor
java editor [message #211856] Thu, 24 May 2007 05:59 Go to next message
Eclipse UserFriend
Originally posted by: hema.gandhi.appulse.com

Hey Eric,

Iam making my custom java editor and want to trap keyboard events so that
i get the characters typed on the editor.

For that I implemented VerifykeyListener and on my source viewer used
prependVerifyKeyListener()but this doesn't worked out.

Please direct me how i can achieve this.am I in the right direction.

Thanks
Re: java editor [message #211871 is a reply to message #211856] Thu, 24 May 2007 11:24 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
hema wrote:

> Hey Eric,
>
> Iam making my custom java editor and want to trap keyboard events so
> that i get the characters typed on the editor.
>
> For that I implemented VerifykeyListener and on my source viewer used
> prependVerifyKeyListener()but this doesn't worked out.
>
> Please direct me how i can achieve this.am I in the right direction.

What do you want to do in the end?

Dani

>
> Thanks
>
Re: java editor [message #212044 is a reply to message #211871] Fri, 25 May 2007 06:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hema.gandhi.appulse.com

Daniel Megert wrote:

> hema wrote:

>> Hey Eric,
>>
>> Iam making my custom java editor and want to trap keyboard events so
>> that i get the characters typed on the editor.
>>
>> For that I implemented VerifykeyListener and on my source viewer used
>> prependVerifyKeyListener()but this doesn't worked out.
>>
>> Please direct me how i can achieve this.am I in the right direction.

> What do you want to do in the end?

> Dani

>>
>> Thanks
>>
Actually Iam working on something which get the characters typed on one
editor and display that contents on the other editor remotely ,of course
for the same file.
I got the typed character by trapping documentEvent but want to know how
to reflect those changes in the other Document so that on editor it
displays the changed document.
Thanks
Re: java editor [message #212060 is a reply to message #212044] Fri, 25 May 2007 08:07 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
hema wrote:

> Daniel Megert wrote:
>
>> hema wrote:
>
>
>>> Hey Eric,
>>>
>>> Iam making my custom java editor and want to trap keyboard events so
>>> that i get the characters typed on the editor.
>>>
>>> For that I implemented VerifykeyListener and on my source viewer
>>> used prependVerifyKeyListener()but this doesn't worked out.
>>>
>>> Please direct me how i can achieve this.am I in the right direction.
>>
>
>> What do you want to do in the end?
>
>
>> Dani
>
>
>>>
>>> Thanks
>>>
> Actually Iam working on something which get the characters typed on
> one editor and display that contents on the other editor remotely ,of
> course for the same file.
> I got the typed character by trapping documentEvent but want to know
> how to reflect those changes in the other Document so that on editor
> it displays the changed document.

The VerifyKeyListener should work (file a bug with steps to reproduce if
it doesn't) and you could also use an ITextListener on the viewer.

Dani

> Thanks
>
Previous Topic:OEM when opening text file
Next Topic:Selecting NOT with Shift+some_arrow
Goto Forum:
  


Current Time: Tue Nov 12 19:46:39 GMT 2024

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

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

Back to the top