/** * Removes a {@link Listener} for the defined eventType. * * @since 0.10 */ public void removeGroupedListener(int eventType, Listener listener) throws IllegalArgumentException, IllegalStateException { whenNull(listener).throwIllegalArgument("Listener must not be null"); Composite facade = findFacade(); if (facade != null) { facade.removeListener(eventType, listener); } }
@Override public void removeListener(int eventType, Listener listener) { boolean wasListening = isListening(eventType); super.removeListener(eventType, listener); boolean isListening = isListening(eventType); String remoteType = eventTypeToString(eventType); if (remoteType != null && wasListening && !isListening) { getRemoteObject().listen(remoteType, false); } }