@Override public void removeContextManagerListener( final IContextManagerListener listener) { contextManager.removeContextManagerListener(listener); }
@Override public void removeCommandManagerListener( ICommandManagerListener commandManagerListener) { if (commandManagerListener == null) { throw new NullPointerException("Cannot remove a null listener"); //$NON-NLS-1$ } if (commandManagerListeners != null) { commandManagerListeners.remove(commandManagerListener); if (commandManagerListeners.isEmpty()) { commandManagerListeners = null; this.commandManager.removeCommandManagerListener(this); this.bindingManager.removeBindingManagerListener(this); this.contextManager.removeContextManagerListener(this); } } }
@Override public void removeContextListener(IContextListener contextListener) { final LegacyContextListenerWrapper wrapper = new LegacyContextListenerWrapper( contextListener, contextManager, this); wrappedContext.removeContextListener(wrapper); contextManager.removeContextManagerListener(wrapper); }