Browse Source

REPORT-66378 【组件商城风格优化】设计器商城,国际化下套用组件入口是否需要屏蔽

【问题原因】
国际化下屏蔽mini商城窗口,屏蔽条件与在线组件库保持一直

【改动思路】
同上
feature/x
Starryi 3 years ago
parent
commit
49a7825ed2
  1. 4
      designer-base/src/main/java/com/fr/design/mainframe/share/ComponentShareUtil.java
  2. 3
      designer-form/src/main/java/com/fr/design/mainframe/FormParaWidgetPane.java
  3. 2
      designer-form/src/main/java/com/fr/design/mainframe/share/ui/online/OnlineWidgetTabPane.java

4
designer-base/src/main/java/com/fr/design/mainframe/share/ComponentShareUtil.java

@ -34,6 +34,10 @@ public class ComponentShareUtil {
return localeMark.getValue();
}
public static boolean isShowMiniShopWindow() {
return isShowOnlineWidgetRepoPane();
}
/**
* 判断是否可触达
*

3
designer-form/src/main/java/com/fr/design/mainframe/FormParaWidgetPane.java

@ -18,6 +18,7 @@ import com.fr.design.gui.icontainer.UIScrollPane;
import com.fr.design.gui.ilable.UILabel;
import com.fr.design.gui.imenu.UIPopupMenu;
import com.fr.design.i18n.Toolkit;
import com.fr.design.mainframe.share.ComponentShareUtil;
import com.fr.design.mainframe.share.ui.online.OnlineWidgetRepoPane;
import com.fr.design.mainframe.share.ui.online.mini.MiniComponentShopDialog;
import com.fr.design.mainframe.share.util.OnlineShopUtils;
@ -265,7 +266,7 @@ public class FormParaWidgetPane extends JPanel {
jPanel.addMouseListener(new MouseListener() {
@Override
public void mouseClicked(MouseEvent e) {
if (OnlineShopUtils.testConnection()) {
if (OnlineShopUtils.testConnection() && ComponentShareUtil.isShowMiniShopWindow()) {
MiniComponentShopDialog.getInstance().show();
} else {
OnlineWidgetRepoPane.getInstance().switch2InternetErrorPane();

2
designer-form/src/main/java/com/fr/design/mainframe/share/ui/online/OnlineWidgetTabPane.java

@ -103,7 +103,7 @@ public class OnlineWidgetTabPane extends JPanel {
button.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
if (OnlineShopUtils.testConnection()) {
if (OnlineShopUtils.testConnection() && ComponentShareUtil.isShowMiniShopWindow()) {
MiniComponentShopDialog.getInstance().show();
FormWidgetDetailPane.getInstance().switch2Local();
FormWidgetDetailPane.getInstance().enterWidgetLib();

Loading…
Cancel
Save