if (types [i] == eventType) { if (listeners [i] instanceof TypedListener) { TypedListener typedListener = (TypedListener) listeners [i]; if (typedListener.getEventListener () == listener) { remove (i); return; } }
if (types [i] == eventType && listeners [i] == listener) { remove (i); return;
public void unhook (int eventType, SWTEventListener listener) {	if (types == null) return;	for (int i=0; i<types.length; i++) {		if (types [i] == eventType) {			if (listeners [i] instanceof TypedListener) {				TypedListener typedListener = (TypedListener) listeners [i];				if (typedListener.getEventListener () == listener) {					remove (i);					return;				}			}		}	}}