Community
Participate
Working Groups
In some cases, we need to be informed of each modification of the value in the cell editor, before receiving the "commit" event that only happens when the user hits enter or changes the focus. For example, in dialogs extending JFace TitleAreaDialog, we want the error message to be updated in "real time".
I propose adding methods addChangeListener and addRemoveListener in org.eclipse.emf.facet.widgets.celleditors.IWidget to allow this.
Hello, To fix this bug we have to: - Add an interface IWidget2 which is a copy of IWidget with four more methods: /** Add a listener for commit of the wigdet */ void addCommitListener(IListener listener); /** Remove an existing listener */ void removeCommitListener(IListener listener); /** Add a listener for change to the value */ void addChangeListener(IListener listener); /** Remove an existing listener */ void removeChangeListener(IListener listener); Where the IListener is a platform independant interfaces. - Modify the class org.eclipse.emf.facet.widgets.celleditors.AbstractCellEditorComposite<T> to: * implement IWidget2. * Add a fireChanged - Modify all the sub classes of AbstractCellEditorComposite to implement the change notification behavior. Regards, Gregoire
Created attachment 193666 [details] patch
Done in revision 531.
This bug can be closed.