mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-28 03:00:59 +00:00
constant pool editing: escape strings
This commit is contained in:
@@ -91,7 +91,7 @@ public class ConstantsListModel implements ListModel {
|
||||
case TYPE_DECIMAL:
|
||||
return (index + 1) + ":" + constants.getDecimal(index + 1);
|
||||
case TYPE_STRING:
|
||||
return (index + 1) + ":" + Helper.escapeString(constants.getString(index + 1));
|
||||
return (index + 1) + ":" + Helper.escapeActionScriptString(constants.getString(index + 1));
|
||||
case TYPE_NAMESPACE:
|
||||
return (index + 1) + ":" + constants.getNamespace(index + 1).getNameWithKind(constants);
|
||||
case TYPE_NAMESPACESET:
|
||||
|
||||
@@ -796,7 +796,6 @@ public class ActionPanel extends JPanel implements SearchListener<ActionSearchRe
|
||||
|
||||
SWF.uncache(src);
|
||||
src.setModified();
|
||||
mainPanel.refreshTree(src.getSwf());
|
||||
setSource(this.src, false);
|
||||
View.showMessageDialog(this, AppStrings.translate("message.action.saved"), AppStrings.translate("dialog.message.title"), JOptionPane.INFORMATION_MESSAGE, Configuration.showCodeSavedMessage);
|
||||
saveButton.setVisible(false);
|
||||
@@ -804,6 +803,7 @@ public class ActionPanel extends JPanel implements SearchListener<ActionSearchRe
|
||||
editButton.setVisible(true);
|
||||
editor.setEditable(false);
|
||||
editMode = false;
|
||||
mainPanel.refreshTree(src.getSwf());
|
||||
} catch (IOException ex) {
|
||||
} catch (ActionParseException ex) {
|
||||
editor.gotoLine((int) ex.line);
|
||||
|
||||
Reference in New Issue
Block a user