mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
make tooltip on script error icon less generic
This commit is contained in:
parent
874893468e
commit
788cbc2182
2 changed files with 7 additions and 5 deletions
|
@ -255,15 +255,17 @@ class GhidraScriptTableModel extends GDynamicColumnTableModel<ResourceFile, Obje
|
|||
|
||||
label.setText(null);
|
||||
label.setToolTipText(null);
|
||||
if (info.hasErrors()) {
|
||||
label.setToolTipText("Status: " + info.getErrorMessage());
|
||||
}
|
||||
|
||||
ImageIcon icon = (ImageIcon) data.getValue();
|
||||
label.setIcon(null);
|
||||
if (icon != null) {
|
||||
label.setToolTipText("Status: Script has toolbar icon");
|
||||
label.setIcon(icon);
|
||||
if (info.hasErrors()) {
|
||||
label.setToolTipText("Status: " + info.getErrorMessage());
|
||||
}
|
||||
else {
|
||||
label.setToolTipText("Status: Script has toolbar icon");
|
||||
}
|
||||
}
|
||||
else {
|
||||
label.setToolTipText("Status: No script toolbar icon has been set");
|
||||
|
|
|
@ -518,7 +518,7 @@ public class ScriptInfo {
|
|||
*/
|
||||
public String getErrorMessage() {
|
||||
if (isCompileErrors()) {
|
||||
return "Script contains compiler errors";
|
||||
return "Error compiling script (see console)";
|
||||
}
|
||||
|
||||
if (isDuplicate()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue