Community
Participate
Working Groups
ViewerObservables have been superseded by ViewerProperties in the same way as SWTObservables was superseded by WidgetProperties. The observable factories in ViewerObservables should be deprecated so that there is only one canonical way to create viewer observables, and one place where that has to be maintained. ViewersObservables has the method observeDelayedValue that is not in ViewersProperties: https://git.eclipse.org/r/plugins/gitiles/platform/eclipse.platform.ui/+/master/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/viewers/ViewersObservables.java?id=6f92cd6dde71e17f0d014c5fe72f89b905ab0de2#66 Since ViewersObservables is a sensible place for that method only the other methods should be deprecated, not the ViewersObservables class itself.
(In reply to Lars Vogel from comment #15) https://bugs.eclipse.org/bugs/show_bug.cgi?id=327086#c15 > Why not adding this method to Viewers Properties? We could do that. My motivation for thinking that the method (observeDelayedValue) should remain on ViewersObservables is that it deals only with observables, not with properties. But a slight disadvantage of that solution is that there will be only one non-deprecated method on ViewersObservables, and maybe that makes it harder for users to find it.
(In reply to Jens Lideström from comment #1) > (In reply to Lars Vogel from comment #15) > https://bugs.eclipse.org/bugs/show_bug.cgi?id=327086#c15 > > > Why not adding this method to Viewers Properties? > > We could do that. > > My motivation for thinking that the method (observeDelayedValue) should > remain on ViewersObservables is that it deals only with observables, not > with properties. > > But a slight disadvantage of that solution is that there will be only one > non-deprecated method on ViewersObservables, and maybe that makes it harder > for users to find it. I suggest to start with this solution (deprecate all but one method) to improve the current situation. Jens, please provide Gerrit.
New Gerrit change created: https://git.eclipse.org/r/137941
The Gerrit change above should resolve the issue.
New Gerrit change created: https://git.eclipse.org/r/137943
Gerrit change https://git.eclipse.org/r/137943 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=6af0b37eb1d48e77e640bb2c542e9474e59e9c6e
Thanks, Jens.