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-11-28 16:07:58 +01:00
parent b595ea976a
commit 9f2cd80200
2 changed files with 11 additions and 0 deletions

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
- 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

View File

@@ -154,4 +154,14 @@ public class ExportAssetsTag extends SymbolClassTypeTag {
public void getNeededCharacters(Set<Integer> 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();
}
}