use of org.eclipse.reddeer.swt.impl.tree.DefaultTree in project jbosstools-hibernate by jbosstools.
the class KnownConfigurationsView method deleteConsoleConfiguration.
/**
* Deletes hibernate console configuration
* @param console hibernate console configuration name
*/
public void deleteConsoleConfiguration(String console) {
new DefaultTreeItem(new DefaultTree(this), console).select();
new ContextMenuItem("Delete Configuration").select();
Shell deleteShell = new DefaultShell("Delete console configuration");
new OkButton(deleteShell).click();
new WaitWhile(new ShellIsAvailable(deleteShell));
new WaitWhile(new JobIsRunning());
}
use of org.eclipse.reddeer.swt.impl.tree.DefaultTree in project jbosstools-hibernate by jbosstools.
the class ReverseEngineeringEditor method selectAllTables.
/**
* Select all tables within Add Tables & Columns tab
*/
public void selectAllTables(String databaseName) {
activateTableAndColumnsTab();
new PushButton(this, "Add...").click();
Shell s = new DefaultShell("Add Tables & Columns");
DefaultTree dbTree = new DefaultTree(s);
new WaitUntil(new TreeHasChildren(dbTree));
new WaitUntil(new TreeContainsItem(dbTree, databaseName));
new DefaultTreeItem(dbTree, databaseName).select();
new PushButton(s, "Select all children").click();
new PushButton(s, "OK").click();
new WaitWhile(new ShellIsAvailable(s));
}
Aggregations