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