mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
Test fixes
This commit is contained in:
parent
2ee1d80215
commit
eb7e77defe
1 changed files with 14 additions and 2 deletions
|
@ -21,6 +21,7 @@ import java.util.Objects;
|
||||||
|
|
||||||
import javax.swing.Icon;
|
import javax.swing.Icon;
|
||||||
|
|
||||||
|
import generic.theme.GIcon;
|
||||||
import ghidra.util.ColorUtils;
|
import ghidra.util.ColorUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -171,9 +172,20 @@ public class MultiIcon implements Icon {
|
||||||
if (buffy.length() > 0) {
|
if (buffy.length() > 0) {
|
||||||
buffy.append(", ");
|
buffy.append(", ");
|
||||||
}
|
}
|
||||||
buffy.append(ResourceManager.getIconName(icon));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
String name = getIconId(icon);
|
||||||
|
if (name == null) {
|
||||||
|
name = ResourceManager.getIconName(icon);
|
||||||
|
}
|
||||||
|
buffy.append(name);
|
||||||
|
}
|
||||||
return buffy.toString();
|
return buffy.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private String getIconId(Icon icon) {
|
||||||
|
if (icon instanceof GIcon gIcon) {
|
||||||
|
return gIcon.getId();
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue