Author: adietish
Date: 2011-06-29 11:49:21 -0400 (Wed, 29 Jun 2011)
New Revision: 32450
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/ServerPasswordSection.java
Log:
[JBIDE-9054] corrected indirect constant adressing (was: used inherited constant, now:
using constant class directly)
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 2011-06-29
15:20:55 UTC (rev 32449)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/editor/ServerPasswordSection.java 2011-06-29
15:49:21 UTC (rev 32450)
@@ -39,6 +39,7 @@
import org.eclipse.wst.server.ui.internal.command.ServerCommand;
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.ui.Messages;
/**
@@ -73,8 +74,8 @@
Label username = toolkit.createLabel(composite, Messages.swf_Username);
username.setForeground(toolkit.getColors().getColor(IFormColors.TITLE));
- String n = helper.getAttribute(JBossServer.SERVER_USERNAME, "");
//$NON-NLS-1$
- String p = helper.getAttribute(JBossServer.SERVER_PASSWORD, "");
//$NON-NLS-1$
+ String n = helper.getAttribute(IJBossToolingConstants.SERVER_USERNAME, "");
//$NON-NLS-1$
+ String p = helper.getAttribute(IJBossToolingConstants.SERVER_PASSWORD, "");
//$NON-NLS-1$
nameText = toolkit.createText(composite, n);
Label password = toolkit.createLabel(composite, Messages.swf_Password);
password.setForeground(toolkit.getColors().getColor(IFormColors.TITLE));
@@ -107,14 +108,14 @@
public class SetUserCommand extends SetVarCommand {
public SetUserCommand(IServerWorkingCopy server) {
super(server, Messages.EditorChangeUsernameCommandName, nameText, nameText.getText(),
- JBossServer.SERVER_USERNAME, nameModifyListener);
+ IJBossToolingConstants.SERVER_USERNAME, nameModifyListener);
}
}
public class SetPassCommand extends SetVarCommand {
public SetPassCommand(IServerWorkingCopy server) {
super(server, Messages.EditorChangePasswordCommandName, passText, passText.getText(),
- JBossServer.SERVER_PASSWORD, passModifyListener);
+ IJBossToolingConstants.SERVER_PASSWORD, passModifyListener);
}
}
Show replies by date