Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » How to Wait until the editor opens
How to Wait until the editor opens [message #689807] Tue, 28 June 2011 11:58
divithshetty is currently offline divithshettyFriend
Messages: 4
Registered: May 2011
Junior Member
Hi,

When the create Project wizard completes it creates one default file and opens that file. I want to wait until the file opens.

I wrote the below code snippet. But its not working. Can someone Please guide me how do i do this task.
//SWTBOt Code to open new project wizard goes here.

projectName.setText("MyNewProject");
Matcher withPartName = withPartName("fileName");
Matcher matcher = allOf(IsInstanceOf.instanceOf(IEditorReference.class), withPartName);


bot.button("Finish").click();
bot.waitUntil(Conditions.waitForEditor(matcher))

Thanks in Advance Smile
Previous Topic:How to navigate through various tabs in Eclipse search menu
Next Topic:cannot find Package Explorer if just import a project but okay after creating a new project
Goto Forum:
  


Current Time: Thu Apr 25 16:00:21 GMT 2024

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

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

Back to the top