| 18 | {} |
| 19 | |
| 20 | void FileItem::openFileInEditor() |
| 21 | { |
| 22 | if (m_filePath.isEmpty()) { |
| 23 | return; |
| 24 | } |
| 25 | |
| 26 | Utils::FilePath filePathObj = Utils::FilePath::fromString(m_filePath); |
| 27 | Core::IEditor *editor = Core::EditorManager::openEditor(filePathObj); |
| 28 | |
| 29 | if (!editor) { |
| 30 | LOG_MESSAGE(QString("Failed to open file in editor: %1").arg(m_filePath)); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | void FileItem::openFileInExternalEditor() |
| 35 | { |