mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
GP-1625: Improve consistency of DebuggerMemoryBytesProvider
This commit is contained in:
parent
7d189001d6
commit
8e3f97056b
9 changed files with 131 additions and 29 deletions
|
@ -628,6 +628,22 @@ public abstract class ComponentProvider implements HelpDescriptor, ActionContext
|
|||
dockingTool.getWindowManager().setIcon(this, icon);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the icon provided to {@link #setIcon(Icon)}
|
||||
*
|
||||
* <p>
|
||||
* This method is final, guaranteeing there is always a means for extensions of this class to
|
||||
* obtain the original icon. Some classes may override {@link #getIcon()} to apply modifications
|
||||
* when the icon is displayed in the UI. Further extensions of that class may wish to override
|
||||
* {@link #getIcon()}, too, and so might want access to the original base icon. This method
|
||||
* provides that access.
|
||||
*
|
||||
* @return the base icon
|
||||
*/
|
||||
protected final Icon getBaseIcon() {
|
||||
return icon;
|
||||
}
|
||||
|
||||
/**
|
||||
* Signals that this provider's action for showing the provider should appear in the main
|
||||
* toolbar
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue