|
|
@ -254,9 +254,9 @@ public class NativeProductBridge { |
|
|
|
MiniComponentShopDialog.getInstance().getContentPane(), |
|
|
|
MiniComponentShopDialog.getInstance().getContentPane(), |
|
|
|
Toolkit.i18nText("Fine-Design_Share_Online_Mini_Shop_Download_Incompatible_Component_Tip"), |
|
|
|
Toolkit.i18nText("Fine-Design_Share_Online_Mini_Shop_Download_Incompatible_Component_Tip"), |
|
|
|
"", |
|
|
|
"", |
|
|
|
FineJOptionPane.YES_NO_OPTION |
|
|
|
FineJOptionPane.OK_CANCEL_OPTION |
|
|
|
); |
|
|
|
); |
|
|
|
allowedDownload = result == JOptionPane.YES_OPTION; |
|
|
|
allowedDownload = result == JOptionPane.OK_OPTION; |
|
|
|
} |
|
|
|
} |
|
|
|
if (allowedDownload) { |
|
|
|
if (allowedDownload) { |
|
|
|
fireStartEvent(null); |
|
|
|
fireStartEvent(null); |
|
|
@ -353,33 +353,14 @@ public class NativeProductBridge { |
|
|
|
SwingUtilities.invokeLater(new Runnable() { |
|
|
|
SwingUtilities.invokeLater(new Runnable() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void run() { |
|
|
|
public void run() { |
|
|
|
boolean allowedDownload; |
|
|
|
OnlineShareWidget[] childrenWidgets = OnlineShopUtils.getPackageWidgets(widget, true); |
|
|
|
OnlineShareWidget[] childrenWidgets = OnlineShopUtils.getPackageWidgets(widget, false); |
|
|
|
int result = FineJOptionPane.showConfirmDialog( |
|
|
|
boolean isCompatibleWithCurrentEnv = true; |
|
|
|
MiniComponentShopDialog.getInstance().getContentPane(), |
|
|
|
for (OnlineShareWidget children: childrenWidgets) { |
|
|
|
Toolkit.i18nText("Fine-Design_Share_Online_Mini_Shop_Download_Components_Package_Tip", childrenWidgets.length), |
|
|
|
if (!children.isCompatibleWithCurrentEnv()) { |
|
|
|
"", |
|
|
|
isCompatibleWithCurrentEnv = false; |
|
|
|
FineJOptionPane.OK_CANCEL_OPTION |
|
|
|
break; |
|
|
|
); |
|
|
|
} |
|
|
|
if (result == JOptionPane.OK_OPTION) { |
|
|
|
} |
|
|
|
|
|
|
|
int result; |
|
|
|
|
|
|
|
if (!isCompatibleWithCurrentEnv) { |
|
|
|
|
|
|
|
result = FineJOptionPane.showConfirmDialog( |
|
|
|
|
|
|
|
MiniComponentShopDialog.getInstance().getContentPane(), |
|
|
|
|
|
|
|
Toolkit.i18nText("Fine-Design_Share_Online_Mini_Shop_Download_Incompatible_Components_Package_Tip", childrenCount), |
|
|
|
|
|
|
|
"", |
|
|
|
|
|
|
|
FineJOptionPane.YES_NO_OPTION |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
result = FineJOptionPane.showConfirmDialog( |
|
|
|
|
|
|
|
MiniComponentShopDialog.getInstance().getContentPane(), |
|
|
|
|
|
|
|
Toolkit.i18nText("Fine-Design_Share_Online_Mini_Shop_Download_Components_Package_Tip", childrenCount), |
|
|
|
|
|
|
|
"", |
|
|
|
|
|
|
|
FineJOptionPane.YES_NO_OPTION |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
allowedDownload = result == JOptionPane.YES_OPTION; |
|
|
|
|
|
|
|
if (allowedDownload) { |
|
|
|
|
|
|
|
fireStartEvent(null); |
|
|
|
fireStartEvent(null); |
|
|
|
action.install(); |
|
|
|
action.install(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|