|
|
|
@ -7,7 +7,7 @@ import com.fr.design.extra.PluginUtils;
|
|
|
|
|
|
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
import com.fr.plugin.context.PluginMarker; |
|
|
|
|
import com.fr.plugin.error.PluginCoreErrorCode; |
|
|
|
|
import com.fr.plugin.error.PluginErrorCode; |
|
|
|
|
import com.fr.plugin.manage.PluginManager; |
|
|
|
|
import com.fr.plugin.manage.control.PluginTask; |
|
|
|
|
import com.fr.plugin.manage.control.PluginTaskResult; |
|
|
|
@ -43,7 +43,7 @@ public class InstallFromDiskCallback extends AbstractPluginTaskCallback {
|
|
|
|
|
jsCallback.execute("success"); |
|
|
|
|
FineLoggerFactory.getLogger().info(pluginInfo + com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Plugin_Install_Success") + switchedInfo); |
|
|
|
|
FineJOptionPane.showMessageDialog(null, pluginInfo + com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Plugin_Install_Success") + switchedInfo); |
|
|
|
|
} else if (result.errorCode() == PluginCoreErrorCode.NeedDealWithPluginDependency) { |
|
|
|
|
} else if (result.errorCode() == PluginErrorCode.NeedDealWithPluginDependency) { |
|
|
|
|
int rv = JOptionPane.showOptionDialog( |
|
|
|
|
null, |
|
|
|
|
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Plugin_Install_Dependence"), |
|
|
|
@ -63,7 +63,7 @@ public class InstallFromDiskCallback extends AbstractPluginTaskCallback {
|
|
|
|
|
PluginOperateUtils.installPluginOnline(marker, jsCallback); |
|
|
|
|
} |
|
|
|
|
PluginManager.getController().install(zipFile, new InstallFromDiskCallback(zipFile, jsCallback)); |
|
|
|
|
} else if(result.errorCode() == PluginCoreErrorCode.HasLowerPluginWhenInstall){ |
|
|
|
|
} else if(result.errorCode() == PluginErrorCode.HasLowerPluginWhenInstall){ |
|
|
|
|
int rv = JOptionPane.showOptionDialog( |
|
|
|
|
null, |
|
|
|
|
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Plugin_Has_Install_Lower"), |
|
|
|
|