mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WIP plugins: check yet another case for plugin installation
GitOrigin-RevId: b18dfe589410e4a7f1741754dfdf2e9f66c7400a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
60c04f896d
commit
190fde7fc9
@@ -8,6 +8,7 @@ import com.intellij.ide.plugins.marketplace.MarketplacePluginDownloadService;
|
||||
import com.intellij.ide.plugins.marketplace.PluginSignatureChecker;
|
||||
import com.intellij.ide.plugins.marketplace.statistics.PluginManagerUsageCollector;
|
||||
import com.intellij.ide.plugins.marketplace.statistics.enums.InstallationSourceEnum;
|
||||
import com.intellij.ide.plugins.org.PluginManagerConfigurableForOrg;
|
||||
import com.intellij.ide.util.PropertiesComponent;
|
||||
import com.intellij.openapi.application.ApplicationNamesInfo;
|
||||
import com.intellij.openapi.application.PathManager;
|
||||
@@ -244,6 +245,12 @@ public final class PluginInstaller {
|
||||
if (!PluginManagerMain.checkThirdPartyPluginsAllowed(List.of(pluginDescriptor))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!PluginManagerConfigurableForOrg.getInstance().allowInstallingPlugin(pluginDescriptor)) {
|
||||
String message = IdeBundle.message("dialog.message.plugin.is.not.allowed", pluginDescriptor.getName());
|
||||
MessagesEx.showWarningDialog(parent, message, IdeBundle.message("dialog.title.install.plugin"));
|
||||
return false;
|
||||
}
|
||||
|
||||
InstalledPluginsState ourState = InstalledPluginsState.getInstance();
|
||||
if (ourState.wasInstalled(pluginDescriptor.getPluginId())) {
|
||||
|
||||
Reference in New Issue
Block a user