Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » filtering comboviewer on linux and mac(Is it possible to filter combo choices on linux and mac)
filtering comboviewer on linux and mac [message #719203] Fri, 26 August 2011 07:51 Go to next message
Mark Fishman is currently offline Mark Fishman
Messages: 27
Registered: March 2011
Junior Member
This is a pretty basic question but I could not find anything about it on the forum so I figured that I would ask. I have a comboviewer for which I implemented a auto-complete capability by adding a viewerfilter and a keylistener to it. What I mean by auto-complete is that as the user types in the combo, I want the choices in the combo's pull down to filter down to just the set that contains the string that I have typed. Using a ViewerFilter and KeyListener combination worked great on Windows to get this effect but when I tested the same solution on Linux and Mac the filtering seemed to be ignored.

My question is, should have using a viewerfilter and keylistener worked on these platforms? I just want to know whether I should be looking for a bug in my implementation or whether changing the combo choices once the combo is expanded is just not supported on these platforms and I need to consider using the AutoCompleteField or some other solution instead.

Thanks.

-- Mark
Re: filtering comboviewer on linux and mac [message #719963 is a reply to message #719203] Mon, 29 August 2011 10:53 Go to previous messageGo to next message
Grant Gayed is currently offline Grant Gayed
Messages: 2149
Registered: July 2009
Senior Member
Hi Mark,

Assuming you mean an org.eclipse.jface.viewers.ComboViewer, you should
ask this on the eclipse.platform.jface newsgroup, since jface is not
part of swt.

Not sure if it's helpful or not, but for an example of doing something
somewhat similar (content assist) at the swt level see
http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet320.java
..

Grant


On 8/26/2011 7:51 AM, mfishm1 wrote:
> This is a pretty basic question but I could not find anything about it
> on the forum so I figured that I would ask. I have a comboviewer for
> which I implemented a auto-complete capability by adding a viewerfilter
> and a keylistener to it. What I mean by auto-complete is that as the
> user types in the combo, I want the choices in the combo's pull down to
> filter down to just the set that contains the string that I have typed.
> Using a ViewerFilter and KeyListener combination worked great on Windows
> to get this effect but when I tested the same solution on Linux and Mac
> the filtering seemed to be ignored.
> My question is, should have using a viewerfilter and keylistener worked
> on these platforms? I just want to know whether I should be looking for
> a bug in my implementation or whether changing the combo choices once
> the combo is expanded is just not supported on these platforms and I
> need to consider using the AutoCompleteField or some other solution
> instead.
>
> Thanks.
>
> -- Mark
>
Re: filtering comboviewer on linux and mac [message #719986 is a reply to message #719963] Mon, 29 August 2011 11:53 Go to previous message
Mark Fishman is currently offline Mark Fishman
Messages: 27
Registered: March 2011
Junior Member
Hi Grant,

Yes, I did. I apologize for sending to the wrong group. I will try to be more careful in the future.

Thanks for forwarding me to the snippet. That does look helpful.

-- Mark
Previous Topic:MessageBox orientation
Next Topic:Windows 7: how to open e-mail client
Goto Forum:
  


Current Time: Sat Aug 30 04:41:50 EDT 2014

Powered by FUDForum. Page generated in 0.01667 seconds