Author: rob.stryker(a)jboss.com
Date: 2012-01-18 07:44:14 -0500 (Wed, 18 Jan 2012)
New Revision: 37937
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/ServerPasswordSection.java
Log:
JBIDE-10490 - further fix after a UI test
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/ServerPasswordSection.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/ServerPasswordSection.java 2012-01-18
12:30:42 UTC (rev 37936)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/ServerPasswordSection.java 2012-01-18
12:44:14 UTC (rev 37937)
@@ -41,6 +41,7 @@
import org.jboss.ide.eclipse.as.core.server.internal.JBossServer;
import org.jboss.ide.eclipse.as.core.server.internal.ServerAttributeHelper;
import org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants;
+import org.jboss.ide.eclipse.as.core.util.ServerConverter;
import org.jboss.ide.eclipse.as.ui.Messages;
/**
@@ -79,7 +80,7 @@
Label username = toolkit.createLabel(composite, Messages.swf_Username);
username.setForeground(toolkit.getColors().getColor(IFormColors.TITLE));
String n = helper.getAttribute(IJBossToolingConstants.SERVER_USERNAME, "");
//$NON-NLS-1$
- String p = helper.getAttribute(IJBossToolingConstants.SERVER_PASSWORD, "");
//$NON-NLS-1$
+ String p = ServerConverter.getJBossServer(server.getOriginal()).getPassword();
nameText = toolkit.createText(composite, n);
Label password = toolkit.createLabel(composite, Messages.swf_Password);
password.setForeground(toolkit.getColors().getColor(IFormColors.TITLE));
@@ -140,6 +141,8 @@
* @param monitor the progress monitor for the save operation.
*/
public void doSave(IProgressMonitor monitor) {
+ JBossServer jbs = ServerConverter.getJBossServer(server.getOriginal());
+ jbs.setPassword(passwordString);
monitor.worked(100);
}