Get code editor name through CodeEditingManager

This commit is contained in:
2025-12-18 23:48:03 +02:00
parent d56340326e
commit f18e636aef
3 changed files with 22 additions and 47 deletions

View File

@@ -109,7 +109,7 @@ public:
/// <summary>
/// Gets the name of the editor.
/// </summary>
/// <returns>The name</returns>
/// <returns>The name.</returns>
virtual String GetName() const = 0;
/// <summary>
@@ -169,6 +169,13 @@ public:
/// <returns>The editor object or null if not found.</returns>
static CodeEditor* GetCodeEditor(CodeEditorTypes editorType);
/// <summary>
/// Gets the name of the editor.
/// </summary>
/// <param name="editorType">The code editor type.</param>
/// <returns>The name.</returns>
API_FUNCTION() static String GetName(CodeEditorTypes editorType);
/// <summary>
/// Opens the file. Handles async opening.
/// </summary>