Author: adietish
Date: 2010-10-12 04:11:35 -0400 (Tue, 12 Oct 2010)
New Revision: 25744
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/CloudConnectionPage.java
Log:
[JBIDE-7315] added Cloud "Type:" label again
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/CloudConnectionPage.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/CloudConnectionPage.java 2010-10-12
08:03:54 UTC (rev 25743)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/CloudConnectionPage.java 2010-10-12
08:11:35 UTC (rev 25744)
@@ -63,6 +63,7 @@
private static final String TITLE = "NewCloudConnection.title"; //$NON-NLS-1$
private static final String URL_LABEL = "Url.label"; //$NON-NLS-1$
private static final String NAME_LABEL = "Name.label"; //$NON-NLS-1$
+ private static final String CLOUDTYPE_LABEL = "Type.label"; //$NON-NLS-1$
private static final String USERNAME_LABEL = "UserName.label"; //$NON-NLS-1$
private static final String PASSWORD_LABEL = "Password.label"; //$NON-NLS-1$
private static final String TESTBUTTON_LABEL = "TestButton.label";
//$NON-NLS-1$
@@ -147,7 +148,10 @@
// cloud type
Label typeLabel = new Label(container, SWT.NULL);
- Binding urlBinding = bindCloudTypeLabel(dbc, urlText, typeLabel);
+ typeLabel.setText(WizardMessages.getString(CLOUDTYPE_LABEL));
+
+ Label computedTypeLabel = new Label(container, SWT.NULL);
+ Binding urlBinding = bindCloudTypeLabel(dbc, urlText, computedTypeLabel);
// username
Label usernameLabel = new Label(container, SWT.NULL);
@@ -228,15 +232,15 @@
f.left = new FormAttachment(urlText, 0, SWT.LEFT);
f.top = new FormAttachment(urlText, 5 + centering);
f.right = new FormAttachment(100, 0);
- typeLabel.setLayoutData(f);
+ computedTypeLabel.setLayoutData(f);
f = new FormData();
f.top = new FormAttachment(typeLabel, 10 + centering);
usernameLabel.setLayoutData(f);
f = new FormData();
- f.left = new FormAttachment(typeLabel, 0, SWT.LEFT);
- f.top = new FormAttachment(typeLabel, 10);
+ f.left = new FormAttachment(computedTypeLabel, 0, SWT.LEFT);
+ f.top = new FormAttachment(computedTypeLabel, 10);
f.right = new FormAttachment(100, -70);
usernameText.setLayoutData(f);
Show replies by date