Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » autocomplete?
autocomplete? [message #480105] Thu, 13 August 2009 20:21 is currently offline kprevas+eclipse@gmail.comFriend
Messages: 2
Registered: July 2009
Junior Member
I've been having some problems with the autocomplete-related methods on
SWTBotEclipseEditor, and I'm wondering if I'm just going about things the
wrong way, because it seems pretty much unusable for anything beyond
simple cases.


- autoCompleteProposal() assumes that an autcomplete popup will appear,
and hence can't be used in the case where a single proposal is inserted

- I can't figure out a way to assert that no proposals are presented in a
given context where none are expected, short of catching a
TimeoutException - the method that just invokes the command without
waiting for the popup (activateAutoCompleteShell()) is private, as is the
method that waits for the popup to appear (autoCompleteAppears()).

- The call used to actually find the popup is"", mainWindow) -
I'm finding that there's often a second, invisible shell which matches
this condition, and that one is found in preference to the autocomplete
popup's shell. I've had to resort to a hack where at the beginning of
each test, I manually find any shells matching the condition and dispose
them myself. Seems like there should be a more robust way to find the
autocomplete popup, or failing that at least a popup that's actually

Is there something I'm missing, especially for the first case?
Previous Topic:SWTBot can't find the "File" menu
Next Topic:Setting values in the Properties View
Goto Forum:

Current Time: Fri Nov 27 08:23:39 GMT 2015

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

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