SWT API only Jar [message #1708031] |
Fri, 11 September 2015 10:46  |
Eclipse User |
|
|
|
Hello Guys,
I am developing a framework which uses SWT, and would like to build it without depending on platform relevant stuff. Other projects, which use my framework, should take care of the platform specific dependencies.
When I look at the Eclipse release site, I only find platform specific SWT libraries, which all contain api relevant java classes I need for my framework. So I am asking, why Eclipse doesn't provide something like a API only jar file.
Best regards.
|
|
|
|
|
|
Re: SWT API only Jar [message #1708737 is a reply to message #1708314] |
Sat, 19 September 2015 12:34  |
Eclipse User |
|
|
|
Hello Niraj,
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?.
Best regards
Florian Latifi
[Updated on: Sat, 19 September 2015 12:36] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.28179 seconds