Browse Source

代码回退

feature/big-screen
kerry 4 years ago
parent
commit
4a0d90e57c
  1. 12
      designer-base/src/main/java/com/fr/design/mainframe/predefined/ui/PredefinedStyleEditPane.java
  2. 24
      designer-base/src/main/java/com/fr/design/mainframe/predefined/ui/ServerPredefinedStylePane.java

12
designer-base/src/main/java/com/fr/design/mainframe/predefined/ui/PredefinedStyleEditPane.java

@ -312,12 +312,12 @@ public class PredefinedStyleEditPane extends AbstractAttrNoScrollPane {
} }
config.add(previewObject); config.add(previewObject);
PredefinedStyleConfig sortedConfig = resortConfigStyles(previewObject, config); PredefinedStyleConfig sortedConfig = resortConfigStyles(previewObject, config);
Configurations.modify(new WorkerFacade(ServerPreferenceConfig.class) { // Configurations.modify(new WorkerFacade(ServerPreferenceConfig.class) {
@Override // @Override
public void run() { // public void run() {
ServerPreferenceConfig.getInstance().setPreferenceStyleConfig(sortedConfig); // ServerPreferenceConfig.getInstance().setPreferenceStyleConfig(sortedConfig);
} // }
}); // });
selectPane.refreshPane(); selectPane.refreshPane();
return true; return true;
} }

24
designer-base/src/main/java/com/fr/design/mainframe/predefined/ui/ServerPredefinedStylePane.java

@ -140,12 +140,12 @@ public class ServerPredefinedStylePane extends BasicPane {
if (style != null) { if (style != null) {
PredefinedStyleConfig config = ServerPreferenceConfig.getInstance().getPreferenceStyleConfig(); PredefinedStyleConfig config = ServerPreferenceConfig.getInstance().getPreferenceStyleConfig();
config.setDefaultPredefinedStyle(style.getStyleName()); config.setDefaultPredefinedStyle(style.getStyleName());
Configurations.modify(new WorkerFacade(ServerPreferenceConfig.class) { // Configurations.modify(new WorkerFacade(ServerPreferenceConfig.class) {
@Override // @Override
public void run() { // public void run() {
ServerPreferenceConfig.getInstance().setPreferenceStyleConfig(config); // ServerPreferenceConfig.getInstance().setPreferenceStyleConfig(config);
} // }
}); // });
} }
} }
@ -207,12 +207,12 @@ public class ServerPredefinedStylePane extends BasicPane {
private void removeStyle(String name) { private void removeStyle(String name) {
PredefinedStyleConfig config = ServerPreferenceConfig.getInstance().getPreferenceStyleConfig(); PredefinedStyleConfig config = ServerPreferenceConfig.getInstance().getPreferenceStyleConfig();
config.removeStyle(name); config.removeStyle(name);
Configurations.modify(new WorkerFacade(ServerPreferenceConfig.class) { // Configurations.modify(new WorkerFacade(ServerPreferenceConfig.class) {
@Override // @Override
public void run() { // public void run() {
ServerPreferenceConfig.getInstance().setPreferenceStyleConfig(config); // ServerPreferenceConfig.getInstance().setPreferenceStyleConfig(config);
} // }
}); // });
} }
} }

Loading…
Cancel
Save