autocomplete? [message #480105] |
Thu, 13 August 2009 20:21 |
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?
|
|
|
Powered by
FUDForum. Page generated in 0.01906 seconds