mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-13 06:59:44 +07:00
OPENIDE #145 Hide ability share feedback about plugin
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
//
|
||||
// Modified by Nikita Iarychenko at 2025 as part of the OpenIDE project(https://openide.ru).
|
||||
// Any modifications are available on the same license terms as the original source code.
|
||||
@file:Suppress("ReplaceJavaStaticMethodWithKotlinAnalog")
|
||||
|
||||
package com.intellij.ide.plugins.newui
|
||||
@@ -293,13 +296,13 @@ class PluginDetailsPageComponent @JvmOverloads constructor(
|
||||
AllIcons.General.Information,
|
||||
IdeBundle.message("plugins.configurable.plugin.unavailable.for.platform", SystemInfo.getOsName()))
|
||||
|
||||
val feedbackDialogProvider = PlatformFeedbackDialogs.getInstance()
|
||||
uninstallFeedbackNotification = createFeedbackNotificationPanel { pluginId: String, pluginName: String, project: Project? ->
|
||||
feedbackDialogProvider.getUninstallFeedbackDialog(pluginId, pluginName, project)
|
||||
}
|
||||
disableFeedbackNotification = createFeedbackNotificationPanel { pluginId: String, pluginName: String, project: Project? ->
|
||||
feedbackDialogProvider.getDisableFeedbackDialog(pluginId, pluginName, project)
|
||||
}
|
||||
//val feedbackDialogProvider = PlatformFeedbackDialogs.getInstance()
|
||||
//uninstallFeedbackNotification = createFeedbackNotificationPanel { pluginId: String, pluginName: String, project: Project? ->
|
||||
// feedbackDialogProvider.getUninstallFeedbackDialog(pluginId, pluginName, project)
|
||||
//}
|
||||
//disableFeedbackNotification = createFeedbackNotificationPanel { pluginId: String, pluginName: String, project: Project? ->
|
||||
// feedbackDialogProvider.getDisableFeedbackDialog(pluginId, pluginName, project)
|
||||
//}
|
||||
rootPanel!!.add(panel!!, BorderLayout.CENTER)
|
||||
}
|
||||
|
||||
@@ -387,8 +390,8 @@ class PluginDetailsPageComponent @JvmOverloads constructor(
|
||||
val rootPanel = rootPanel!!
|
||||
rootPanel.remove(controlledByOrgNotification)
|
||||
rootPanel.remove(platformIncompatibleNotification)
|
||||
rootPanel.remove(uninstallFeedbackNotification)
|
||||
rootPanel.remove(disableFeedbackNotification)
|
||||
//rootPanel.remove(uninstallFeedbackNotification)
|
||||
//rootPanel.remove(disableFeedbackNotification)
|
||||
|
||||
if (!isPluginAvailable) {
|
||||
if (!isPluginCompatible) {
|
||||
@@ -403,12 +406,12 @@ class PluginDetailsPageComponent @JvmOverloads constructor(
|
||||
if (plugin != null && !sentFeedbackPlugins.contains(plugin.pluginId)) {
|
||||
val pluginIdMap = buildPluginIdMap()
|
||||
val pluginDescriptor = pluginIdMap.getOrDefault(plugin.pluginId, null)
|
||||
if (pluginDescriptor != null && pluginModel.isUninstalled(pluginDescriptor)) {
|
||||
rootPanel.add(uninstallFeedbackNotification!!, BorderLayout.NORTH)
|
||||
}
|
||||
else if (pluginModel.isDisabledInDiff(plugin.pluginId)) {
|
||||
rootPanel.add(disableFeedbackNotification!!, BorderLayout.NORTH)
|
||||
}
|
||||
//if (pluginDescriptor != null && pluginModel.isUninstalled(pluginDescriptor)) {
|
||||
// rootPanel.add(uninstallFeedbackNotification!!, BorderLayout.NORTH)
|
||||
//}
|
||||
//else if (pluginModel.isDisabledInDiff(plugin.pluginId)) {
|
||||
// rootPanel.add(disableFeedbackNotification!!, BorderLayout.NORTH)
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user