Bug 147530 [DataBinding] Provide event objects for change listeners
Before data binding goes 1.0 it would be wise to provide EventObjects for the following listeners to ensure that the API doesn't preclude future expansion of the values supplied to listeners. Interfaces that would be affected: * IValueChangeListener * IValueChangingListener * IListChangeListener * ISetChangeListener * IMappingChangeListener
bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/provisional/swt/MenuUpdater.java
public void handleChange(IObservable source) {
			 
			makeDirty();
		}
		public void menuHidden(MenuEvent e) {
			
		}
		public void menuShown(MenuEvent e) {
			updateIfNecessary();
		}
		
	}
	
	private Runnable updateRunnable = new Runnable() {
		public void run() {
			updateMenu();
		}
	};
	
	private PrivateInterface privateInterface = new PrivateInterface();
	private Menu theMenu;
	private IObservable[] dependencies = new IObservable[0];
	private boolean dirty = false;
	
	/**
	 * Creates an updator for the given menu.  
	 * 
	 * @param toUpdate menu to update