mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[platform] IJPL-224518 Cleanup private modifier usages with extensions/services
GitOrigin-RevId: f486f29e0abcf0f727d3b86ff824138378387d03
This commit is contained in:
committed by
intellij-monorepo-bot
parent
37aec65948
commit
79d56857c1
+2
-2
@@ -24,8 +24,8 @@ abstract class CodeReviewDiscussionsToggleAction : ActionGroup(), DumbAware {
|
||||
|
||||
protected abstract fun findViewModel(ctx: DataContext): CodeReviewDiscussionsViewModel?
|
||||
|
||||
private class ToggleOptionAction(private val vm: CodeReviewDiscussionsViewModel,
|
||||
private val viewOption: DiscussionsViewOption) : ToggleAction(viewOption.toActionName()) {
|
||||
internal class ToggleOptionAction(private val vm: CodeReviewDiscussionsViewModel,
|
||||
private val viewOption: DiscussionsViewOption) : ToggleAction(viewOption.toActionName()) {
|
||||
override fun getActionUpdateThread(): ActionUpdateThread = ActionUpdateThread.BGT
|
||||
|
||||
override fun isSelected(e: AnActionEvent): Boolean {
|
||||
|
||||
@@ -6,7 +6,7 @@ import com.intellij.openapi.application.ApplicationManager
|
||||
/**
|
||||
* This class is used for IDE debugging to extract the required information about the IDE state in a single method.
|
||||
*/
|
||||
private class ApplicationStateDebugSupport {
|
||||
internal class ApplicationStateDebugSupport {
|
||||
companion object {
|
||||
@Suppress("unused")
|
||||
@JvmStatic
|
||||
@@ -18,4 +18,4 @@ private class ApplicationStateDebugSupport {
|
||||
}
|
||||
|
||||
@Suppress("unused")
|
||||
private class ApplicationDebugState(@JvmField val readActionAllowed: Boolean, @JvmField val writeActionAllowed: Boolean)
|
||||
internal class ApplicationDebugState(@JvmField val readActionAllowed: Boolean, @JvmField val writeActionAllowed: Boolean)
|
||||
|
||||
@@ -115,14 +115,14 @@ private fun notifyUnsatisfiedLinkError(e: UnsatisfiedLinkError) {
|
||||
CredentialStoreUiService.getInstance().notify(CredentialStoreBundle.message("notification.title.native.keychain.unavailable"), message, null, null)
|
||||
}
|
||||
|
||||
private class MacOsCredentialStoreFactory : CredentialStoreFactory {
|
||||
internal class MacOsCredentialStoreFactory : CredentialStoreFactory {
|
||||
override fun create(): CredentialStore? = when {
|
||||
isMacOsCredentialStoreSupported && JnaLoader.isLoaded() -> NativeCredentialStoreWrapper(KeyChainCredentialStore())
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
||||
private class LinuxCredentialStoreFactory : CredentialStoreFactory {
|
||||
internal class LinuxCredentialStoreFactory : CredentialStoreFactory {
|
||||
override fun create(): CredentialStore? = when {
|
||||
SystemInfo.isLinux -> {
|
||||
@Suppress("SpellCheckingInspection") val preferWallet = Registry.`is`("credentialStore.linux.prefer.kwallet", false)
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ import com.intellij.openapi.vfs.VirtualFile
|
||||
import com.intellij.testFramework.LightVirtualFile
|
||||
import com.intellij.util.SlowOperations
|
||||
|
||||
private class EditorHighlighterFactoryImpl : EditorHighlighterFactory() {
|
||||
internal class EditorHighlighterFactoryImpl : EditorHighlighterFactory() {
|
||||
override fun createEditorHighlighter(highlighter: SyntaxHighlighter?, colors: EditorColorsScheme): EditorHighlighter {
|
||||
return LexerEditorHighlighter(highlighter ?: PlainSyntaxHighlighter(), colors)
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ import com.intellij.task.ProjectTaskContext
|
||||
import com.intellij.task.ProjectTaskManager
|
||||
import com.intellij.task.impl.ProjectTaskManagerListenerExtensionPoint
|
||||
|
||||
private class ExternalProjectTaskManagerListener : ProjectTaskManagerListenerExtensionPoint {
|
||||
internal class ExternalProjectTaskManagerListener : ProjectTaskManagerListenerExtensionPoint {
|
||||
override fun beforeRun(project: Project, context: ProjectTaskContext) {
|
||||
ExternalProjectsManagerImpl.getInstance(project).projectTasksBeforeRun(context)
|
||||
}
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ import com.intellij.openapi.externalSystem.util.ExternalSystemUtil
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.startup.ProjectActivity
|
||||
|
||||
private class ReprocessContentRootDataActivity : ProjectActivity {
|
||||
internal class ReprocessContentRootDataActivity : ProjectActivity {
|
||||
|
||||
init {
|
||||
if (ApplicationManager.getApplication().isUnitTestMode) {
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ import com.intellij.openapi.externalSystem.service.project.IdeModifiableModelsPr
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.profile.codeInspection.ProjectInspectionProfileManager
|
||||
|
||||
private class InspectionsProfileConfigurationHandler: ConfigurationHandler {
|
||||
internal class InspectionsProfileConfigurationHandler: ConfigurationHandler {
|
||||
override fun apply(project: Project, modelsProvider: IdeModifiableModelsProvider, configuration: ConfigurationData) {
|
||||
if (configuration.find("inspections") !is List<*>) return
|
||||
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import com.intellij.openapi.externalSystem.util.ExternalSystemBundle.message
|
||||
import org.jetbrains.annotations.ApiStatus
|
||||
|
||||
@ApiStatus.Internal
|
||||
private class ExternalSystemGroupSearchableContributor: SearchableOptionContributor() {
|
||||
internal class ExternalSystemGroupSearchableContributor: SearchableOptionContributor() {
|
||||
private val buildToolsId = "build.tools"
|
||||
private val buildToolsName = message("settings.build.tools.display.name")
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package com.intellij.openapi.externalSystem.util.environment
|
||||
|
||||
import com.intellij.util.EnvironmentUtil
|
||||
|
||||
private class SystemEnvironment : Environment {
|
||||
internal class SystemEnvironment : Environment {
|
||||
override fun property(name: String): String? {
|
||||
return System.getProperty(name)
|
||||
}
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ import kotlin.time.Duration.Companion.minutes
|
||||
private const val timerStartedKey = "eap.feedback.scheduled"
|
||||
private const val eapFeedbackRegistryKey = "eap.feedback.notification.enabled"
|
||||
|
||||
private class EAPApplicationInitializedListener : ApplicationActivity {
|
||||
internal class EAPApplicationInitializedListener : ApplicationActivity {
|
||||
init {
|
||||
if (!isEAPEnv()) {
|
||||
throw ExtensionNotApplicableException.create()
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import com.intellij.internal.statistic.eventLog.events.EventFields
|
||||
import com.intellij.internal.statistic.service.fus.collectors.ApplicationUsagesCollector
|
||||
import com.intellij.platform.feedback.impl.state.CommonFeedbackSurveyService
|
||||
|
||||
private class FeedbackSurveysStateCollector : ApplicationUsagesCollector() {
|
||||
internal class FeedbackSurveysStateCollector : ApplicationUsagesCollector() {
|
||||
private val GROUP = EventLogGroup("feedback.surveys.state", 1)
|
||||
private val NUMBER_FEEDBACK_SURVEY_SHOWS = GROUP.registerEvent(
|
||||
"number.of.notifications.shown",
|
||||
|
||||
+1
-1
@@ -153,7 +153,7 @@ internal class LocalizationFeedbackDialog(
|
||||
}
|
||||
}
|
||||
|
||||
private class ShowLocalizationFeedbackDialog : AnAction("Test Localization Dialog") { // NON-NLS
|
||||
internal class ShowLocalizationFeedbackDialog : AnAction("Test Localization Dialog") { // NON-NLS
|
||||
override fun actionPerformed(e: AnActionEvent) {
|
||||
LocalizationFeedbackNotificationService.getInstance().showNotification()
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ import com.intellij.platform.find.FindRemoteApi
|
||||
import com.intellij.platform.rpc.backend.RemoteApiProvider
|
||||
import fleet.rpc.remoteApiDescriptor
|
||||
|
||||
private class FindRemoteApiProvider : RemoteApiProvider {
|
||||
internal class FindRemoteApiProvider : RemoteApiProvider {
|
||||
override fun RemoteApiProvider.Sink.remoteApis() {
|
||||
remoteApi(remoteApiDescriptor<FindRemoteApi>()) {
|
||||
FindRemoteApiImpl()
|
||||
|
||||
@@ -8,7 +8,7 @@ import com.intellij.openapi.project.Project
|
||||
import com.intellij.psi.search.GlobalSearchScope
|
||||
import com.intellij.usages.UsageInfoAdapter
|
||||
|
||||
private class UsageInfoModelPresentationProvider: UsagePresentationProvider {
|
||||
internal class UsageInfoModelPresentationProvider: UsagePresentationProvider {
|
||||
override fun getUsagePresentation(usageInfo: UsageInfoAdapter, project: Project, scope: GlobalSearchScope?): UsagePresentation? {
|
||||
if (usageInfo !is UsageInfoModel) return null
|
||||
val model = usageInfo.model
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.withContext
|
||||
import java.util.concurrent.CancellationException
|
||||
|
||||
private class CodeFoldingNecromancerAwaker : NecromancerAwaker<CodeFoldingZombie> {
|
||||
internal class CodeFoldingNecromancerAwaker : NecromancerAwaker<CodeFoldingZombie> {
|
||||
override fun awake(project: Project, coroutineScope: CoroutineScope): Necromancer<CodeFoldingZombie> {
|
||||
return CodeFoldingNecromancer(project, coroutineScope)
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ import com.intellij.openapi.editor.EditorFactory
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.startup.ProjectActivity
|
||||
|
||||
private class FoldingHintPostStartupActivity : ProjectActivity {
|
||||
internal class FoldingHintPostStartupActivity : ProjectActivity {
|
||||
override suspend fun execute(project: Project) {
|
||||
serviceAsync<EditorFactory>().eventMulticaster.addEditorMouseMotionListener(FoldingHintMouseMotionListener(project), project)
|
||||
}
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import com.intellij.openapi.editor.Editor
|
||||
import com.intellij.openapi.editor.FoldRegion
|
||||
import com.intellij.openapi.editor.actionSystem.EditorAction
|
||||
|
||||
private class ExpandCollapseToggleAction : EditorAction(object : BaseFoldingHandler() {
|
||||
internal class ExpandCollapseToggleAction : EditorAction(object : BaseFoldingHandler() {
|
||||
override fun doExecute(editor: Editor, caret: Caret?, dataContext: DataContext?) {
|
||||
val line = editor.caretModel.logicalPosition.line
|
||||
|
||||
|
||||
+1
-1
@@ -255,7 +255,7 @@ private fun showChooseShortcutPopup(editor: Editor, relativePoint: RelativePoint
|
||||
popup.show(relativePoint)
|
||||
}
|
||||
|
||||
private class ChangeShortcutAction(
|
||||
internal class ChangeShortcutAction(
|
||||
@NlsActions.ActionText text: String,
|
||||
shortcut: Shortcut,
|
||||
private val editor: Editor,
|
||||
|
||||
@@ -27,7 +27,7 @@ import java.nio.file.Path
|
||||
import java.util.*
|
||||
import kotlin.system.exitProcess
|
||||
|
||||
private class InspectopediaExtractor : ModernApplicationStarter() {
|
||||
internal class InspectopediaExtractor : ModernApplicationStarter() {
|
||||
override suspend fun start(args: List<String>) {
|
||||
val size = args.size
|
||||
if (size < 2) {
|
||||
|
||||
@@ -9,7 +9,7 @@ import kotlinx.coroutines.NonCancellable
|
||||
import kotlinx.coroutines.withContext
|
||||
import org.jetbrains.annotations.ApiStatus
|
||||
|
||||
private class BackendValueEntityTypesProvider : EntityTypeProvider {
|
||||
internal class BackendValueEntityTypesProvider : EntityTypeProvider {
|
||||
override fun entityTypes(): List<EntityType<*>> {
|
||||
return listOf(
|
||||
BackendRhizomeValueEntity
|
||||
|
||||
@@ -29,7 +29,7 @@ private class IdeLanguageCustomizationApiImpl : IdeLanguageCustomizationApi {
|
||||
}
|
||||
}
|
||||
|
||||
private class IdeLanguageCustomizationApiProvider : RemoteApiProvider {
|
||||
internal class IdeLanguageCustomizationApiProvider : RemoteApiProvider {
|
||||
override fun RemoteApiProvider.Sink.remoteApis() {
|
||||
remoteApi(remoteApiDescriptor<IdeLanguageCustomizationApi>()) {
|
||||
IdeLanguageCustomizationApiImpl()
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import com.intellij.platform.managed.cache.RemoteManagedCacheApi
|
||||
import com.intellij.platform.rpc.backend.RemoteApiProvider
|
||||
import fleet.rpc.remoteApiDescriptor
|
||||
|
||||
private class RemoteManagedCacheApiImplProvider : RemoteApiProvider {
|
||||
internal class RemoteManagedCacheApiImplProvider : RemoteApiProvider {
|
||||
override fun RemoteApiProvider.Sink.remoteApis() {
|
||||
remoteApi(remoteApiDescriptor<RemoteManagedCacheApi>()) {
|
||||
RemoteManagedCacheApiImpl()
|
||||
|
||||
+3
-3
@@ -19,9 +19,9 @@ import org.jetbrains.annotations.ApiStatus
|
||||
* This class is implemented as a project service. Use the [FileTypeUsageSummaryProvider] to get the service.
|
||||
*/
|
||||
@State(name = "FileTypeUsageLocalSummary", storages = [Storage(StoragePathMacros.PRODUCT_WORKSPACE_FILE)], reportStatistic = false)
|
||||
private class FileTypeUsageLocalSummary : PersistentStateComponent<FileTypeUsageLocalSummaryState>,
|
||||
FileTypeUsageSummaryProvider,
|
||||
SimpleModificationTracker() {
|
||||
internal class FileTypeUsageLocalSummary : PersistentStateComponent<FileTypeUsageLocalSummaryState>,
|
||||
FileTypeUsageSummaryProvider,
|
||||
SimpleModificationTracker() {
|
||||
@Volatile
|
||||
private var state = FileTypeUsageLocalSummaryState()
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import kotlinx.coroutines.channels.awaitClose
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
import kotlinx.coroutines.flow.channelFlow
|
||||
|
||||
private class MonolithNavbarServiceDelegate(private val project: Project) : NavBarServiceDelegate {
|
||||
internal class MonolithNavbarServiceDelegate(private val project: Project) : NavBarServiceDelegate {
|
||||
|
||||
override fun activityFlow(): Flow<Unit> = channelFlow {
|
||||
fireOnIdeActivity(project)
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ import java.util.*
|
||||
|
||||
private val INSPECTION_TOOL_INFO_CACHE = Key.create<MutableMap<String, InspectionToolInfo>>("polySymbols.inspectionTools")
|
||||
|
||||
private class PolySymbolHighlightingAnnotator : Annotator {
|
||||
internal class PolySymbolHighlightingAnnotator : Annotator {
|
||||
|
||||
private val symbolReferencesProvider = PsiPolySymbolReferenceProviderImpl()
|
||||
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ import com.intellij.refactoring.RefactoringHelper
|
||||
import com.intellij.refactoring.rename.RenameUtil
|
||||
import com.intellij.usageView.UsageInfo
|
||||
|
||||
private class PsiSourcedPolySymbolRefactoringHelper : RefactoringHelper<List<RenameHandler>> {
|
||||
internal class PsiSourcedPolySymbolRefactoringHelper : RefactoringHelper<List<RenameHandler>> {
|
||||
override fun prepareOperation(usages: Array<out UsageInfo>, elements: List<PsiElement>): List<RenameHandler> =
|
||||
usages.mapNotNull { (it.reference as? PsiSourcedPolySymbolReference)?.createRenameHandler() }
|
||||
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ import com.intellij.psi.PsiFile
|
||||
import com.intellij.refactoring.rename.PsiElementRenameHandler
|
||||
import com.intellij.refactoring.rename.RenameHandler
|
||||
|
||||
private class PsiSourcedPolySymbolRenameHandler : RenameHandler, TitledHandler {
|
||||
internal class PsiSourcedPolySymbolRenameHandler : RenameHandler, TitledHandler {
|
||||
|
||||
private var symbol: PsiSourcedPolySymbol? = null
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ interface ProjectIdManager {
|
||||
}
|
||||
|
||||
@State(name = "ProjectId", storages = [(Storage(StoragePathMacros.WORKSPACE_FILE))], reportStatistic = false)
|
||||
private class ProjectIdManagerImpl : SerializablePersistentStateComponent<ProjectIdManagerImpl.State>(State()), ProjectIdManager {
|
||||
internal class ProjectIdManagerImpl : SerializablePersistentStateComponent<ProjectIdManagerImpl.State>(State()), ProjectIdManager {
|
||||
override var id: @NonNls String?
|
||||
get() = state.id
|
||||
set(value) {
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ import kotlinx.coroutines.awaitCancellation
|
||||
import kotlinx.coroutines.coroutineScope
|
||||
import kotlinx.coroutines.launch
|
||||
|
||||
private class WorkspaceEntitiesLifecycleActivity : ProjectActivity {
|
||||
internal class WorkspaceEntitiesLifecycleActivity : ProjectActivity {
|
||||
init {
|
||||
if (ApplicationManager.getApplication().isUnitTestMode) {
|
||||
throw ExtensionNotApplicableException.create()
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.withContext
|
||||
import org.jetbrains.annotations.ApiStatus
|
||||
|
||||
private class ProjectLibraryTableBridgeInitializer : BridgeInitializer {
|
||||
internal class ProjectLibraryTableBridgeInitializer : BridgeInitializer {
|
||||
override fun isEnabled(): Boolean = true
|
||||
|
||||
override fun initializeBridges(project: Project, changes: Map<Class<*>, List<EntityChange<*>>>, builder: MutableEntityStorage) {
|
||||
|
||||
@@ -31,7 +31,7 @@ import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlin.system.measureTimeMillis
|
||||
|
||||
private class OrphanageActivity : ProjectActivity {
|
||||
internal class OrphanageActivity : ProjectActivity {
|
||||
override suspend fun execute(project: Project) {
|
||||
if (useReactiveWorkspaceModelApi()) {
|
||||
setupOpenTelemetryReporting(jpsMetrics.meter)
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ private class FilesSwitcherBackendApi : FileSwitcherApi {
|
||||
}
|
||||
}
|
||||
|
||||
private class RecentFilesBackendApiProvider : RemoteApiProvider {
|
||||
internal class RecentFilesBackendApiProvider : RemoteApiProvider {
|
||||
override fun RemoteApiProvider.Sink.remoteApis() {
|
||||
remoteApi(remoteApiDescriptor<FileSwitcherApi>()) {
|
||||
FilesSwitcherBackendApi()
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import com.intellij.platform.rpc.backend.RemoteApiProvider
|
||||
import com.intellij.platform.rpc.topics.impl.RemoteTopicApi
|
||||
import fleet.rpc.remoteApiDescriptor
|
||||
|
||||
private class BackendRemoteTopicApiProvider : RemoteApiProvider {
|
||||
internal class BackendRemoteTopicApiProvider : RemoteApiProvider {
|
||||
override fun RemoteApiProvider.Sink.remoteApis() {
|
||||
remoteApi(remoteApiDescriptor<RemoteTopicApi>()) {
|
||||
BackendRemoteTopicApi()
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import com.intellij.platform.diagnostic.telemetry.MetricsExporterEntry
|
||||
import com.intellij.platform.diagnostic.telemetry.TelemetryManager
|
||||
import com.intellij.platform.diagnostic.telemetry.impl.OpenTelemetryExporterProvider
|
||||
|
||||
private class CustomExportersListener : ApplicationInitializedListener {
|
||||
internal class CustomExportersListener : ApplicationInitializedListener {
|
||||
override suspend fun execute() {
|
||||
val ep = ExtensionPointName<OpenTelemetryExporterProvider>("com.intellij.openTelemetryExporterProvider")
|
||||
if (!ep.hasAnyExtensions()) {
|
||||
|
||||
@@ -12,7 +12,7 @@ import io.opentelemetry.sdk.metrics.export.MetricExporter
|
||||
import java.nio.file.Path
|
||||
import kotlin.time.Duration.Companion.seconds
|
||||
|
||||
private class LuxExportersProvider : OpenTelemetryExporterProvider {
|
||||
internal class LuxExportersProvider : OpenTelemetryExporterProvider {
|
||||
override fun getMetricsExporters(): List<MetricExporter> {
|
||||
if (System.getProperty(OpenTelemetryUtils.RDCT_LUX_METRICS_DIAGNOSTIC_FLAG) == null) {
|
||||
return emptyList()
|
||||
|
||||
@@ -11,7 +11,7 @@ import io.opentelemetry.sdk.metrics.export.MetricExporter
|
||||
import java.nio.file.Path
|
||||
import kotlin.time.Duration.Companion.seconds
|
||||
|
||||
private class RdctExportersProvider : OpenTelemetryExporterProvider {
|
||||
internal class RdctExportersProvider : OpenTelemetryExporterProvider {
|
||||
override fun getSpanExporters(): List<AsyncSpanExporter> {
|
||||
if (System.getProperty(OpenTelemetryUtils.RDCT_TRACING_DIAGNOSTIC_FLAG) != null && OtlpConfiguration.isTraceEnabled()) {
|
||||
return listOf(MessageBusSpanExporter())
|
||||
|
||||
@@ -7,7 +7,7 @@ import fleet.rpc.remoteApiDescriptor
|
||||
import org.jetbrains.annotations.ApiStatus.Internal
|
||||
|
||||
@Internal
|
||||
private class SeRemoteApiProvider: RemoteApiProvider {
|
||||
internal class SeRemoteApiProvider: RemoteApiProvider {
|
||||
override fun RemoteApiProvider.Sink.remoteApis() {
|
||||
remoteApi(remoteApiDescriptor<SeRemoteApi>()) {
|
||||
SeRemoteApiImpl()
|
||||
|
||||
@@ -10,7 +10,7 @@ import com.intellij.platform.searchEverywhere.SeProviderIdUtils
|
||||
import com.intellij.platform.searchEverywhere.providers.SeAsyncContributorWrapper
|
||||
import com.intellij.platform.searchEverywhere.providers.SeWrappedLegacyContributorItemsProviderFactory
|
||||
|
||||
private class SeTextItemsProviderFactory : SeWrappedLegacyContributorItemsProviderFactory {
|
||||
internal class SeTextItemsProviderFactory : SeWrappedLegacyContributorItemsProviderFactory {
|
||||
override val id: String get() = SeProviderIdUtils.TEXT_ID
|
||||
|
||||
override suspend fun getItemsProvider(project: Project?, legacyContributor: SearchEverywhereContributor<Any>): SeItemsProvider? {
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import com.intellij.ide.IdeBundle
|
||||
import com.intellij.platform.searchEverywhere.providers.topHit.SeTopHitItemsProviderFactory
|
||||
import org.jetbrains.annotations.Nls
|
||||
|
||||
private class SeBackendTopHitItemsProviderFactory : SeTopHitItemsProviderFactory() {
|
||||
internal class SeBackendTopHitItemsProviderFactory : SeTopHitItemsProviderFactory() {
|
||||
override val isHost: Boolean
|
||||
get() = true
|
||||
override val displayName: @Nls String
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ import kotlin.time.Duration.Companion.seconds
|
||||
import kotlin.time.DurationUnit
|
||||
import kotlin.time.toDuration
|
||||
|
||||
private class JsonMirrorController @JvmOverloads constructor(private val isProjectLevel: Boolean = false) : DelegatedSettingsController {
|
||||
internal class JsonMirrorController @JvmOverloads constructor(private val isProjectLevel: Boolean = false) : DelegatedSettingsController {
|
||||
init {
|
||||
if (!System.getProperty("idea.settings.json.mirror", "false").toBoolean()) {
|
||||
throw ExtensionNotApplicableException.create()
|
||||
|
||||
+2
-2
@@ -18,7 +18,7 @@ fun clearCacheStore() {
|
||||
serviceIfCreated<InternalAndCacheStorageManager>()?.storeManager?.clear()
|
||||
}
|
||||
|
||||
private class LocalSettingsController : DelegatedSettingsController {
|
||||
internal class LocalSettingsController : DelegatedSettingsController {
|
||||
private val storageManager = SynchronizedClearableLazy { service<InternalAndCacheStorageManager>() }
|
||||
|
||||
override fun <T : Any> getItem(key: SettingDescriptor<T>): GetResult<T?> {
|
||||
@@ -108,7 +108,7 @@ private class InternalAndCacheStorageManager : SettingsSavingComponent {
|
||||
private fun getEffectiveKey(key: SettingDescriptor<*>): String = "${key.pluginId.idString}.${key.key}"
|
||||
|
||||
@Suppress("unused")
|
||||
private class CacheStateStorageInvalidator : CachesInvalidator() {
|
||||
internal class CacheStateStorageInvalidator : CachesInvalidator() {
|
||||
override fun invalidateCaches() {
|
||||
service<InternalAndCacheStorageManager>().invalidateCaches()
|
||||
}
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ private val LOG = logger<SettingsSynchronizer>()
|
||||
|
||||
private val MIGRATION_EP = ExtensionPointName<SettingsSyncMigration>("com.intellij.settingsSyncMigration")
|
||||
|
||||
private class SettingsSynchronizerApplicationInitializedListener : ApplicationActivity {
|
||||
internal class SettingsSynchronizerApplicationInitializedListener : ApplicationActivity {
|
||||
|
||||
override suspend fun execute() {
|
||||
val settingsSyncEventListener = object : SettingsSyncEventListener {
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ import git4idea.log.showExternalGitLogInToolwindow
|
||||
import java.util.function.Supplier
|
||||
|
||||
@Deprecated("Please remove me after moving to new Settings Sync toolwindow")
|
||||
private class SettingsSyncHistoryAction : DumbAwareAction() {
|
||||
internal class SettingsSyncHistoryAction : DumbAwareAction() {
|
||||
override fun actionPerformed(e: AnActionEvent) {
|
||||
val project = e.project!!
|
||||
|
||||
|
||||
+1
-1
@@ -74,7 +74,7 @@ private class VcsRunConfigurationBeforeCommitConfig : PersistentStateComponent<V
|
||||
}
|
||||
}
|
||||
|
||||
private class RunConfigurationBeforeCommitHandlerFactory : CheckinHandlerFactory() {
|
||||
internal class RunConfigurationBeforeCommitHandlerFactory : CheckinHandlerFactory() {
|
||||
override fun createHandler(panel: CheckinProjectPanel, commitContext: CommitContext): CheckinHandler {
|
||||
if (panel.isNonModalCommit || panel.commitWorkflowHandler is NullCommitWorkflowHandler) {
|
||||
return RunConfigurationBeforeCommitHandler(panel.project)
|
||||
|
||||
@@ -14,7 +14,7 @@ import javax.swing.JComponent
|
||||
|
||||
private const val PLUGINS_UPDATE = "plugins.update"
|
||||
|
||||
private class PluginsUpdateStep: SmartUpdateStep {
|
||||
internal class PluginsUpdateStep: SmartUpdateStep {
|
||||
override val id = PLUGINS_UPDATE
|
||||
override val stepName = SmartUpdateBundle.message("update.plugins")
|
||||
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ import org.jdom.Element
|
||||
import java.awt.KeyboardFocusManager
|
||||
import java.awt.Window
|
||||
|
||||
private class OpenEditorsContextProvider : WorkingContextProvider() {
|
||||
internal class OpenEditorsContextProvider : WorkingContextProvider() {
|
||||
override fun getId(): String = "editors"
|
||||
|
||||
override fun getDescription(): String = TaskBundle.message("open.editors.and.positions")
|
||||
|
||||
@@ -19,7 +19,7 @@ import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.suspendCancellableCoroutine
|
||||
import kotlinx.coroutines.withContext
|
||||
|
||||
private class TipOfTheDayStartupActivity : ProjectActivity {
|
||||
internal class TipOfTheDayStartupActivity : ProjectActivity {
|
||||
init {
|
||||
if (ApplicationManager.getApplication().isHeadlessEnvironment ||
|
||||
ApplicationManager.getApplication().isUnitTestMode ||
|
||||
|
||||
@@ -12,7 +12,7 @@ import com.intellij.ui.SimpleListCellRenderer
|
||||
import com.intellij.ui.components.JBList
|
||||
import kotlinx.coroutines.launch
|
||||
|
||||
private class SelectAndShowTipAction : DumbAwareAction() {
|
||||
internal class SelectAndShowTipAction : DumbAwareAction() {
|
||||
override fun actionPerformed(e: AnActionEvent) {
|
||||
val project = e.project ?: return
|
||||
val tips = TipAndTrickBean.EP_NAME.extensionList.sortedBy { tip -> tip.id.lowercase() }
|
||||
|
||||
@@ -16,7 +16,7 @@ import com.intellij.platform.ide.progress.withBackgroundProgress
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.launch
|
||||
|
||||
private class ShowTipsAction : AnAction(), DumbAware, ActionRemoteBehaviorSpecification.BackendOnly {
|
||||
internal class ShowTipsAction : AnAction(), DumbAware, ActionRemoteBehaviorSpecification.BackendOnly {
|
||||
|
||||
override fun actionPerformed(e: AnActionEvent) {
|
||||
val project = e.project
|
||||
|
||||
@@ -12,7 +12,7 @@ import com.intellij.ui.GotItTooltipService
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.withContext
|
||||
|
||||
private class TipAndTrickManagerImpl : TipAndTrickManager {
|
||||
internal class TipAndTrickManagerImpl : TipAndTrickManager {
|
||||
private var openedDialog: TipDialog? = null
|
||||
|
||||
override suspend fun showTipDialog(project: Project?) = showTipDialog(project = project, tips = TipAndTrickBean.EP_NAME.extensionList)
|
||||
|
||||
@@ -6,7 +6,7 @@ import com.intellij.ide.caches.CachesInvalidator
|
||||
import com.intellij.openapi.application.ApplicationManager
|
||||
import com.intellij.openapi.components.service
|
||||
|
||||
private class JBCefAppCacheInvalidator : CachesInvalidator() {
|
||||
internal class JBCefAppCacheInvalidator : CachesInvalidator() {
|
||||
|
||||
override fun getComment(): String = IdeBundle.message("jcef.local.cache.invalidate.comment")
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import kotlinx.coroutines.launch
|
||||
/**
|
||||
* Forces JCEF early startup in order to support co-existence with JavaFX (see IDEA-236310).
|
||||
*/
|
||||
private class JBCefStartup(coroutineScope: CoroutineScope) {
|
||||
internal class JBCefStartup(coroutineScope: CoroutineScope) {
|
||||
@Suppress("unused")
|
||||
private var STARTUP_CLIENT: JBCefClient? = null // auto-disposed along with JBCefApp on IDE shutdown
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ internal fun usageFilteringRuleActions(project: Project, ruleState: UsageFilteri
|
||||
return result
|
||||
}
|
||||
|
||||
private class UsageFilteringRuleAction(
|
||||
internal class UsageFilteringRuleAction(
|
||||
prototype: EmptyAction,
|
||||
private val ruleState: UsageFilteringRuleState,
|
||||
private val ruleId: String,
|
||||
|
||||
@@ -57,9 +57,9 @@ class ReactionsPanel {
|
||||
}
|
||||
|
||||
|
||||
private class LikeReactionAction : ReactionAction(CommonBundle.message("button.without.mnemonic.yes"), AllIcons.Ide.LikeDimmed,
|
||||
AllIcons.Ide.Like,
|
||||
AllIcons.Ide.LikeSelected) {
|
||||
internal class LikeReactionAction : ReactionAction(CommonBundle.message("button.without.mnemonic.yes"), AllIcons.Ide.LikeDimmed,
|
||||
AllIcons.Ide.Like,
|
||||
AllIcons.Ide.LikeSelected) {
|
||||
override fun isSelected(e: AnActionEvent): Boolean {
|
||||
return getReactionStateChecker(e)?.checkState(ReactionChecker.State.Liked) == true
|
||||
}
|
||||
@@ -69,8 +69,8 @@ private class LikeReactionAction : ReactionAction(CommonBundle.message("button.w
|
||||
}
|
||||
}
|
||||
|
||||
private class DislikeReactionAction : ReactionAction(CommonBundle.message("button.without.mnemonic.no"), AllIcons.Ide.DislikeDimmed,
|
||||
AllIcons.Ide.Dislike, AllIcons.Ide.DislikeSelected) {
|
||||
internal class DislikeReactionAction : ReactionAction(CommonBundle.message("button.without.mnemonic.no"), AllIcons.Ide.DislikeDimmed,
|
||||
AllIcons.Ide.Dislike, AllIcons.Ide.DislikeSelected) {
|
||||
override fun isSelected(e: AnActionEvent): Boolean {
|
||||
return getReactionStateChecker(e)?.checkState(ReactionChecker.State.Disliked) == true
|
||||
}
|
||||
@@ -80,7 +80,7 @@ private class DislikeReactionAction : ReactionAction(CommonBundle.message("butto
|
||||
}
|
||||
}
|
||||
|
||||
private abstract class ReactionAction(
|
||||
internal abstract class ReactionAction(
|
||||
text: @NlsActions.ActionText String,
|
||||
val icon: Icon,
|
||||
val hoveredIcon: Icon,
|
||||
|
||||
Reference in New Issue
Block a user