Bug 117519 Provide clear() method on ListenerList
Please provide the following method on ListenerList /** * Removes all listeners from this list. */ public synchronized void clear() { listeners = EmptyArray; }
bundles/org.eclipse.jface/src/org/eclipse/jface/util/ListenerList.java
* Creates a listener list with an initial capacity of 1.
	 */
	public ListenerList() {
		super(IDENTITY);
	}
	/**
	 * Creates a listener list with the given initial capacity.
	 * 
	 * @param capacity
	 *            the number of listeners which this list can initially accept
	 *            without growing its internal representation; must be at least
	 *            1
	 */
	public ListenerList(int capacity) {
		
		this();
	}
	/**
	 * Removes all listeners from this list.
	 */
	public void clear() {
		
		
		final Object[] listeners = getListeners();
		for (int i = 0; i < listeners.length; i++) {
			remove(listeners[i]);
		}
	}
}