GP-1625: Improve consistency of DebuggerMemoryBytesProvider

This commit is contained in:
Dan 2024-03-08 12:36:17 -05:00
parent 7d189001d6
commit 8e3f97056b
9 changed files with 131 additions and 29 deletions

View file

@ -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