The SWT control classes Tree and Table have several methods with the same signature and that work in the same way.
For example:
getItemsgetSelection
But these methods are defined directly on Tree and Table, there is no common super class or interface where the methods are declared. Because of this it is hard to write code that works for both Tree and Table.
Is there a solution to this that makes it possible to write common code for both of the classes?