Search in sources :

Example 11 with TableItem

use of org.eclipse.reddeer.swt.api.TableItem in project jbosstools-openshift by jbosstools.

the class OpenShift3SSLCertificatePreferencePage method deleteAll.

public void deleteAll() {
    log.info("Deleting all accepted Untrusted SSL Certificates used by Opneshift 3 tooling");
    DefaultTable table = new DefaultTable();
    List<TableItem> tableItems = table.getItems();
    if (tableItems.isEmpty()) {
        return;
    }
    for (TableItem item : tableItems) {
        item.select();
        new PushButton("Delete").click();
    }
}
Also used : TableItem(org.eclipse.reddeer.swt.api.TableItem) DefaultTable(org.eclipse.reddeer.swt.impl.table.DefaultTable) PushButton(org.eclipse.reddeer.swt.impl.button.PushButton)

Aggregations

TableItem (org.eclipse.reddeer.swt.api.TableItem)11 DefaultTable (org.eclipse.reddeer.swt.impl.table.DefaultTable)5 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)4 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)4 PushButton (org.eclipse.reddeer.swt.impl.button.PushButton)3 Test (org.junit.Test)3 AbstractImageBotTest (org.eclipse.linuxtools.docker.integration.tests.image.AbstractImageBotTest)2 PropertySheet (org.eclipse.reddeer.eclipse.ui.views.properties.PropertySheet)2 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)2 YesButton (org.eclipse.reddeer.swt.impl.button.YesButton)2 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)2 OpenShiftExplorerView (org.jboss.tools.openshift.reddeer.view.OpenShiftExplorerView)2 OpenShiftProject (org.jboss.tools.openshift.reddeer.view.resources.OpenShiftProject)2 DeleteResourcesWizard (org.jboss.tools.openshift.reddeer.wizard.v3.DeleteResourcesWizard)2 ArrayList (java.util.ArrayList)1 DockerContainersTab (org.eclipse.linuxtools.docker.reddeer.ui.DockerContainersTab)1 DockerImagesTab (org.eclipse.linuxtools.docker.reddeer.ui.DockerImagesTab)1 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)1 WidgetIsFound (org.eclipse.reddeer.core.condition.WidgetIsFound)1 WithTextMatcher (org.eclipse.reddeer.core.matcher.WithTextMatcher)1