Added ExportAssets tag - show first item as description in the tree when there is only single item

This commit is contained in:
Jindra Petřík
2023-12-30 18:06:08 +01:00
parent b595ea976a
commit 9f2cd80200
2 changed files with 11 additions and 0 deletions
+1
View File
@@ -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 - [#2124] Copy tags to other SWFs and replace same classes / export names
- Remembering breakpoints - Remembering breakpoints
- [#2131] Breakpoint list dialog - [#2131] Breakpoint list dialog
- ExportAssets tag - show first item as description in the tree when there is only single item
### Fixed ### Fixed
- [#2021], [#2000] Caret position in editors when using tabs and / or unicode - [#2021], [#2000] Caret position in editors when using tabs and / or unicode
@@ -154,4 +154,14 @@ public class ExportAssetsTag extends SymbolClassTypeTag {
public void getNeededCharacters(Set<Integer> needed, SWF swf) { public void getNeededCharacters(Set<Integer> needed, SWF swf) {
needed.addAll(tags); needed.addAll(tags);
} }
@Override
public String toString() {
if (names.size() == 1) {
return super.toString() + " (" + tags.get(0) + ": " + names.get(0)+")";
}
return super.toString();
}
} }