Summary: | [Databinding] Make IConverter into a functional interface | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Jens Lideström <jens> |
Component: | UI | Assignee: | Platform-UI-Inbox <Platform-UI-Inbox> |
Status: | NEW --- | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | laeubi, marcus.hoepfner |
Version: | 4.23 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/189215 | ||
Whiteboard: |
Description
Jens Lideström
2021-12-31 05:55:36 EST
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/189215 Christoph Laeubrich wrote in the Gerrit change: (https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/189215) > I wonder if from/to are really used anywhere if they could return null it seems a bit useless. They don't seem to be really used in the framework itself... I think maybe the intention was that you could have a value of unknown type, then find the right comparator from its from-type and to-type. > Beside that they should probably better return Class<..> types instead of object? The type in the framework, for converters, observables and properties all use Object. That is because EMF uses EClassifier and related types instead of Class. The intention was that the databinding component should support EMF and other related frameworks. |