Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to use/export SWT 4.10 in a legacy RCP application
https://www.eclipse.org/forums/index.php/mv/msg/1096985/1800917/#msg_1800917
Here is the short version of my question:
What is the official way to add the contents of the SWT zips downloaded from (https://download.eclipse.org/eclipse/downloads/drops4/R-4.10-201812060815/) to my IDE so that they will be used during compiles and pulled in during product export of my legacy 3.x RCP application when using the "Eclipse product export wizard" from the .product file's Overview pane?
The long background that brought me to this question:
I have a legacy 3.x RCP application that I'm building in compatibility mode with an Eclipse 2018-09 IDE for RCP Developers that has had the latest updates applied from the following update site:
The RCP application runs on Windows and Mac and uses SWT, and I would like to upgrade to the latest SWT version, which I have downloaded from here (I'm assuming the 4.10 SWT build is newer than the "3.109.0" versions in my IDE's plugin folder- let me know if that is wrong):
I've seen in various posts that to use these in a standard Java project you do "File -> Import... -> Existing Projects into Workspace" and then select the downloaded SWT zip file (swt-4.10-win32-win32-x86_64.zip in this case) and then modify your build path to use the new SWT project, but I feel for an RCP application adding these should somehow be handled by the .product file under the Contents pane.
As a hack, I was thinking I could just replace the "org.eclipse.swt.win32.win32.x86_64_3.109.0.v20181204-1801.jar" file in my Eclipse IDE's plugins folder with the jar from the "swt-4.10-win32-win32-x86_64.zip" but this seemed like a bad idea and I also wasn't sure if I'd need to replace the "org.eclipse.swt_3.109.0.v20181204-1801.jar" and where I'd put the contents of the "swt-4.10-cocoa-macosx-x86_64.zip" to get the latest Mac stuff pulled in during the product export.
So my question again is, what is the official way to add the contents of the above SWT zips to my IDE so that they will be used during compiles and pulled in during product export when using the "Eclipse product export wizard" from the .product file's Overview pane?
Thanks,
Jason]]>Jason Palmatier2019-01-09T17:08:58-00:00Re: How to use/export SWT 4.10 in a legacy RCP application
https://www.eclipse.org/forums/index.php/mv/msg/1096985/1801520/#msg_1801520
Quote:
(I'm assuming the 4.10 SWT build is newer than the "3.109.0" versions in my IDE's plugin folder- let me know if that is wrong)
The Eclipse 2018-12 release train is based on Eclipse Platform 4.10. So what you see in your IDE is the same as those downloads.
But you're better off setting up your build to use Tycho and so be independent of your IDE!
Brian.]]>2019-01-21T15:52:01-00:00Re: How to use/export SWT 4.10 in a legacy RCP application
https://www.eclipse.org/forums/index.php/mv/msg/1096985/1801741/#msg_1801741
https://www.eclipse.org/swt/git.php
I wasn't sure of any other way of getting the Mac version of the SWT plugin while running on a Windows system. I still haven't tried integrating either into my IDE or RCP export process, though it sounds like I won't need to worry about that for the win32 side. Tycho definitely sounds like the better way to go for building, especially multi-platform.
Once I had selected the correct Eclipse plug-ins (I selected a lot, which I will be paring back on) and selected "Set as Active Target Platform" at the top of the Target Definition file's "Definition" tab all of my SWT compilation errors disappeared. I'll be attempting a product export soon and will verify that the latest SWT plug-ins are getting added to the build.