Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » click in an editor
click in an editor [message #9043] Sun, 14 December 2008 20:54 Go to next message
Brice Laurel is currently offline Brice LaurelFriend
Messages: 72
Registered: July 2009
Member
Hi list,

How can I simulate a click in an editor ?

thanks
Re: click in an editor [message #9090 is a reply to message #9043] Sun, 14 December 2008 21:46 Go to previous messageGo to next message
Ketan Patel is currently offline Ketan PatelFriend
Messages: 68
Registered: July 2009
Member
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 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
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 #9149 is a reply to message #9090] Mon, 15 December 2008 04:24 Go to previous messageGo to next message
Brice Laurel is currently offline Brice LaurelFriend
Messages: 72
Registered: July 2009
Member
I select an element in a palette and I want to click in an editor? Then a
picture will appear in my editor.

Thanks
Re: click in an editor [message #9167 is a reply to message #9149] Mon, 15 December 2008 04:47 Go to previous messageGo to next message
Ketan Patel is currently offline Ketan PatelFriend
Messages: 68
Registered: July 2009
Member
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 #9187 is a reply to message #9167] Mon, 15 December 2008 05:08 Go to previous messageGo to next message
Brice Laurel is currently offline Brice LaurelFriend
Messages: 72
Registered: July 2009
Member
Yes, I want to simulate a drag and drop in a GEF editor. I find now in
bugs.

Thanks for your help.
Re: click in an editor [message #9207 is a reply to message #9187] Mon, 15 December 2008 08:29 Go to previous messageGo to next message
Vincent MAHE is currently offline Vincent MAHEFriend
Messages: 129
Registered: July 2009
Senior Member
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 Go to previous message
Ketan Patel is currently offline Ketan PatelFriend
Messages: 68
Registered: July 2009
Member
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.
Previous Topic:Slow execution
Next Topic:focus on a specific shell
Goto Forum:
  


Current Time: Thu Dec 26 15:54:09 GMT 2024

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

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

Back to the top