mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
install plugin from disc: check compatibility(IDEA-99533)
This commit is contained in:
@@ -111,6 +111,10 @@ public class InstalledPluginsManagerMain extends PluginManagerMain {
|
||||
Messages.showErrorDialog("Fail to load plugin descriptor from file " + file.getName(), CommonBundle.getErrorTitle());
|
||||
return;
|
||||
}
|
||||
if (PluginManager.isIncompatible(pluginDescriptor)) {
|
||||
Messages.showErrorDialog("Plugin " + pluginDescriptor.getName() + " is incompatible with current installation", CommonBundle.getErrorTitle());
|
||||
return;
|
||||
}
|
||||
final IdeaPluginDescriptor alreadyInstalledPlugin = PluginManager.getPlugin(pluginDescriptor.getPluginId());
|
||||
if (alreadyInstalledPlugin != null) {
|
||||
final File oldFile = alreadyInstalledPlugin.getPath();
|
||||
|
||||
Reference in New Issue
Block a user