Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318680

Summary: Update SWT cheat sheet: Unable to install the "SWT Binary and Source" package as project in Eclipse Helios
Product: [Eclipse Project] JDT Reporter: Martin Herbst <develop>
Component: UIAssignee: Lakshmi P Shanmugam <lshanmug>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, greg_ads, jules, lshanmug, remy.suen
Version: 3.6   
Target Milestone: 3.7 M2   
Hardware: All   
OS: All   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=464960
Whiteboard:
Attachments:
Description Flags
cheatsheet
daniel_megert: review-
cheatsheet none

Description Martin Herbst CLA 2010-07-02 05:27:41 EDT
Build Identifier: 20100617-1415

I followed the cheat sheet "Create a Hello World SWT Application" and downloaded the SWT Binary and Source Package for Windows 32 Bit (swt-3.6-win32-win32-x86.zip).
It is not possible to import this package as project (as described in the cheat sheet) because the files .project and .classpath are missing in the archive.

As a workaround I used the archive for Eclipse 3.5 imported the project and the replaced the files by the content of the archive for 3.6.

Reproducible: Always

Steps to Reproduce:
1. Download the package swt-3.6-win32-win32-x86.zip
2. Try to import the SWT project from the main menu via File > Import..., and select Existing Projects into Workspace. Specify the archive file you downloaded and click Finish
3. This process will fail.
Comment 1 Lakshmi P Shanmugam CLA 2010-07-02 11:16:01 EDT
The step to import the SWT project from the zip is no longer valid. The cheatsheet needs to be updated.

Please follow the below steps:
1) Extract the swt-3.6-win32-win32-x86.zip file
2) The extracted folder contains 2 jar files swt.jar and swt-debug.jar
3) On the Java build path page of your project, open the Libraries tab. And add the swt.jar as an external jar.
Comment 2 Lakshmi P Shanmugam CLA 2010-07-02 11:18:45 EDT
Thanks for reporting this. Keeping this bug open to update the cheatsheet.
Comment 3 Lakshmi P Shanmugam CLA 2010-08-03 08:55:33 EDT
Created attachment 175773 [details]
cheatsheet

The steps in HelloWorldSWT cheatsheet need to be updated.
Comment 4 Dani Megert CLA 2010-08-04 03:23:05 EDT
Lakshmi, for quite some time the step to download is no longer needed: one can simply import the SWT project(s) via 'Import Plug-ins and Fragments'.

Can you update the cheatsheet (patch) accordingly? Thanks.
Comment 5 Dani Megert CLA 2010-08-09 04:23:15 EDT
*** Bug 320758 has been marked as a duplicate of this bug. ***
Comment 6 Lakshmi P Shanmugam CLA 2010-08-09 06:16:50 EDT
Created attachment 176144 [details]
cheatsheet

Hi Dani, I have modified the cheatsheet accordingly.
Comment 7 Dani Megert CLA 2010-08-09 07:12:19 EDT
Thanks!
Committed to HEAD.
Comment 8 jules CLA 2010-09-22 11:19:53 EDT
There are other problems related to this change. The "Developing SWT Applications Using Eclipse" page on the SWT main web site needs to be updated, too.

http://www.eclipse.org/swt/eclipse.php
Comment 9 Dani Megert CLA 2010-09-23 02:07:37 EDT
(In reply to comment #8)
> There are other problems related to this change. The "Developing SWT
> Applications Using Eclipse" page on the SWT main web site needs to be updated,
> too.
> 
> http://www.eclipse.org/swt/eclipse.php
Please file a bug against SWT. We (JDT) have no access to that.
Comment 10 Lakshmi P Shanmugam CLA 2010-09-23 02:27:44 EDT
(In reply to comment #8)
> There are other problems related to this change. The "Developing SWT
> Applications Using Eclipse" page on the SWT main web site needs to be updated,
> too.
> 
> http://www.eclipse.org/swt/eclipse.php
The original problem happens in the 3.6 & 3.5.2 builds. It has been fixed in 3.6.1. Please see Bug 323600 
You'll be able to import the downloaded 3.6.1 package as a project.