A number of obsolete classes in the Eclipse Core Databinding framework
have been marked for deletion at some point after September 2022.

There are two groups of classes that this applies to.

### Observable factory classes

These has been obsolete since 2014 when the databinding framework
transitioned to use a property-based design. They are the following:

org.eclipse.core.databinding.beans.BeansObservables
org.eclipse.core.databinding.beans.PojoObservables
org.eclipse.jface.databinding.swt.SWTObservables
org.eclipse.jface.databinding.viewers.ViewersObservables
org.eclipse.ui.databinding.WorkbenchObservables

All methods on these classes have corresponding property factories methods
that can be used as drop-in replacements. The general pattern for updating
client code is the following:

IObservableValue<Object> value =
ViewersObservables.observeSingleSelection(viewer);

Can be replaced by this:

IObservableValue<Object> value =
ViewerProperties.singleSelection().observe(viewer);

This is the relevant Bugzilla ticket:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=546820

### Untyped property factory classes

When type parameters where added to the classes in the databinding
framework in 2019 some old classes where preserved without updates to
preserve backwards compatibility. They now use raw types. These classes
were given fully typed buddies, located in a sub-package called "typed".

For example, this class has factory methods that return untyped, raw
property objects:

org.eclipse.jface.databinding.swt.WidgetProperties

The following class is updated to return property objects with type arguments:

org.eclipse.jface.databinding.swt.typed.WidgetProperties

The following untyped property factory classes have been marked for deletion:

org.eclipse.ui.databinding.WorkbenchProperties
org.eclipse.core.databinding.beans.BeanProperties
org.eclipse.core.databinding.beans.PojoProperties
org.eclipse.jface.databinding.viewers.ViewerProperties
org.eclipse.jface.databinding.swt.WidgetProperties

This is the relevant Bugzilla ticket:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=546822

Best regards,
Jens Lideström

_______________________________________________
cross-project-issues-dev mailing list
cross-project-issues-dev@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/cross-project-issues-dev

Reply via email to