Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'vagrant/org.eclipse.linuxtools.vagrant.ui/src/org/eclipse/linuxtools/internal/vagrant/ui/wizards/CreateVMPage.java')
-rw-r--r--vagrant/org.eclipse.linuxtools.vagrant.ui/src/org/eclipse/linuxtools/internal/vagrant/ui/wizards/CreateVMPage.java44
1 files changed, 22 insertions, 22 deletions
diff --git a/vagrant/org.eclipse.linuxtools.vagrant.ui/src/org/eclipse/linuxtools/internal/vagrant/ui/wizards/CreateVMPage.java b/vagrant/org.eclipse.linuxtools.vagrant.ui/src/org/eclipse/linuxtools/internal/vagrant/ui/wizards/CreateVMPage.java
index 5e8c01ad39..f97093b914 100644
--- a/vagrant/org.eclipse.linuxtools.vagrant.ui/src/org/eclipse/linuxtools/internal/vagrant/ui/wizards/CreateVMPage.java
+++ b/vagrant/org.eclipse.linuxtools.vagrant.ui/src/org/eclipse/linuxtools/internal/vagrant/ui/wizards/CreateVMPage.java
@@ -115,23 +115,23 @@ public class CreateVMPage extends WizardPage {
vmmNameObservable);
// Box name
- final Label boxNameLabel = new Label(container, SWT.NONE);
- boxNameLabel
- .setText(WizardMessages.getString("CreateVMPage.boxName.label")); //$NON-NLS-1$
+ final Label boxRefLabel = new Label(container, SWT.NONE);
+ boxRefLabel
+ .setText(WizardMessages.getString("CreateVMPage.boxRef.label")); //$NON-NLS-1$
GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER)
- .grab(false, false).applyTo(boxNameLabel);
+ .grab(false, false).applyTo(boxRefLabel);
- final Text boxNameText = new Text(container, SWT.BORDER);
+ final Text boxRefText = new Text(container, SWT.BORDER);
GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER)
- .grab(true, false).applyTo(boxNameText);
- boxNameText.setToolTipText(
- WizardMessages.getString("CreateVMPage.boxName.tooltip")); //$NON-NLS-1$
+ .grab(true, false).applyTo(boxRefText);
+ boxRefText.setToolTipText(
+ WizardMessages.getString("CreateVMPage.boxRef.tooltip")); //$NON-NLS-1$
// Box Name binding
- final IObservableValue boxNameObservable = BeanProperties
+ final IObservableValue boxRefObservable = BeanProperties
.value(CreateVMPageModel.class, CreateVMPageModel.BOX_REF)
.observe(model);
- dbc.bindValue(WidgetProperties.text(SWT.Modify).observe(boxNameText),
- boxNameObservable);
+ dbc.bindValue(WidgetProperties.text(SWT.Modify).observe(boxRefText),
+ boxRefObservable);
// Box name search
final Button boxSearchButton = new Button(container, SWT.NONE);
@@ -189,10 +189,10 @@ public class CreateVMPage extends WizardPage {
vgFilesearchButton.addSelectionListener(onSearchImage());
customVMFileButton.addSelectionListener(
- onCheckCustomVMFile(vmNameText, boxNameText, boxLocText, vgFilesearchButton, boxSearchButton));
+ onCheckCustomVMFile(vmNameText, boxRefText, boxLocText, vgFilesearchButton, boxSearchButton));
dbc.addValidationStatusProvider(new CreateVMValidationStatusProvider(vmmNameObservable,
- boxNameObservable, boxLocObservable));
+ boxRefObservable, boxLocObservable));
advanced = new CreateVMAdvancedComposite(
container, model);
@@ -205,7 +205,7 @@ public class CreateVMPage extends WizardPage {
}
private SelectionListener onCheckCustomVMFile(Text vmNameText,
- Text boxNameText, Text boxLocText, Button searchButton,
+ Text boxRefText, Text boxLocText, Button searchButton,
Button boxSearchButton) {
return new SelectionAdapter() {
@@ -215,14 +215,14 @@ public class CreateVMPage extends WizardPage {
Button bt = (Button) e.widget;
if (bt.getSelection()) {
vmNameText.setEnabled(false);
- boxNameText.setEnabled(false);
+ boxRefText.setEnabled(false);
boxSearchButton.setEnabled(false);
searchButton.setEnabled(true);
boxLocText.setEnabled(true);
model.setVFileMode(true);
} else {
vmNameText.setEnabled(true);
- boxNameText.setEnabled(true);
+ boxRefText.setEnabled(true);
boxSearchButton.setEnabled(true);
searchButton.setEnabled(false);
boxLocText.setEnabled(false);
@@ -269,12 +269,12 @@ public class CreateVMPage extends WizardPage {
public class CreateVMValidationStatusProvider extends MultiValidator {
- private IObservableValue vmNameOb, boxNameOb, boxLocOb;
+ private IObservableValue vmNameOb, boxRefOb, boxLocOb;
public CreateVMValidationStatusProvider(IObservableValue vmNameOb,
- IObservableValue boxNameOb, IObservableValue boxLocOb) {
+ IObservableValue boxRefOb, IObservableValue boxLocOb) {
this.vmNameOb = vmNameOb;
- this.boxNameOb = boxNameOb;
+ this.boxRefOb = boxRefOb;
this.boxLocOb = boxLocOb;
}
@@ -287,15 +287,15 @@ public class CreateVMPage extends WizardPage {
@Override
protected IStatus validate() {
String vmName = (String) vmNameOb.getValue();
- String boxName = (String) boxNameOb.getValue();
+ String boxRef = (String) boxRefOb.getValue();
String boxLoc = (String) boxLocOb.getValue();
if (!model.getVFileMode()) {
if (vmName == null || vmName.isEmpty()) {
return ValidationStatus.error(WizardMessages
.getString("CreateVMPage.emptyVMName")); //$NON-NLS-1$
- } else if (boxName == null || boxName.isEmpty()) {
+ } else if (boxRef == null || boxRef.isEmpty()) {
return ValidationStatus.error(WizardMessages
- .getString("CreateVMPage.emptyBoxName")); //$NON-NLS-1$
+ .getString("CreateVMPage.emptyBoxRef")); //$NON-NLS-1$
}
} else {
if (boxLoc == null || boxLoc.isEmpty()) {

Back to the top