|
|
Re: SWT API only Jar [message #1708177 is a reply to message #1708031] |
Mon, 14 September 2015 11:48 |
Florian Latifi Messages: 3 Registered: September 2015 |
Junior Member |
|
|
Hello Niraj and thanks for your reply.
We are currently creating a 2d rpg game and want to use swt for our map editor.
We are developing a small framework, which is used by our game and our map editor.
This framework has some dependencies to swt.
And here is our problem:
We want our framework to be without any platform relevant dependencies, because it's not a standalone application.
The framework is used by the game and the map editor,
we want THEM to be built for different platforms with the platform relevant dependencies, and not our framework.
Eclipse only provides platform dependent bundles of swt.
There is no api-only bundle which we could use.
Well, we could simply download a specific platform dependent bundle and just extract the swt-api-classes that we need.
The question is, are these classes in all these different bundles the same?
Best regards,
Florian Latifi
[Updated on: Mon, 14 September 2015 11:49] Report message to a moderator
|
|
|
|
Re: SWT API only Jar [message #1708737 is a reply to message #1708314] |
Sat, 19 September 2015 16:34 |
Florian Latifi Messages: 3 Registered: September 2015 |
Junior Member |
|
|
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 16:36] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03970 seconds