|
|
@ -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(); |
|
|
|