use of org.eclipse.reddeer.swt.impl.text.LabeledText in project linuxtools by eclipse.
the class ImageRunResourceVolumesVariablesPage method addDataVolumeToContainer.
public void addDataVolumeToContainer(String containerPath, String containerName) {
new PushButton(0, new WithTextMatcher("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.text.LabeledText in project linuxtools by eclipse.
the class ImageRunResourceVolumesVariablesPage method setResourceLimitation.
public void setResourceLimitation(String CPU, String memoryLimit) {
new CheckBox("Enable resource limitations").click();
switch(CPU) {
case "Low":
new RadioButton("Low").click();
break;
case "Medium":
new RadioButton("Medium").click();
break;
case "High":
new RadioButton("High").click();
break;
default:
new RadioButton("Medium").click();
}
new LabeledText("Memory limit:").setText(memoryLimit);
}
use of org.eclipse.reddeer.swt.impl.text.LabeledText in project linuxtools by eclipse.
the class ImageRunResourceVolumesVariablesPage method addEnviromentVariable.
public void addEnviromentVariable(String name, String value) {
new PushButton(1, new WithTextMatcher("Add...")).click();
new LabeledText("Name:").setText(name);
new LabeledText("Value:").setText(value);
new OkButton().click();
}
use of org.eclipse.reddeer.swt.impl.text.LabeledText in project linuxtools by eclipse.
the class ImageRunResourceVolumesVariablesPage method addLabel.
public void addLabel(String name, String value) {
new PushButton(2, new WithTextMatcher("Add...")).click();
new LabeledText("Name:").setText(name);
new LabeledText("Value:").setText(value);
new OkButton().click();
}
use of org.eclipse.reddeer.swt.impl.text.LabeledText in project linuxtools by eclipse.
the class ImageRunSelectionPage method addLinkToContainer.
public void addLinkToContainer(String containerName, String alias) {
new PushButton(1, new WithTextMatcher("Add...")).click();
new DefaultShell("Container Linking");
new LabeledCombo("Container:").setText(containerName);
new LabeledText("Alias:").setText(alias);
new OkButton().click();
}
Aggregations