use of org.eclipse.linuxtools.docker.reddeer.preferences.RegistryAccountsPreferencePage in project linuxtools by eclipse.
the class AbstractImageBotTest method deleteRegister.
protected void deleteRegister(String serverAddress) {
WorkbenchPreferenceDialog dialog = new WorkbenchPreferenceDialog();
RegistryAccountsPreferencePage page = new RegistryAccountsPreferencePage(dialog);
dialog.open();
dialog.select(page);
page.removeRegistry(serverAddress);
new WaitWhile(new JobIsRunning());
dialog.ok();
}
use of org.eclipse.linuxtools.docker.reddeer.preferences.RegistryAccountsPreferencePage in project linuxtools by eclipse.
the class AbstractImageBotTest method setUpRegister.
protected void setUpRegister(String serverAddress, String email, String userName, String password) {
WorkbenchPreferenceDialog dialog = new WorkbenchPreferenceDialog();
RegistryAccountsPreferencePage page = new RegistryAccountsPreferencePage(dialog);
dialog.open();
dialog.select(page);
page.removeRegistry(serverAddress);
page.addRegistry(serverAddress, email, userName, password);
try {
new DefaultShell("New Registry Account").setFocus();
} catch (CoreLayerException e) {
new DefaultShell("Preferences").setFocus();
}
new PushButton("Apply and Close").click();
}
Aggregations