From 9f2cd802005fda5b2dd467c4492e707d7d98cb12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Tue, 28 Nov 2023 16:07:58 +0100 Subject: [PATCH] Added ExportAssets tag - show first item as description in the tree when there is only single item --- CHANGELOG.md | 1 + .../jpexs/decompiler/flash/tags/ExportAssetsTag.java | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2568aa1f7..8b17c81df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ All notable changes to this project will be documented in this file. - [#2124] Copy tags to other SWFs and replace same classes / export names - Remembering breakpoints - [#2131] Breakpoint list dialog +- ExportAssets tag - show first item as description in the tree when there is only single item ### Fixed - [#2021], [#2000] Caret position in editors when using tabs and / or unicode diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/ExportAssetsTag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/ExportAssetsTag.java index 9e5373ce3..00f03ca38 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/ExportAssetsTag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/ExportAssetsTag.java @@ -154,4 +154,14 @@ public class ExportAssetsTag extends SymbolClassTypeTag { public void getNeededCharacters(Set needed, SWF swf) { needed.addAll(tags); } + + @Override + public String toString() { + if (names.size() == 1) { + return super.toString() + " (" + tags.get(0) + ": " + names.get(0)+")"; + } + return super.toString(); + } + + }