Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipse-pmc] API request: Add API to expand SWT support in Data Binding

This is a request to add new API to Data Binding that allows the following:
1) observables for Scale selection, min, and max
2) observables for Text.getEditable()
3) observable for DateTime (new in SWT 3.3)

1 and 2 are trivial.  The new API will be...
* SWTObservables.observeSelection(Scale scale)
* SWTObservables.observeMin(Scale scale)
* SWTObservables.observeMax(Scale scale)
* SWTObservables.observeEditable(Text text)

For #3 we're wanting to introduce CompatibleSWTObservables as a superclass of SWTObservables.  This class will support SWT 3.2 only and SWTObservables will then contain the SWT 3.3 references.  SWTObservables will then have to override all methods in CompatibleSWTObservables to avoid compiler errors.  The goal for CompatibleSWTObservables will be to provide support for the previous SWT release.  Then for DateTime we'll add the following API...

SWTObservables.observeDate(DateTime dateTime)

Goals/Benefits:
Consumers will be able to observe additional widgets and attributes of SWT.  Consumers will also be able to run Data Binding against 3.2.x while we provide support for 3.3.

Corresponding bug:
[DataBinding] SWT Observable API additions - https://bugs.eclipse.org/bugs/show_bug.cgi?id=177463
This bug is an aggregate of the individual enhancement requests.

Risks:
1 and 2 pose no risks as it is new API.  3 could throw a ClassNotFound exception for clients if referencing SWTObservables while depending upon SWT 3.2.x.  The fix would be for them to reference CompatibleSWTObservables.
Performance Impact:
No performance impact.

Thanks,
Brad Reynolds


Back to the top