mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 03:20:45 +00:00
Fixed AS1/2 Direct editation mark line on error
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user