use of org.eclipse.reddeer.workbench.ui.dialogs.WorkbenchPreferenceDialog in project jbosstools-openshift by jbosstools.
the class DisableSecureStorageRequirement method setSecureStorageMasterPasswords.
private void setSecureStorageMasterPasswords(boolean checked) {
WorkbenchPreferenceDialog preferenceDialog = new WorkbenchPreferenceDialog();
StoragePreferencePage storagePage = new StoragePreferencePage(preferenceDialog);
preferenceDialog.open();
preferenceDialog.select(storagePage);
try {
new WaitUntil(new WidgetIsFound(org.eclipse.swt.custom.CLabel.class, new WithMnemonicTextMatcher("Secure Storage")), TimePeriod.DEFAULT);
log.info("Getting master password providers");
List<PasswordProvider> items = storagePage.getMasterPasswordProviders();
for (PasswordProvider item : items) {
log.info("Uncheking table item: " + item.getDescription());
item.setEnabled(checked);
}
new WaitUntil(new JobIsRunning(), TimePeriod.DEFAULT, false);
storagePage.apply();
} catch (WaitTimeoutExpiredException exc) {
log.error("Secure Storage preferences page has timed out");
log.error(exc.getMessage());
} finally {
preferenceDialog.ok();
}
}
use of org.eclipse.reddeer.workbench.ui.dialogs.WorkbenchPreferenceDialog in project jbosstools-openshift by jbosstools.
the class CDKServerAdapterAbstractTest method printCertificates.
/**
* Prints out Openshift 3 accepted certificates
*/
protected static void printCertificates() {
WorkbenchPreferenceDialog dialog = new WorkbenchPreferenceDialog();
dialog.open();
OpenShift3SSLCertificatePreferencePage preferencePage = new OpenShift3SSLCertificatePreferencePage(dialog);
dialog.select(preferencePage);
preferencePage.printCertificates();
dialog.ok();
}
use of org.eclipse.reddeer.workbench.ui.dialogs.WorkbenchPreferenceDialog in project jbosstools-openshift by jbosstools.
the class GetOpenShiftIOTokenTest method removeAccountFromOpenShiftIOPreferencePage.
private static void removeAccountFromOpenShiftIOPreferencePage() {
WorkbenchPreferenceDialog preferences = new WorkbenchPreferenceDialog();
preferences.open();
OpenShifIOPreferencePage page = new OpenShifIOPreferencePage(preferences);
preferences.select(page);
if (page.existsOpenShiftIOAccount()) {
page.remove();
}
preferences.ok();
}
use of org.eclipse.reddeer.workbench.ui.dialogs.WorkbenchPreferenceDialog in project jbosstools-openshift by jbosstools.
the class TestUtils method setOCBinaryPath.
private static void setOCBinaryPath(boolean setUp) {
WorkbenchPreferenceDialog dialog = new WorkbenchPreferenceDialog();
OpenShift3PreferencePage page = new OpenShift3PreferencePage(dialog);
dialog.open();
dialog.select(page);
if (setUp) {
page.setOCLocation(OpenShiftCommandLineToolsRequirement.getDefaultOCLocation());
} else {
page.clearOCLocation();
}
page.apply();
dialog.ok();
}
use of org.eclipse.reddeer.workbench.ui.dialogs.WorkbenchPreferenceDialog 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();
}
Aggregations