Browse Source

无JIRA任务 ServerConfig进一步拆分

master
ju 7 years ago
parent
commit
8a6eaf4504
  1. 4
      designer_base/src/com/fr/design/actions/server/GlobalParameterAction.java

4
designer_base/src/com/fr/design/actions/server/GlobalParameterAction.java

@ -46,8 +46,6 @@ public class GlobalParameterAction extends UpdateAction {
final BasicDialog parameterManagerDialog = parameterManagerPane.showWindow(designerFrame); final BasicDialog parameterManagerDialog = parameterManagerPane.showWindow(designerFrame);
//marks:读取服务器配置信息 //marks:读取服务器配置信息
final ServerConfig configManager = ServerConfig.getInstance();
parameterManagerPane.populate(ParameterConfig.getInstance().getGlobalParameters()); parameterManagerPane.populate(ParameterConfig.getInstance().getGlobalParameters());
parameterManagerDialog.addDialogActionListener(new DialogActionAdapter() { parameterManagerDialog.addDialogActionListener(new DialogActionAdapter() {
public void doOk() { public void doOk() {
@ -55,7 +53,7 @@ public class GlobalParameterAction extends UpdateAction {
@Override @Override
public void run() { public void run() {
//apply new parameter list. //apply new parameter list.
parameterManagerPane.update(configManager); parameterManagerPane.update();
DesignModelAdapter<?, ?> model = DesignModelAdapter.getCurrentModelAdapter(); DesignModelAdapter<?, ?> model = DesignModelAdapter.getCurrentModelAdapter();
if (model != null) { if (model != null) {
model.parameterChanged(); model.parameterChanged();

Loading…
Cancel
Save