Browse Source

代码修改

feature/big-screen
kerry 4 years ago
parent
commit
8871c72285
  1. 11
      designer-base/src/main/java/com/fr/design/utils/PredefinedStyleUtils.java

11
designer-base/src/main/java/com/fr/design/utils/PredefinedStyleUtils.java

@ -1,11 +1,14 @@
package com.fr.design.utils;
import com.fr.general.GeneralContext;
import com.fr.event.Event;
import com.fr.event.EventDispatcher;
import com.fr.event.Listener;
import com.fr.log.FineLoggerFactory;
import com.fr.rpc.ExceptionHandler;
import com.fr.rpc.RPCInvokerExceptionInfo;
import com.fr.stable.EnvChangedListener;
import com.fr.workspace.WorkContext;
import com.fr.workspace.Workspace;
import com.fr.workspace.WorkspaceEvent;
import com.fr.workspace.server.predefined.PredefinedStyleOperator;
/**
@ -18,9 +21,9 @@ public class PredefinedStyleUtils {
private static Boolean allowPredefinedSetting = null;
static {
GeneralContext.addEnvChangedListener(new EnvChangedListener() {
EventDispatcher.listen(WorkspaceEvent.AfterSwitch, new Listener<Workspace>() {
@Override
public void envChanged() {
public void on(Event event, Workspace param) {
allowPredefinedSetting = checkAllowPredefinedSetting();
}
});

Loading…
Cancel
Save