use of org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem in project jbosstools-openshift by jbosstools.
the class GetOpenShiftIOTokenTest method checkPluginInSecureStorage.
private void checkPluginInSecureStorage() {
WorkbenchPreferenceDialog preferences = new WorkbenchPreferenceDialog();
preferences.open();
StoragePreferencePage storagePreferencePage = new StoragePreferencePage(preferences);
preferences.select(storagePreferencePage);
storagePreferencePage.selectContentTab();
DefaultTreeItem account = new DefaultTreeItem(new DefaultTree(storagePreferencePage, 1), "[Default Secure Storage]", "org.jboss.tools.openshift.io.core", "accounts", "OpenShift.io", DatastoreOS3.OPENSHIFT_IO_USERNAME);
account.select();
assertNotNull("Account does not exists in secure storage", account);
preferences.ok();
}
use of org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem in project jbosstools-openshift by jbosstools.
the class AbstractOpenShiftApplicationWizard method openWizardFromShellMenu.
/**
* Opens new application wizard via shell menu File - New. There has to be
* an existing connection in OpenShift explorer, otherwise method fails.
*/
public void openWizardFromShellMenu() {
new WorkbenchShell().setFocus();
new NewWizard().open();
new DefaultShell("New").setFocus();
new DefaultTreeItem("OpenShift", "OpenShift Application").select();
new NextButton().click();
signToOpenShiftAndClickNext();
new DefaultShell(OpenShiftLabel.Shell.NEW_APP_WIZARD).setFocus();
}
use of org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem in project jbosstools-hibernate by jbosstools.
the class LaunchConfigurationsDialog method setRevengFile.
/**
* Select reveng file
* @param path path to existing reveng file
*/
public void setRevengFile(String... path) {
new PushButton(this, "Setup...").click();
org.eclipse.reddeer.swt.api.Shell setupShell = new DefaultShell("Setup reverse engineering");
new PushButton(setupShell, "Use existing...").click();
org.eclipse.reddeer.swt.api.Shell selectShell = new DefaultShell("Select reverse engineering settings file");
new DefaultTreeItem(new DefaultTree(selectShell), path).select();
new OkButton(selectShell).click();
new WaitWhile(new ShellIsAvailable(selectShell));
new WaitWhile(new ShellIsAvailable(setupShell));
}
use of org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem 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();
}
use of org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem 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());
}
Aggregations