|
|
@ -53,12 +53,13 @@ public class InstallOnlineCallback extends AbstractDealPreTaskCallback { |
|
|
|
FineJOptionPane.OPTION_YES_NO_CANCEL, |
|
|
|
FineJOptionPane.OPTION_YES_NO_CANCEL, |
|
|
|
null |
|
|
|
null |
|
|
|
); |
|
|
|
); |
|
|
|
if (rv == JOptionPane.CANCEL_OPTION || rv == JOptionPane.CLOSED_OPTION) { |
|
|
|
if (rv == JOptionPane.NO_OPTION || rv == JOptionPane.CANCEL_OPTION || rv == JOptionPane.CLOSED_OPTION) { |
|
|
|
|
|
|
|
jsCallback.execute("success"); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
PluginMarker pluginMarker = result.getCurrentTask().getMarker(); |
|
|
|
PluginMarker pluginMarker = result.getCurrentTask().getMarker(); |
|
|
|
PluginOperateUtils.updatePluginOnline(pluginMarker, jsCallback); |
|
|
|
PluginOperateUtils.updatePluginOnline(pluginMarker, jsCallback); |
|
|
|
}else { |
|
|
|
} else { |
|
|
|
jsCallback.execute("failed"); |
|
|
|
jsCallback.execute("failed"); |
|
|
|
FineLoggerFactory.getLogger().info(Toolkit.i18nText("Fine-Design_Basic_Plugin_Install_Failed")); |
|
|
|
FineLoggerFactory.getLogger().info(Toolkit.i18nText("Fine-Design_Basic_Plugin_Install_Failed")); |
|
|
|
FineJOptionPane.showMessageDialog(null, pluginInfo, Toolkit.i18nText("Fine-Design_Basic_Plugin_Warning"), JOptionPane.ERROR_MESSAGE); |
|
|
|
FineJOptionPane.showMessageDialog(null, pluginInfo, Toolkit.i18nText("Fine-Design_Basic_Plugin_Warning"), JOptionPane.ERROR_MESSAGE); |
|
|
|