mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 11:53:49 +07:00
Refactor InstallOnboardingTipsEditorListener.editorCreated
GitOrigin-RevId: 52ef97033a34b7ddada96aeee2cc87f32185693b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4b94779249
commit
c8af750f76
@@ -121,18 +121,19 @@ private class InstallOnboardingTooltip : ProjectActivity {
|
||||
|
||||
private class InstallOnboardingTipsEditorListener : EditorFactoryListener {
|
||||
override fun editorCreated(event: EditorFactoryEvent) {
|
||||
val project = event.editor.project ?: return
|
||||
val editor = event.editor
|
||||
val project = editor.project ?: return
|
||||
|
||||
val info = onboardingTipsInstallationInfoKey.get(project)
|
||||
|
||||
if (info != null) {
|
||||
project.putUserData(onboardingTipsInstallationInfoKey, null)
|
||||
installTipsInFirstEditor(event.editor, project, info)
|
||||
installTipsInFirstEditor(editor, project, info)
|
||||
} else {
|
||||
val pathToRunningFile = project.filePathWithOnboardingTips ?: return
|
||||
if (event.editor.virtualFile?.path != pathToRunningFile) return
|
||||
if (editor.virtualFile?.path != pathToRunningFile) return
|
||||
}
|
||||
DocRenderManager.setDocRenderingEnabled(event.editor, true)
|
||||
DocRenderManager.setDocRenderingEnabled(editor, true)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user