use of org.jboss.tools.openshift.reddeer.preference.page.OpenShift3PreferencePage in project jbosstools-openshift by jbosstools.
the class OCBinaryLocationTest method openDialogAndSelectPage.
@Before
public void openDialogAndSelectPage() {
dialog = new WorkbenchPreferenceDialog();
page = new OpenShift3PreferencePage(dialog);
dialog.open();
dialog.select(page);
}
use of org.jboss.tools.openshift.reddeer.preference.page.OpenShift3PreferencePage 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.jboss.tools.openshift.reddeer.preference.page.OpenShift3PreferencePage in project jbosstools-openshift by jbosstools.
the class OpenShiftCommandLineToolsRequirement method openDialogAndSelectPage.
private void openDialogAndSelectPage() {
dialog = new WorkbenchPreferenceDialog();
page = new OpenShift3PreferencePage(dialog);
dialog.open();
dialog.select(page);
}
use of org.jboss.tools.openshift.reddeer.preference.page.OpenShift3PreferencePage in project jbosstools-openshift by jbosstools.
the class CDKTestUtils method setOCToPreferences.
public static void setOCToPreferences(String ocPath) {
WorkbenchPreferenceDialog dialog = new WorkbenchPreferenceDialog();
OpenShift3PreferencePage page = new OpenShift3PreferencePage(dialog);
dialog.open();
dialog.select(page);
page.setOCLocation(ocPath);
try {
new WaitUntil(new ControlIsEnabled(new PushButton("Apply")), TimePeriod.DEFAULT);
} catch (WaitTimeoutExpiredException exc) {
fail("WaitTimeoutExpiredException occured while processing oc binary on path " + ocPath);
}
page.apply();
dialog.cancel();
}
Aggregations