Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318680 - Update SWT cheat sheet: Unable to install the "SWT Binary and Source" package as project in Eclipse Helios
Summary: Update SWT cheat sheet: Unable to install the "SWT Binary and Source" package...
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.7 M2   Edit
Assignee: Lakshmi P Shanmugam CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 320758 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-07-02 05:27 EDT by Martin Herbst CLA
Modified: 2015-05-22 05:30 EDT (History)
5 users (show)

See Also:


Attachments
cheatsheet (2.44 KB, patch)
2010-08-03 08:55 EDT, Lakshmi P Shanmugam CLA
daniel_megert: review-
Details | Diff
cheatsheet (3.30 KB, patch)
2010-08-09 06:16 EDT, Lakshmi P Shanmugam CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.