use of org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem in project jbosstools-openshift by jbosstools.
the class StoreConnectionTest method invokeNewAppWizardFromCentral.
private void invokeNewAppWizardFromCentral() {
new DefaultToolItem(new WorkbenchShell(), OpenShiftLabel.Others.RED_HAT_CENTRAL).click();
new WaitUntil(new CentralIsLoaded());
new InternalBrowser().execute(OpenShiftLabel.Others.OPENSHIFT_CENTRAL_SCRIPT);
new WaitUntil(new ShellIsAvailable(OpenShiftLabel.Shell.NEW_APP_WIZARD), TimePeriod.LONG);
new DefaultShell("New OpenShift Application");
}
use of org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem in project jbosstools-openshift by jbosstools.
the class OpenShiftExplorerView method openConnectionShellViaToolItem.
/**
* Opens a new connection shell through tool item located in the top right
* corner of OpenShift Explorer.
*/
public void openConnectionShellViaToolItem() {
open();
DefaultToolItem connectionButton = new DefaultToolItem(OpenShiftLabel.Others.CONNECT_TOOL_ITEM);
connectionButton.click();
}
use of org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem in project jbosstools-openshift by jbosstools.
the class OpenShiftProject method togglePinPropertiesView.
/**
* Sets properties view to pinned or not for selected domain. Properties
* view has to be opened to perform this method.
*
* @param toggle toggle pinned properties view or not
*/
public void togglePinPropertiesView(boolean toggle) {
ToolItem pinItem = new DefaultToolItem("Pins this property view to the current selection");
pinItem.toggle(toggle);
}
use of org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem in project jbosstools-hibernate by jbosstools.
the class CriteriaEditor method runCriteria.
/**
* Executes criteria
*/
public void runCriteria() {
new DefaultToolItem("Run criteria").click();
try {
Shell s = new DefaultShell("Open Session factory");
new YesButton(s).click();
new WaitWhile(new ShellIsAvailable(s));
} catch (RedDeerException e) {
log.warn("Open Session factory question dialog was expected");
} finally {
new WaitWhile(new JobIsRunning());
}
}
use of org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem in project jbosstools-hibernate by jbosstools.
the class LaunchConfigurationsDialog method createNewConfiguration.
/**
* Creates new hibernate launch configuration
*/
public void createNewConfiguration() {
new DefaultTreeItem(new DefaultTree(this), "Hibernate Code Generation").select();
new DefaultToolItem(this, "New launch configuration").click();
}
Aggregations