Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Select element in TableViewer starting with a specific character
Select element in TableViewer starting with a specific character [message #333468] Fri, 12 December 2008 11:37 Go to next message
Florian Bartels is currently offline Florian BartelsFriend
Messages: 4
Registered: July 2009
Junior Member
Hello,

when the user presses for example the key "k" the tableviewer should
iterate over all rows in the table where the content of a specific
column starts with a "k". Basically the same as in the Windows Explorer.

I tried to write my own KeyListener. It works, but something is
happening in the background: My machine "beeps" when pressing a key.


Thank you!
Re: Select element in TableViewer starting with a specific character [message #333469 is a reply to message #333468] Fri, 12 December 2008 11:48 Go to previous messageGo to next message
Remy Suen is currently offline Remy SuenFriend
Messages: 462
Registered: July 2009
Senior Member
Florian Bartels wrote:
> Hello,
>
> when the user presses for example the key "k" the tableviewer should
> iterate over all rows in the table where the content of a specific
> column starts with a "k". Basically the same as in the Windows Explorer.
>
> I tried to write my own KeyListener. It works, but something is
> happening in the background: My machine "beeps" when pressing a key.

Are you talking about the first column or any arbitrary column? The
first column seems to work fine for me. It'll search my table's first
column properly. I do not get a beep and did not attach any KeyListeners.

Remy
Re: Select element in TableViewer starting with a specific character [message #333470 is a reply to message #333469] Fri, 12 December 2008 12:14 Go to previous message
Florian Bartels is currently offline Florian BartelsFriend
Messages: 4
Registered: July 2009
Junior Member
Am 12.12.2008 12:48, schrieb Remy Chi Jian Suen:
> Florian Bartels wrote:
>> Hello,
>>
>> when the user presses for example the key "k" the tableviewer should
>> iterate over all rows in the table where the content of a specific
>> column starts with a "k". Basically the same as in the Windows Explorer.
>>
>> I tried to write my own KeyListener. It works, but something is
>> happening in the background: My machine "beeps" when pressing a key.
>
> Are you talking about the first column or any arbitrary column? The
> first column seems to work fine for me. It'll search my table's first
> column properly. I do not get a beep and did not attach any KeyListeners.
>
> Remy

Unfortunately it is not the first column in which the name/label is
shown. So it does not work "out of the box".

Florian
Previous Topic:apache.commons.logging 1.0.4 with two different build dates
Next Topic:Question: the software items you selected may not be valid...bug?
Goto Forum:
  


Current Time: Fri Apr 19 15:26:00 GMT 2024

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

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

Back to the top