|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.fr.design.parameter; |
|
|
|
package com.fr.design.parameter; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.config.ServerConfig; |
|
|
|
import com.fr.base.Parameter; |
|
|
|
|
|
|
|
import com.fr.base.ParameterConfig; |
|
|
|
import com.fr.design.dialog.BasicPane; |
|
|
|
import com.fr.design.dialog.BasicPane; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.itextfield.UITextField; |
|
|
|
import com.fr.design.gui.itextfield.UITextField; |
|
|
@ -35,17 +36,18 @@ public class ParameterManagerPane extends BasicPane { |
|
|
|
protected String title4PopupWindow() { |
|
|
|
protected String title4PopupWindow() { |
|
|
|
return Inter.getLocText("M_Server-Global_Parameters"); |
|
|
|
return Inter.getLocText("M_Server-Global_Parameters"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void populate(ServerConfig configManager) { |
|
|
|
public void populate(Parameter[] parameters) { |
|
|
|
//todo 原来界面上显示的xml路径
|
|
|
|
//todo 原来界面上显示的xml路径
|
|
|
|
// this.parameterTextField.setText(FRContext.getCurrentEnv().getPath() + File.separator +
|
|
|
|
// this.parameterTextField.setText(FRContext.getCurrentEnv().getPath() + File.separator +
|
|
|
|
// ProjectConstants.RESOURCES_NAME +
|
|
|
|
// ProjectConstants.RESOURCES_NAME +
|
|
|
|
// File.separator + configManager.fileName());
|
|
|
|
// File.separator + configManager.fileName());
|
|
|
|
this.parameterArrayPane.populate(configManager.getGlobal_Parameters()); |
|
|
|
this.parameterArrayPane.populate(parameters); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void update(ServerConfig configManager) { |
|
|
|
public void update() { |
|
|
|
configManager.setGlobeParameters(parameterArrayPane.updateParameters()); |
|
|
|
|
|
|
|
|
|
|
|
ParameterConfig.getInstance().setGlobeParameters(parameterArrayPane.updateParameters()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|