mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
[devkit] Limit visibility of PSI viewer classes
GitOrigin-RevId: 68e95bc5ab25270b413f983a3085c5b6857c0b6e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5207e66db2
commit
8da68397b4
@@ -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())}"
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user