[devkit] Limit visibility of PSI viewer classes

GitOrigin-RevId: 68e95bc5ab25270b413f983a3085c5b6857c0b6e
This commit is contained in:
Bart van Helvert
2025-06-11 14:41:36 +02:00
committed by intellij-monorepo-bot
parent 5207e66db2
commit 8da68397b4
3 changed files with 6 additions and 6 deletions

View File

@@ -60,7 +60,7 @@ import javax.swing.tree.DefaultMutableTreeNode
private val LOG = Logger.getInstance(PsiViewerDebugAction::class.java)
class PsiViewerDebugPanel(
internal class PsiViewerDebugPanel(
private val project: Project,
private val editor: EditorEx,
private val language: Language,
@@ -341,7 +341,7 @@ class PsiViewerDebugPanel(
debugSession.removeSessionListener(watchListener)
}
internal companion object {
companion object {
fun getTitle(name: @Nls String, inWatchMode: Boolean): @Nls String {
return if (inWatchMode) name else "$name ${DateFormatUtil.formatTimeWithSeconds(System.currentTimeMillis())}"
}

View File

@@ -1,11 +1,11 @@
// Copyright 2000-2023 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.
package com.intellij.java.dev.psiViewer.debug
import com.intellij.openapi.actionSystem.ActionUpdateThread
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.ToggleAction
class PsiViewerDebugSelectUIAction : ToggleAction() {
internal class PsiViewerDebugSelectUIAction : ToggleAction() {
override fun getActionUpdateThread(): ActionUpdateThread = ActionUpdateThread.EDT
override fun isSelected(e: AnActionEvent): Boolean = PsiViewerDebugSettings.getInstance().showDialogFromDebugAction

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2023 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.
package com.intellij.java.dev.psiViewer.debug
import com.intellij.openapi.components.*
@@ -6,7 +6,7 @@ import com.intellij.util.xmlb.XmlSerializerUtil
@Service
@State(name = "PsiViewerDebugSettings", storages = [Storage(StoragePathMacros.NON_ROAMABLE_FILE)])
class PsiViewerDebugSettings : PersistentStateComponent<PsiViewerDebugSettings> {
internal class PsiViewerDebugSettings : PersistentStateComponent<PsiViewerDebugSettings> {
var showDialogFromDebugAction: Boolean = false
var watchMode: Boolean = false