| Summary: | [celleditors] change listener | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Nicolas Bros <nicolas.bros> | ||||
| Component: | EMF-Facet | Assignee: | Nicolas Bros <nicolas.bros> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | emft.facet-inbox, gdupe | ||||
| Version: | unspecified | Flags: | nicolas.bros:
indigo+
|
||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 342832 | ||||||
| Attachments: |
|
||||||
|
Description
Nicolas Bros
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. |