Ketan Padegaonkar a écrit :
I'm able to use bot.editor, and that's what most of the tests that we
use at work use, all the time. The SWTBotEclipseEditor.findEditors()
is more like convenience API which is used internally. I'm not sure
how and why I marked it public.
Clearly this could be a bug in SWTBot. Could you provide more
information as to what's happening, along with some stacktrace on the
bugzilla (bugs.swtbot.org) ? Stuff I can reproduce would be useful.
I encounter a similar problem when I try to catch an EMF model editor
with bot.activeEditor() or bot.editor(fileName).
It is because SWTBotEclipseEditor encapsulate a StyledText editor, which
is a specialized subclass of IEditorReference.
The SWTBotEclipseEditor should be maintain generic and a specialized
SWTBotEclipseTextEditor should contain StyledText specific code. I will
propose a patch for this soon (but it constitutes a non trivial change
in SWTBot API).
-- Ketan
On 04-Oct-08, at 3:42 PM, Bob Mattei wrote:
Wow - thanks for the quick response,
I didn't state the problem clearly.
The problem is I can find the editor using
SWTBotEclipseEditor.findEditors() but not with bot.editor(editorName).
Also if I try to instantiate a new SWTBotEclipseEditor
Also, if I try to instantiate a new SWTBotEclipseEditor with the
IEditorReference returned by findEditors it throw the
WidgetNotFoundException.
There seems to be no way for me to get an SWTBotEclipseEditor for this
editor.
--
Cordialement
Vincent MAHÉ
Ingénieur Plate-forme OpenEmbeDD - http://openembedd.org
IRISA-INRIA, Campus de Beaulieu, 35042 Rennes cedex, France
Tél: +33 (0) 2 99 84 71 00, Fax: +33 (0) 2 99 84 71 71
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
SWTBot-users mailing list
SWTBot-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swtbot-users
http://swtbot.org/ - a functional testing tool for SWT/Eclipse