* @brief Validates the current code for syntax errors and reports the result. */
| 408 | * @brief Validates the current code for syntax errors and reports the result. |
| 409 | */ |
| 410 | void DataModel::JsCodeEditor::evaluate() |
| 411 | { |
| 412 | auto& parser = DataModel::FrameParser::instance(); |
| 413 | if (parser.loadScript(m_sourceId, text(), true)) { |
| 414 | Misc::Utilities::showMessageBox(tr("Code Validation Successful"), |
| 415 | tr("No syntax errors detected in the parser code."), |
| 416 | QMessageBox::Information); |
| 417 | } |
| 418 | } |
| 419 | |
| 420 | /** |
| 421 | * @brief Reloads the editor text from the current project model code. |
no test coverage detected