use of org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem in project jbosstools-hibernate by jbosstools.
the class KnownConfigurationsView method selectNode.
/**
* Select tree under hibernate console configuration tree
* @param path given path starting with console name
*/
public void selectNode(String... path) {
for (int i = 1; i < path.length; i++) {
String[] partialPath = Arrays.copyOf(path, i);
new WaitUntil(new DatabaseTreeItemIsFound(partialPath));
}
new DefaultTreeItem(path).select();
}
use of org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem 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));
}
use of org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem in project jbosstools-hibernate by jbosstools.
the class ProjectConfigurationFactory method convertProjectToFacetsForm.
/**
* Convert project to facet form
* @param prj given project name
*/
public static void convertProjectToFacetsForm(String prj) {
ProjectExplorer pe = new ProjectExplorer();
pe.open();
PropertyDialog pd = pe.getProject(prj).openProperties();
pd.select("Project Facets");
// convert to faceted form
new DefaultTreeItem("Project Facets").select();
new DefaultLink("Convert to faceted form...").click();
new WaitWhile(new JobIsRunning());
new WaitUntil(new WidgetIsFound(Button.class, new WithStyleMatcher(SWT.PUSH), new WithMnemonicTextMatcher("Apply")), TimePeriod.LONG);
PushButton apply = new PushButton("Apply");
new WaitUntil(new ControlIsEnabled(apply));
apply.click();
pd.ok();
}
Aggregations