Browse Source

REPORT-66807 Mini商城窗口启动来源埋点

【问题原因】
区分不同的启动来源,便于埋点分析

【改动思路】
同上
bugfix/11.0
Starryi 3 years ago
parent
commit
50754f75d2
  1. 2
      designer-form/src/main/java/com/fr/design/mainframe/share/ui/online/OnlineWidgetTabPane.java
  2. 4
      designer-form/src/main/java/com/fr/design/mainframe/share/ui/online/mini/MiniComponentShopDialog.java

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

@ -104,7 +104,7 @@ public class OnlineWidgetTabPane extends JPanel {
@Override @Override
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
if (OnlineShopUtils.testConnection() && ComponentShareUtil.isShowMiniShopWindow()) { if (OnlineShopUtils.testConnection() && ComponentShareUtil.isShowMiniShopWindow()) {
MiniComponentShopDialog.getInstance().show(); MiniComponentShopDialog.getInstance().showFromOnlineRepoPane();
FormWidgetDetailPane.getInstance().switch2Local(); FormWidgetDetailPane.getInstance().switch2Local();
FormWidgetDetailPane.getInstance().enterWidgetLib(); FormWidgetDetailPane.getInstance().enterWidgetLib();
} else { } else {

4
designer-form/src/main/java/com/fr/design/mainframe/share/ui/online/mini/MiniComponentShopDialog.java

@ -110,6 +110,10 @@ public class MiniComponentShopDialog {
frame.setVisible(true); frame.setVisible(true);
} }
public void showFromOnlineRepoPane() {
show();
}
public Container getContentPane() { public Container getContentPane() {
if (frame != null) { if (frame != null) {
return frame.getContentPane(); return frame.getContentPane();

Loading…
Cancel
Save