|Re: SWT API only Jar [message #1708737 is a reply to message #1708314]
||Sat, 19 September 2015 16:34
| Florian Latifi
Registered: September 2015
thanks for pointing me to the git repo.
I managed to take a look at the sources and finally I see,
why it's impossible to have something like a api-only package of swt.
For each platform, there are different sources of the same classes.
I only took a look at the Widget.java sources in all platform boundles, but it's the same for all other files, they are either the same or slightly different, when it comes to the content.
I am just a little bit curious about this code design,
what benefit would it have to write the same classes for each platform in a different way
or having copies of multiple classes, which may be just identical.
Instead, you would write something like abstract classes or interfaces and implement them for each platform differently. That's basically how they teach you object oriented programming in java, isn't it?.
[Updated on: Sat, 19 September 2015 16:36]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01562 seconds