SWTEclipseBot bot = new SWTEclipseBot();
createJavaProject(bot);
createJavaClass(bot);
Thread.sleep(1000);
SWTBotEclipseEditor editor = bot.editor("HelloWorld.java");
Thread.sleep(1000);
editor.notifyKeyboardEvent(SWT.CTRL, '.');
editor.quickfix("Add unimplemented methods");
editor.navigateTo(7, 0);
editor.autoCompleteProposal("sys", "sysout - print to standard out");
editor.typeText("\"Hello World\"");
editor.navigateTo(3, 0);
editor.autoCompleteProposal("main", "main - main method");
editor.typeText("new Thread (new HelloWorld ());");
if (true)
return;
editor.notifyKeyboardEvent(SWT.CTRL, '2');
editor.notifyKeyboardEvent(SWT.NONE, 'L');
editor.notifyKeyboardEvent(SWT.NONE, '\n');
editor.typeText("\n");
editor.typeText("thread.start();\n");
editor.typeText("thread.join();");
editor.quickfix("Add throws declaration");
editor.notifyKeyboardEvent(SWT.NONE, (char) 27);
editor.notifyKeyboardEvent(SWT.NONE, '\n');
editor.notifyKeyboardEvent(SWT.CTRL, 's');
editor.notifyKeyboardEvent(SWT.ALT | SWT.SHIFT, 'x');
editor.notifyKeyboardEvent(SWT.NONE, 'j');
try {
Thread.sleep(1000);
} catch (InterruptedException e1) {
e1.printStackTrace();