Author: rob.stryker(a)jboss.com
Date: 2012-05-16 03:38:57 -0400 (Wed, 16 May 2012)
New Revision: 41037
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/RequiredCredentialsDialog.java
Log:
JBIDE-11830
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/RequiredCredentialsDialog.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/RequiredCredentialsDialog.java 2012-05-16
06:29:11 UTC (rev 41036)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/dialogs/RequiredCredentialsDialog.java 2012-05-16
07:38:57 UTC (rev 41037)
@@ -88,6 +88,12 @@
passLabel.setText(Messages.swf_Password);
saveCredentials.setText(Messages.credentials_save);
+ // defaults
+ userText.setText(user);
+ userText.setSelection(0, user == null ? 0 : user.length());
+ passText.setText(pass);
+
+
ModifyListener listener = new ModifyListener() {
public void modifyText(ModifyEvent e) {
user = userText.getText();
@@ -109,10 +115,6 @@
passText.addModifyListener(listener);
saveCredentials.addSelectionListener(listener2);
- // defaults
- userText.setText(user);
- userText.setSelection(0, user == null ? 0 : user.length());
- passText.setText(pass);
// save by default
saveCredentials.setSelection(true);