Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » scripting an editor in a JUnit test
scripting an editor in a JUnit test [message #188503] Wed, 20 July 2005 20:41 Go to next message
benedict heal is currently offline benedict healFriend
Messages: 28
Registered: July 2009
Junior Member
Within a JUnit test for an Editor, I want to simulate user input - e.g
button and mouse clicks.

I currently launch the editor using
IEditorPart editorPart = activePage.openEditor(editorInput, editorId);

How can I now simulate user input?

Many thanks,
Benedict
Re: scripting an editor in a JUnit test [message #188620 is a reply to message #188503] Thu, 21 July 2005 17:15 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Display.postEvent(Event)

"benedict heal" <bh@benedictheal.com> wrote in message
news:dbmctt$kv5$1@news.eclipse.org...
>
> Within a JUnit test for an Editor, I want to simulate user input - e.g
> button and mouse clicks.
>
> I currently launch the editor using
> IEditorPart editorPart = activePage.openEditor(editorInput, editorId);
>
> How can I now simulate user input?
>
> Many thanks,
> Benedict
Previous Topic:Deleting connections in the standalone GEF sample
Next Topic:draw2d label setPreferredSize() method does not set prefSize
Goto Forum:
  


Current Time: Fri Dec 13 02:53:49 GMT 2024

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

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

Back to the top