Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 Go to next message
Kristian Rink is currently offline 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 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
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
Previous Topic:Open external files in RCP Application
Next Topic:Dynamically enable/disable a command issue
Goto Forum:
  


Current Time: Sat Nov 01 04:10:32 GMT 2014

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

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