|
|
@ -36,11 +36,9 @@ public class InstallFromDiskCallback extends AbstractPluginTaskCallback { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void done(PluginTaskResult result) { |
|
|
|
public void done(PluginTaskResult result) { |
|
|
|
if (result.isSuccess()) { |
|
|
|
if (result.isSuccess()) { |
|
|
|
PluginContext pluginContext = PluginManager.getContext(pluginMarker); |
|
|
|
|
|
|
|
String pluginName = pluginContext.getName(); |
|
|
|
|
|
|
|
jsCallback.execute("success"); |
|
|
|
jsCallback.execute("success"); |
|
|
|
FRLogger.getLogger().info(pluginName + Inter.getLocText("FR-Designer-Plugin_Install_Success")); |
|
|
|
FRLogger.getLogger().info(Inter.getLocText("FR-Designer-Plugin_Install_Success")); |
|
|
|
JOptionPane.showMessageDialog(null, pluginName + Inter.getLocText("FR-Designer-Plugin_Install_Success")); |
|
|
|
JOptionPane.showMessageDialog(null, Inter.getLocText("FR-Designer-Plugin_Install_Success")); |
|
|
|
} else if (result.errorCode() == PluginErrorCode.NeedDealWithPluginDependency) { |
|
|
|
} else if (result.errorCode() == PluginErrorCode.NeedDealWithPluginDependency) { |
|
|
|
int rv = JOptionPane.showOptionDialog( |
|
|
|
int rv = JOptionPane.showOptionDialog( |
|
|
|
null, |
|
|
|
null, |
|
|
|