Home » Eclipse Projects » Rich Client Platform (RCP) » Text field, AutoCompleteField: content proposal window not disappearing?
Text field, AutoCompleteField: content proposal window not disappearing? [message #666597] |
Thu, 21 April 2011 09:07 |
Kristian Rink Messages: 36 Registered: July 2009 |
Member |
|
|
Folks;
maybe a silly newbie'ish question, but somehow I just seem stuck in a
fundamental way: In my Eclipse RCP app, I have a swt.widgets.Text
field, with an AutoCompleteField "attached" to it, in order to provide
content proposals. Generally, this works rather well - writing text in
the text field makes the proposal list propose the right things. So
far, so good. Except for two things:
- I can't select using the mouse. No matter what I try, the selection
bar inside the proposal popup always jumps back and selects the very
first entry. Same happens while trying to use keyup/keydown - the
selection always immediately returns to the top of the proposal
list, kinda feels like the popup continuously being redrawn.
- Likewise, no matter what I do, I can't select anything from the
proposal list. Pressing ENTER, doing a mouse click, ... - nothing
happens. Once displayed, the only way to get rid of the proposal
popup again is to completely close the app and restart it. Not the
way it is intended to be, I suppose. ;)
So, I suppose I'm stuck at a rather low level of things, maybe forgot
adding an important listener anywhere, but so far I fail to see where.
The AutoCompleteField is displayed just like that, according to some
samples and tutorials I found around:
new AutoCompleteField(textControl, new TextContentAdapter(), content);
Is there anything I am missing? Anything else to take care of to make
it work? Maybe a platform specific issue (Eclipse Indigo / Ubuntu x86 /
GTK)?
TIA for any insights, all the best.
Kristian
|
|
|
Re: Text field, AutoCompleteField: content proposal window not disappearing? [message #667770 is a reply to message #666597] |
Mon, 02 May 2011 07:19 |
Dani Megert Messages: 3802 Registered: July 2009 |
Senior Member |
|
|
On 21.04.2011 11:07, Kristian Rink wrote:
> Folks;
>
> maybe a silly newbie'ish question, but somehow I just seem stuck in a
> fundamental way: In my Eclipse RCP app, I have a swt.widgets.Text
> field, with an AutoCompleteField "attached" to it, in order to provide
> content proposals. Generally, this works rather well - writing text in
> the text field makes the proposal list propose the right things. So
> far, so good. Except for two things:
>
> - I can't select using the mouse. No matter what I try, the selection
> bar inside the proposal popup always jumps back and selects the very
> first entry. Same happens while trying to use keyup/keydown - the
> selection always immediately returns to the top of the proposal
> list, kinda feels like the popup continuously being redrawn.
>
> - Likewise, no matter what I do, I can't select anything from the
> proposal list. Pressing ENTER, doing a mouse click, ... - nothing
> happens. Once displayed, the only way to get rid of the proposal
> popup again is to completely close the app and restart it. Not the
> way it is intended to be, I suppose. ;)
>
> So, I suppose I'm stuck at a rather low level of things, maybe forgot
> adding an important listener anywhere, but so far I fail to see where.
> The AutoCompleteField is displayed just like that, according to some
> samples and tutorials I found around:
>
>
> new AutoCompleteField(textControl, new TextContentAdapter(), content);
>
> Is there anything I am missing? Anything else to take care of to make
> it work? Maybe a platform specific issue (Eclipse Indigo / Ubuntu x86 /
> GTK)?
I didn't try the AutoCompleteField and it's hard to say whether you're
doing everything right. I suggest you create a small sample and then
file a bug against Platform UI. We use
org.eclipse.ui.fieldassist.ContentAssistCommandAdapter. Maybe that works
for you too.
Dani
> TIA for any insights, all the best.
> Kristian
|
|
|
Goto Forum:
Current Time: Tue Sep 24 13:50:04 GMT 2024
Powered by FUDForum. Page generated in 0.04066 seconds
|