private SWTWorkbenchBot bot = new SWTWorkbenchBot();
public void createClass(String packageName, String className) {
bot.menu("File").menu("New").menu("Class").click();
SWTBotShell shell = bot.shell("New Java Class");
shell.activate();
bot.textWithLabel("Package:").setText(packageName);
bot.textWithLabel("Name:").setText(className);
bot.button("Finish").click();
bot.waitUntil(Conditions.shellCloses(shell));