Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » autocomplete?
autocomplete? [message #480105] Thu, 13 August 2009 16:21
kprevas+eclipse@gmail.com is currently offline kprevas+eclipse@gmail.com
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.

Specifically:

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

- 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 bot.shell("", 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
visible.

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: Wed Aug 20 10:47:44 EDT 2014

Powered by FUDForum. Page generated in 0.11648 seconds