@Override
	public boolean isEnabledForContext(ActionContext context) {
		return imagePanel.getImage() != null;
	}
Base class of DockingActions that require a NavigableImagePanel
Ghidra/Framework/Docking/src/main/java/docking/widgets/imagepanel/actions/ImagePanelDockingAction.java