Fixed: Pin header for AS2 script in the Resources view should show Class name in the title instead of tag full description

This commit is contained in:
Jindra Petřík
2025-05-31 15:08:49 +02:00
parent bebf24c2f1
commit db2fa7f6e6
2 changed files with 3 additions and 2 deletions

View File

@@ -34,7 +34,6 @@ All notable changes to this project will be documented in this file.
This may break backwards compatibility. For importing scripts from older
versions of FFDec, you should move the scripts from `<default package>`
to main scripts folder.
### Fixed
- [#2456] FLA export - NullPointer exception while exporting to CS4 or lower via commandline
@@ -51,6 +50,8 @@ All notable changes to this project will be documented in this file.
- AS1/2 direct editation - Position in the code should stay same after clicking Edit button
- AS3 direct editation - Allow internal keyword on script traits (e.g. classes)
- AS3 direct editation - NaN can be used as identifier
- Pin header for AS2 script in the Resources view should show Class name in
the title instead of tag full description
## [23.0.1] - 2025-05-16
### Fixed

View File

@@ -6670,7 +6670,7 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
public String itemToString(TreeItem item) {
int index = getCurrentTree().getFullModel().getItemIndex(item);
String itemToStr = item.toString();
String itemToStr = getCurrentTree().convertValueToText(item, false, false, true, 0, false);
if (index > 1) {
return itemToStr + " [" + index + "]";
}