【问题原因】 区分不同的启动来源,便于埋点分析 【改动思路】 同上
@ -104,7 +104,7 @@ public class OnlineWidgetTabPane extends JPanel {
@Override
public void actionPerformed(ActionEvent e) {
if (OnlineShopUtils.testConnection() && ComponentShareUtil.isShowMiniShopWindow()) {
MiniComponentShopDialog.getInstance().show();
MiniComponentShopDialog.getInstance().showFromOnlineRepoPane();
FormWidgetDetailPane.getInstance().switch2Local();
FormWidgetDetailPane.getInstance().enterWidgetLib();
} else {
@ -110,6 +110,10 @@ public class MiniComponentShopDialog {
frame.setVisible(true);
}
public void showFromOnlineRepoPane() {
show();
public Container getContentPane() {
if (frame != null) {
return frame.getContentPane();