|
Re: click in an editor [message #9090 is a reply to message #9043] |
Sun, 14 December 2008 21:46   |
Eclipse User |
|
|
|
Can you be more specific what you want to do? If all you want to do is
set focus then look at setFocus method in SWTBotEclipseEditor. This will
work only if the editor has styled text.
Brice Laurel wrote:
> Hi list,
> How can I simulate a click in an editor ?
> thanks
|
|
|
Re: click in an editor [message #9129 is a reply to message #9043] |
Mon, 15 December 2008 04:19   |
Eclipse User |
|
|
|
Brice,
The content of your questions is not really helping anyone answer your
questions; which is the reason that you do not receive any responses.
Do not expect any responses until there's more context, symptoms and ay
other information to the problem that you're trying to solve.
I'd recommend reading http://www.catb.org/~esr/faqs/smart-questions.html
before you post any more questions.
-- Ketan
On 15/12/08 02:24, Brice Laurel wrote:
> Hi list,
>
> How can I simulate a click in an editor ?
>
> thanks
>
|
|
|
|
Re: click in an editor [message #9167 is a reply to message #9149] |
Mon, 15 December 2008 04:47   |
Eclipse User |
|
|
|
I still don't really understand what you are trying to do. But if you
just want to click inside the editor, assuming editor has styled text,
then just use the widget field and call click.
But it seems like what you are trying to do is either drag and drop in an
GEF editor...which is not going to work the way I said it. I don't think
GEF is supported by SWTBot but there is a initial implementation provided
by someone. Search the bugs for it.
|
|
|
|
Re: click in an editor [message #9207 is a reply to message #9187] |
Mon, 15 December 2008 08:29   |
Eclipse User |
|
|
|
Brice Laurel a écrit :
> Yes, I want to simulate a drag and drop in a GEF editor. I find now in
> bugs.
>
> Thanks for your help.
>
For the moment, SWTBotEditor is built around Eclipse TEXT editor so it
cannot manage graphical editors.
I did a hack locally on my SWTBot source code to manage every editor,
but it is not easily upgradable in source main steam.
Vincent
|
|
|
Re: click in an editor [message #10328 is a reply to message #9207] |
Mon, 15 December 2008 20:28  |
Eclipse User |
|
|
|
That's great...I am hoping the eclipse editor api change a little to
remove that assumption. Can you write up a bug and post your code, if you
like to contribute and maybe others can try to provide api to do such
things.
|
|
|
Powered by
FUDForum. Page generated in 0.24909 seconds