[platform] IJPL-224518 Cleanup private modifier usages with extensions/services in intellij.platform.diff.impl

GitOrigin-RevId: 2a06052b967e8d6e74bba1828e5a98f589bc14eb
This commit is contained in:
Yuriy Artamonov
2025-12-22 22:17:32 +00:00
committed by intellij-monorepo-bot
parent 9c6c1e394a
commit 37aec65948
12 changed files with 16 additions and 16 deletions
@@ -138,7 +138,7 @@ internal class SwitchToRecentEditorActionGroup : ActionGroup(), DumbAware {
return ActionUpdateThread.EDT
}
private class MySwitchAction(val content: RecentBlankContent) : BlankSwitchContentActionBase() {
internal class MySwitchAction(val content: RecentBlankContent) : BlankSwitchContentActionBase() {
init {
templatePresentation.setTextWithMnemonic {
val text = content.text
@@ -34,7 +34,7 @@ import kotlinx.coroutines.withContext
import java.awt.event.WindowAdapter
import java.awt.event.WindowEvent
private class DiffApplication : ApplicationStarterBase(/* ...possibleArgumentsCount = */ 0, 2, 3) {
internal class DiffApplication : ApplicationStarterBase(/* ...possibleArgumentsCount = */ 0, 2, 3) {
override val commandName: String get() = "diff"
override val usageMessage: String
get() {
@@ -18,7 +18,7 @@ internal val IS_DIFF_FILE_EDITOR: Key<Boolean> = Key.create("IS_DEFAULT_DIFF_EDI
@ApiStatus.Internal
val CUSTOM_DIFF_ESCAPE_HANDLER: Key<AnAction> = Key.create("CUSTOM_DIFF_ESCAPE_HANDLER")
private class DefaultDiffFileEditorCustomizer : DiffRequestProcessorEditorCustomizer {
internal class DefaultDiffFileEditorCustomizer : DiffRequestProcessorEditorCustomizer {
override fun customize(file: VirtualFile, editor: FileEditor, context: DiffContext) {
registerEscapeAction(editor)
@@ -44,9 +44,9 @@ private class DefaultDiffFileEditorCustomizer : DiffRequestProcessorEditorCustom
}
}
private class DiffEditorEscapeDelegatingAction(delegate: AnAction) : AnActionWrapper(delegate), DiffEditorEscapeAction
internal class DiffEditorEscapeDelegatingAction(delegate: AnAction) : AnActionWrapper(delegate), DiffEditorEscapeAction
private class CloseDiffEditorAction : DumbAwareAction(), DiffEditorEscapeAction, ActionRemoteBehaviorSpecification.Frontend {
internal class CloseDiffEditorAction : DumbAwareAction(), DiffEditorEscapeAction, ActionRemoteBehaviorSpecification.Frontend {
override fun getActionUpdateThread(): ActionUpdateThread = ActionUpdateThread.EDT
override fun update(e: AnActionEvent) {
@@ -13,7 +13,7 @@ import com.intellij.openapi.util.text.StringUtil
import com.intellij.openapi.vfs.VirtualFile
import org.jetbrains.annotations.CalledInAny
private class DiffEditorTabTitleProvider : EditorTabTitleProvider, DumbAware {
internal class DiffEditorTabTitleProvider : EditorTabTitleProvider, DumbAware {
override fun getEditorTabTitle(project: Project, file: VirtualFile): @NlsContexts.TabTitle String? {
val title = getEditorTabName(project, file) ?: return null
return shortenTitleIfNeeded(project, file, title)
@@ -16,7 +16,7 @@ import org.jetbrains.annotations.NonNls
@NonNls
private const val DIFF_EDITOR_PROVIDER_ID = "DiffEditor"
private class DiffFileEditorProvider : DefaultPlatformFileEditorProvider, StructureViewFileEditorProvider, DumbAware {
internal class DiffFileEditorProvider : DefaultPlatformFileEditorProvider, StructureViewFileEditorProvider, DumbAware {
override fun accept(project: Project, file: VirtualFile): Boolean = file is DiffViewerVirtualFile
override fun acceptRequiresReadAction() = false
@@ -7,7 +7,7 @@ import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.VirtualFile
import javax.swing.Icon
private class DiffFileIconProvider : FileIconProvider {
internal class DiffFileIconProvider : FileIconProvider {
override fun getIcon(file: VirtualFile, flags: Int, project: Project?): Icon? {
if (file is DiffVirtualFileBase) {
return AllIcons.Actions.Diff
@@ -64,7 +64,7 @@ internal class MergeThreesideLineStatusMarkerRenderer(private val tracker: LineS
}
}
private class RollbackLineStatusRangeAction(editor: Editor, private val tracker: LineStatusTrackerBase<*>, range: Range) :
internal class RollbackLineStatusRangeAction(editor: Editor, private val tracker: LineStatusTrackerBase<*>, range: Range) :
LineStatusMarkerPopupActions.RangeMarkerAction(editor, tracker, range, IdeActions.SELECTED_CHANGES_ROLLBACK) {
override fun isEnabled(editor: Editor, range: Range): Boolean {
return true
@@ -137,8 +137,8 @@ private class CombinedSimpleDiffHeader(project: Project,
override fun getSelectionBackground(state: State): Color = CombinedDiffUI.BLOCK_HEADER_BACKGROUND
override fun changeBackgroundOnHover(state: State): Boolean = true
private class SelectableFilePathLabel(private val project: Project,
private val path: FilePath) : DumbAwareAction(), CustomComponentAction {
internal class SelectableFilePathLabel(private val project: Project,
private val path: FilePath) : DumbAwareAction(), CustomComponentAction {
private val checkBox = CheckBox("").apply { background = UIUtil.getListBackground() }
@@ -187,7 +187,7 @@ class CombinedDiffMainUI(private val model: CombinedDiffModel, private val goToC
}
}
private class MyDiffToolChooser(
internal class MyDiffToolChooser(
val context: DiffContext,
val model: CombinedDiffModel,
val settings: DiffSettings,
@@ -291,7 +291,7 @@ class CombinedDiffMainUI(private val model: CombinedDiffModel, private val goToC
}
}
private class ShowActionGroupPopupAction(
internal class ShowActionGroupPopupAction(
private val parentComponent: JComponent,
private val popupActionGroup: DefaultActionGroup
) : DumbAwareAction() {
@@ -14,7 +14,7 @@ internal interface CombinedDiffTool : DiffTool
* This tool intended only for persistence purpose.
* Combined diff viewer will be created by the corresponding [CombinedDiffComponentProcessor].
*/
private class CombinedSideBySideDiffTool : CombinedDiffTool {
internal class CombinedSideBySideDiffTool : CombinedDiffTool {
override fun canShow(context: DiffContext, request: DiffRequest): Boolean = false
override fun getName(): String = DiffBundle.message("combined.side.by.side.viewer")
@@ -120,7 +120,7 @@ abstract class EditorTabDiffPreview(val project: Project) : CheckedDisposable, D
}
}
private class DiffEditorPreviewEscapeAction(preview: EditorTabDiffPreview) : DumbAwareAction(), DiffEditorEscapeAction {
internal class DiffEditorPreviewEscapeAction(preview: EditorTabDiffPreview) : DumbAwareAction(), DiffEditorEscapeAction {
private val previewRef: WeakReference<EditorTabDiffPreview> = WeakReference(preview)
override fun getActionUpdateThread(): ActionUpdateThread = ActionUpdateThread.BGT
@@ -237,7 +237,7 @@ private fun closeActivePopup() {
LineStatusMarkerPopupService.instance.closeActivePopup()
}
private class LineStatusMakerEscEditorHandler(private val delegate: EditorActionHandler) : EditorActionHandler() {
internal class LineStatusMakerEscEditorHandler(private val delegate: EditorActionHandler) : EditorActionHandler() {
override fun isEnabledForCaret(editor: Editor, caret: Caret, dataContext: DataContext?): Boolean {
return delegate.isEnabled(editor, caret, dataContext)
}