mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
Merge remote-tracking branch 'origin/GP-0-dragonmacher-test-fixes-1-1-23'
This commit is contained in:
@@ -21,6 +21,7 @@ import java.util.Objects;
|
||||
|
||||
import javax.swing.Icon;
|
||||
|
||||
import generic.theme.GIcon;
|
||||
import ghidra.util.ColorUtils;
|
||||
|
||||
/**
|
||||
@@ -171,9 +172,20 @@ public class MultiIcon implements Icon {
|
||||
if (buffy.length() > 0) {
|
||||
buffy.append(", ");
|
||||
}
|
||||
buffy.append(ResourceManager.getIconName(icon));
|
||||
}
|
||||
|
||||
String name = getIconId(icon);
|
||||
if (name == null) {
|
||||
name = ResourceManager.getIconName(icon);
|
||||
}
|
||||
buffy.append(name);
|
||||
}
|
||||
return buffy.toString();
|
||||
}
|
||||
|
||||
private String getIconId(Icon icon) {
|
||||
if (icon instanceof GIcon gIcon) {
|
||||
return gIcon.getId();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user