From c955733d2f55394aa826e29fb2255df1b33bf42d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Wed, 14 May 2025 14:34:14 +0200 Subject: [PATCH] editors.md: use table --- topics/reference_guide/editors.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/topics/reference_guide/editors.md b/topics/reference_guide/editors.md index 7709b92f6..1c8303382 100644 --- a/topics/reference_guide/editors.md +++ b/topics/reference_guide/editors.md @@ -17,11 +17,11 @@ This section covers working with text in the IntelliJ Platform editor: ### How do I get the active editor instance? -Current select editor(s) can be queried from [`FileEditorManager`](%gh-ic%/platform/analysis-api/src/com/intellij/openapi/fileEditor/FileEditorManager.java). - -From an [Action's `DataContext`](action_system.md#determining-the-action-context), use [`CommonDataKeys.EDITOR`](%gh-ic%/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/CommonDataKeys.java). - -For a given PSI Element, use [`PsiEditorUtil.findEditor()`](%gh-ic%/platform/editor-ui-api/src/com/intellij/psi/util/PsiEditorUtil.java) +| Context | API | +|----------------------------|---------------------------------------------------------------------------------------------------------------------| +| Generic | [`FileEditorManager`](%gh-ic%/platform/analysis-api/src/com/intellij/openapi/fileEditor/FileEditorManager.java) | +| [Action](action_system.md) | [`CommonDataKeys.EDITOR`](%gh-ic%/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/CommonDataKeys.java) | +| [](psi_elements.md) | [`PsiEditorUtil.findEditor()`](%gh-ic%/platform/editor-ui-api/src/com/intellij/psi/util/PsiEditorUtil.java) | ### How can I be notified about editor events?