((IImageViewer) component).addImageViewerListener(listener);
}
}
public void removeImageViewerListener(IImageViewerListener listener) {
IComponent component = getComponent();
if (component != null && component instanceof IImageViewer) {
((IImageViewer) component).removeImageViewerListener(listener);
}
}