use of org.eclipse.reddeer.swt.impl.combo.DefaultCombo in project linuxtools by eclipse.
the class DockerImagesTab method pushImage.
public void pushImage(String imageName, String registryAccount, boolean forceTagging, boolean keepTaggedImage) {
selectImage(imageName);
new ContextMenu().getItem("Push...").select();
Combo combo = new DefaultCombo();
combo.setSelection(registryAccount);
new CheckBox("Force tagging image with selected registry").toggle(forceTagging);
new CheckBox("Keep tagged image upon completion").toggle(keepTaggedImage);
new FinishButton().click();
}
use of org.eclipse.reddeer.swt.impl.combo.DefaultCombo in project linuxtools by eclipse.
the class DockerImagesTab method removeTagFromImage.
public void removeTagFromImage(String imageName, String tagToBeRemoved) {
selectImage(imageName);
new ContextMenu().getItem("Remove Tag").select();
String fullTag = "";
Combo combo = new DefaultCombo();
List<String> comboItems = combo.getItems();
for (String item : comboItems) {
if (item.contains(tagToBeRemoved)) {
fullTag = item;
break;
}
}
combo.setSelection(fullTag);
new FinishButton().click();
}
use of org.eclipse.reddeer.swt.impl.combo.DefaultCombo in project linuxtools by eclipse.
the class RunDockerImageLaunchConfiguration method addDataVolumeToContainer.
public void addDataVolumeToContainer(String containerPath, String containerName) {
selectTab(VOLUMES_TAB_LABEL);
new PushButton("Add...").click();
new LabeledText("Container path:").setText(containerPath);
new RadioButton("Mount a data volume container").click();
new DefaultCombo("Container").setText(containerName);
new OkButton().click();
}
use of org.eclipse.reddeer.swt.impl.combo.DefaultCombo in project jbosstools-hibernate by jbosstools.
the class EditConfigurationMainPage method setDatabaseConnection.
/**
* Sets database connection for Hibernate Console Configuration
* @param connection given connection
*/
public void setDatabaseConnection(String connection) {
DefaultGroup g = new DefaultGroup("Database connection:");
new DefaultCombo(g, 0).setText(connection);
}
use of org.eclipse.reddeer.swt.impl.combo.DefaultCombo in project jbosstools-hibernate by jbosstools.
the class ProjectConfigurationFactory method addFurtherJPAConfiguration.
private static void addFurtherJPAConfiguration(String jpaVersion, boolean addedJavaFacet) {
DefaultHyperlink hyperlink = new DefaultHyperlink();
hyperlink.activate();
Shell s = new DefaultShell("Modify Faceted Project");
if (addedJavaFacet) {
new NextButton().click();
}
DefaultGroup group = new DefaultGroup("Platform");
new DefaultCombo(group).setSelection("Hibernate (JPA " + jpaVersion + ")");
new LabeledCombo("Type:").setSelection("Disable Library Configuration");
new OkButton().click();
new WaitWhile(new ShellIsAvailable(s));
}
Aggregations