Fixed AS1/2 Direct editation mark line on error

This commit is contained in:
Jindra Petřík
2021-02-24 19:55:59 +01:00
parent 89e04db617
commit b2982c92ce
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
### Fixed
- #1298 AS1/2 properly decompiled setProperty/getProperty
- AS1/2 Direct editation mark line on error
## [13.0.3] - 2021-02-12
### Added
@@ -1082,8 +1082,12 @@ public class ActionPanel extends JPanel implements SearchListener<ActionSearchRe
} catch (IOException ex) {
logger.log(Level.SEVERE, "IOException during action compiling", ex);
} catch (ActionParseException ex) {
decompiledEditor.gotoLine((int) ex.line);
decompiledEditor.markError();
View.showMessageDialog(this, AppStrings.translate("error.action.save").replace("%error%", ex.text).replace("%line%", Long.toString(ex.line)), AppStrings.translate("error"), JOptionPane.ERROR_MESSAGE);
} catch (CompilationException ex) {
decompiledEditor.gotoLine((int) ex.line);
decompiledEditor.markError();
View.showMessageDialog(this, AppStrings.translate("error.action.save").replace("%error%", ex.text).replace("%line%", Long.toString(ex.line)), AppStrings.translate("error"), JOptionPane.ERROR_MESSAGE);
} catch (Throwable ex) {
logger.log(Level.SEVERE, null, ex);