Quantcast

swt for other programming languages

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

swt for other programming languages

srikanth d
Hi, 

I have seen the applications of swt and it is quite interesting.
I am no software expert, but would like to develop an application which can create a bidirectional link between code and gui but for a language other than java. 
Lets say perl.
So, basically, creating custom widget and placing it into the layout should generate a code of chosen language in this case perl.

Does swt support such way of working.
If so, please point to an example.

Really appreciate the help here.

Thanks,
Srikanth

_______________________________________________
platform-swt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: swt for other programming languages

Leo Ufimtsev-2
Well, SWT builds on underlying gui's of the native platform.

Windows -> Win32 gui kit
OS X -> Cocoa
Linux -> Gtk.

It makes native calls to each kit based on platform. Like the factory pattern.

In general, people don't do a second level of redirection afik:
"Perl -> Java -> Native" code would probably be pretty in-efficient from a run-time perspective, and debugging that would be vvvveeeerryy hard.

Instead, high level languages like perl or python typically have their own gui bindings. For example for Pyhon there are a lot of gui toolkits, many of which are cross-platform:
https://wiki.python.org/moin/GuiProgramming
http://insights.dice.com/2014/11/26/5-top-python-guis-for-2015/

So usually you'd either use Java+SWT, or <high level language>+Some gui binding.

Hope it helps.






On Sun, Apr 2, 2017 at 3:55 PM, srikanth d <[hidden email]> wrote:
Hi, 

I have seen the applications of swt and it is quite interesting.
I am no software expert, but would like to develop an application which can create a bidirectional link between code and gui but for a language other than java. 
Lets say perl.
So, basically, creating custom widget and placing it into the layout should generate a code of chosen language in this case perl.

Does swt support such way of working.
If so, please point to an example.

Really appreciate the help here.

Thanks,
Srikanth

_______________________________________________
platform-swt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



--
Leo Ufimtsev
Software Engineer, Eclipse team.
Toronto, Canada

Red Hat, Inc.
[hidden email] | http://DeveloperBlog.RedHat.com/

_______________________________________________
platform-swt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: swt for other programming languages

Jonah Graham
There have been experiments using Python along the way:

- EASE using SWT. Here is an example creating a listviewer in Python using EASE https://github.com/jonahkichwacoders/EASE-Python-Examples/blob/master/Solutions/Integrate%20Solutions/listviewer.py
- this now dormant project adding SWT bindings for Python: https://sourceforge.net/projects/pyswt/

HTH
Jonah


~~~
Jonah Graham
Kichwa Coders Ltd.
www.kichwacoders.com

On 3 April 2017 at 15:24, Leo Ufimtsev <[hidden email]> wrote:
Well, SWT builds on underlying gui's of the native platform.

Windows -> Win32 gui kit
OS X -> Cocoa
Linux -> Gtk.

It makes native calls to each kit based on platform. Like the factory pattern.

In general, people don't do a second level of redirection afik:
"Perl -> Java -> Native" code would probably be pretty in-efficient from a run-time perspective, and debugging that would be vvvveeeerryy hard.

Instead, high level languages like perl or python typically have their own gui bindings. For example for Pyhon there are a lot of gui toolkits, many of which are cross-platform:
https://wiki.python.org/moin/GuiProgramming
http://insights.dice.com/2014/11/26/5-top-python-guis-for-2015/

So usually you'd either use Java+SWT, or <high level language>+Some gui binding.

Hope it helps.






On Sun, Apr 2, 2017 at 3:55 PM, srikanth d <[hidden email]> wrote:
Hi, 

I have seen the applications of swt and it is quite interesting.
I am no software expert, but would like to develop an application which can create a bidirectional link between code and gui but for a language other than java. 
Lets say perl.
So, basically, creating custom widget and placing it into the layout should generate a code of chosen language in this case perl.

Does swt support such way of working.
If so, please point to an example.

Really appreciate the help here.

Thanks,
Srikanth

_______________________________________________
platform-swt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



--
Leo Ufimtsev
Software Engineer, Eclipse team.
Toronto, Canada

Red Hat, Inc.
[hidden email] | http://DeveloperBlog.RedHat.com/

_______________________________________________
platform-swt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


_______________________________________________
platform-swt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: swt for other programming languages

srikanth d
Thanks Leo and Jonah for your replies.

I was very excited with the way window builder was working with swt.
So, what it does is Java <-> gui. 
Here, the java code is what is edited by user or created as an outcome of the gui changes.
Eventually, the output is either a gui application and the java code itself


My requirement is similar with small exception.
I want to isolate the effects of programming from the custom text that is generated. 
Something like in the diagram.


Inline image 2

The user sees only custom text and GUI.
The corresponding programming language runs in the background.


 But seems that is not what this tool does.

So, any pointers towards building the gui templates and corresponding code generators would be a great help.

Thanks in advance
Srikanth,





On Mon, Apr 3, 2017 at 8:06 PM, Jonah Graham <[hidden email]> wrote:
There have been experiments using Python along the way:

- EASE using SWT. Here is an example creating a listviewer in Python using EASE https://github.com/jonahkichwacoders/EASE-Python-Examples/blob/master/Solutions/Integrate%20Solutions/listviewer.py
- this now dormant project adding SWT bindings for Python: https://sourceforge.net/projects/pyswt/

HTH
Jonah


~~~
Jonah Graham
Kichwa Coders Ltd.
www.kichwacoders.com

On 3 April 2017 at 15:24, Leo Ufimtsev <[hidden email]> wrote:
Well, SWT builds on underlying gui's of the native platform.

Windows -> Win32 gui kit
OS X -> Cocoa
Linux -> Gtk.

It makes native calls to each kit based on platform. Like the factory pattern.

In general, people don't do a second level of redirection afik:
"Perl -> Java -> Native" code would probably be pretty in-efficient from a run-time perspective, and debugging that would be vvvveeeerryy hard.

Instead, high level languages like perl or python typically have their own gui bindings. For example for Pyhon there are a lot of gui toolkits, many of which are cross-platform:
https://wiki.python.org/moin/GuiProgramming
http://insights.dice.com/2014/11/26/5-top-python-guis-for-2015/

So usually you'd either use Java+SWT, or <high level language>+Some gui binding.

Hope it helps.






On Sun, Apr 2, 2017 at 3:55 PM, srikanth d <[hidden email]> wrote:
Hi, 

I have seen the applications of swt and it is quite interesting.
I am no software expert, but would like to develop an application which can create a bidirectional link between code and gui but for a language other than java. 
Lets say perl.
So, basically, creating custom widget and placing it into the layout should generate a code of chosen language in this case perl.

Does swt support such way of working.
If so, please point to an example.

Really appreciate the help here.

Thanks,
Srikanth

_______________________________________________
platform-swt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



--
Leo Ufimtsev
Software Engineer, Eclipse team.
Toronto, Canada

Red Hat, Inc.
[hidden email] | http://DeveloperBlog.RedHat.com/

_______________________________________________
platform-swt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


_______________________________________________
platform-swt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


_______________________________________________
platform-swt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
Loading...