Browse Source

Pull request #5105: REPORT-55091 只有一个非超管用户的目录文件无法另存或新建

Merge in DESIGN/design from ~HADES/design:bugfix/10.0 to bugfix/10.0

* commit '4595288070a376dd5e86c4fa3b70e4316ca6d55d':
  REPORT-55091 只有一个非超管用户的目录文件无法另存或新建
bugfix/10.0
Hades 3 years ago
parent
commit
f5d3141bbd
  1. 11
      designer-base/src/main/java/com/fr/env/RemoteEnvPane.java

11
designer-base/src/main/java/com/fr/env/RemoteEnvPane.java vendored

@ -363,8 +363,8 @@ public class RemoteEnvPane extends BasicBeanPane<RemoteDesignerWorkspaceInfo> {
@Override
public RemoteDesignerWorkspaceInfo updateBean() {
String url = this.remoteWorkspaceURL.getURL();
String username = this.usernameInput.getText();
String url = removeSpaces(this.remoteWorkspaceURL.getURL());
String username = removeSpaces(this.usernameInput.getText());
String password = new String(this.passwordInput.getPassword());
boolean rememberPwd = this.rememberPwdCheckbox.isSelected();
DesignerEnvProcessor envProcessor = ExtraDesignClassManager.getInstance().getSingle(DesignerEnvProcessor.XML_TAG);
@ -384,6 +384,13 @@ public class RemoteEnvPane extends BasicBeanPane<RemoteDesignerWorkspaceInfo> {
return info;
}
private String removeSpaces(String str) {
if (StringUtils.isNotEmpty(str)) {
return str.trim();
}
return str;
}
@Override
protected String title4PopupWindow() {
return "Remote";

Loading…
Cancel
Save