SWT/JFace 的非弃用数据绑定

Non-Deprecated Data Binding for SWT/JFace

我最近一直在研究 Eclipse 插件开发,当我尝试使用 Eclipse Bindings 在我的数据模型中将 SWT Text 绑定到 String 选项卡,它生成的代码依赖于已弃用的 类,例如 WidgetPropertiesPojoProperties

有没有更新的类我错过了?是否有一种 简单 方法来进行数据绑定而不必抑制警告?

对于 WidgetProperties 使用 org.eclipse.jface.databinding.swt.typed 包中的 class 而不是 org.eclipse.jface.databinding.swt.

中已弃用的 classes

对于 PojoPropertiesBeanProperties 替换在 org.eclipse.core.databinding.beans.typed 而不是 org.eclipse.core.databinding.beans

ViewerProperties in org.eclipse.jface.databinding.viewer 也被替换为 class in org.eclipse.jface.databinding.viewers.typed

xxx.typed 包中的 classes 已修改为使用泛型。