Browse Source

REPORT-70647 远程设计器场景下主题内边框配置无法使用

【问题原因】
远程设计场景下,无法通过RPC接口实现类的类型来判断是否可用,实际返回的都是
proxy类型对象,因此需要添加接口方法。

【改动思路】
同上

【review建议】
release/11.0
Starryi 2 years ago
parent
commit
9f514db789
  1. 3
      designer-base/src/main/java/com/fr/design/mainframe/theme/ThemedFeatureController.java

3
designer-base/src/main/java/com/fr/design/mainframe/theme/ThemedFeatureController.java

@ -1,7 +1,6 @@
package com.fr.design.mainframe.theme; package com.fr.design.mainframe.theme;
import com.fr.workspace.WorkContext; import com.fr.workspace.WorkContext;
import com.fr.workspace.server.theme.SupportThemedCellInnerBorderFeature;
import com.fr.workspace.server.theme.ThemedCellBorderFeature; import com.fr.workspace.server.theme.ThemedCellBorderFeature;
/** /**
@ -12,6 +11,6 @@ import com.fr.workspace.server.theme.ThemedCellBorderFeature;
public class ThemedFeatureController { public class ThemedFeatureController {
public static boolean isCellStyleSupportInnerBorder() { public static boolean isCellStyleSupportInnerBorder() {
ThemedCellBorderFeature controller = WorkContext.getCurrent().get(ThemedCellBorderFeature.class); ThemedCellBorderFeature controller = WorkContext.getCurrent().get(ThemedCellBorderFeature.class);
return controller instanceof SupportThemedCellInnerBorderFeature; return controller.isSupport();
} }
} }

Loading…
Cancel
Save