Author: adietish
Date: 2011-10-03 13:38:16 -0400 (Mon, 03 Oct 2011)
New Revision: 35292
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.ui/src/org/jboss/ide/eclipse/as/openshift/ui/internal/wizard/NewDomainWizardPage.java
Log:
[JBIDE-9793] implementing DomainWizardPage
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.ui/src/org/jboss/ide/eclipse/as/openshift/ui/internal/wizard/NewDomainWizardPage.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.ui/src/org/jboss/ide/eclipse/as/openshift/ui/internal/wizard/NewDomainWizardPage.java 2011-10-03
17:25:20 UTC (rev 35291)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.ui/src/org/jboss/ide/eclipse/as/openshift/ui/internal/wizard/NewDomainWizardPage.java 2011-10-03
17:38:16 UTC (rev 35292)
@@ -75,10 +75,10 @@
GridDataFactory.fillDefaults().align(SWT.LEFT, SWT.CENTER).applyTo(sshKeyLabel);
Text sshKeyText = new Text(container, SWT.READ_ONLY | SWT.BORDER);
GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).grab(true,
false).applyTo(sshKeyText);
- DataBindingUtils.bindMandatoryTextField(sshKeyText, "SSH Key",
ServerAdapterWizardModel.PROPERTY_SSHKEY, sshKeyText, dbc);
+ DataBindingUtils.bindMandatoryTextField(sshKeyText, "SSH Key",
ServerAdapterWizardModel.PROPERTY_SSHKEY, model, dbc);
Button browseSShKeyButton = new Button(container, SWT.PUSH);
browseSShKeyButton.setText("Browse");
- GridDataFactory.fillDefaults().align(SWT.LEFT, SWT.CENTER).hint(100,
34).applyTo(browseSShKeyButton);
+ GridDataFactory.fillDefaults().align(SWT.LEFT, SWT.CENTER).hint(100,
SWT.DEFAULT).applyTo(browseSShKeyButton);
browseSShKeyButton.addSelectionListener(onBrowseSshKey());
Label spacerLabel = new Label(container, SWT.None);
@@ -103,7 +103,7 @@
dialog.setFilterExtensions(new String[]{FILTEREXPRESSION_PUBLIC_SSH_KEY});
String sshKeyPath = dialog.open();
if (sshKeyPath != null){
- model.setSshKey(dialog.getFileName());
+ model.setSshKey(sshKeyPath);
};
}
};
Show replies by date