Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT import problems(Unable to see Display or Shell in SWT Cheat Sheet for SWT Hello World app)
SWT import problems [message #809426] Tue, 28 February 2012 21:34 Go to next message
Fritz Schenk is currently offline Fritz Schenk
Messages: 9
Registered: February 2012
Junior Member
I have followed the steps of the cheat sheet, specifically 'Import the
SWT project'; this results in my choosing 'org.eclipse.swt' - I note
that there is no {platform}.{os}.{arch} as the cheat sheet says. This is
probably wrong and the source of type errors in the subsequent step of
creating a Java Project.
While focus is on the org.eclipse.swt project, I create a new java
project - I am surprised that this is not created under
'org.eclipse.swt' project, but a new java project is created (with the
name 'HelloWorldSWT;), I continue with the next step of configuring the
java project and specifying the Java Build Path where I add
'org.eclipse.swt' and click Ok.
I continue with the next step of creating a class HelloWorldSWT with
main method contents as suggested by the sheet.
I notice that 'Display' and 'Shell' are not defined.
As suggested I use the 'source.'organise imports' to no avail

What am I doing wrong or failing to do.

The particulars of my installation:
Eclipse SDK

Version: 3.7.1
Build id: M20110909-1335

(c) Copyright Eclipse contributors and others 2000, 2011. All rights
reserved.
Visit 'url of eclipse.org'

This product includes software developed by the
Apache Software Foundation 'url of apache'

I have also added scala, javascript, and groovy

Thanks
Re: SWT import problems [message #809533 is a reply to message #809426] Wed, 29 February 2012 00:58 Go to previous messageGo to next message
rplm 1234 is currently offline rplm 1234
Messages: 2
Registered: February 2012
Junior Member
Hello,

This forum msg may help:
www.eclipse.org/forums/index.php/mv/msg/260815/809527/#msg_809527

Smile
Re: SWT import problems [message #809536 is a reply to message #809426] Wed, 29 February 2012 01:01 Go to previous message
Wim Jongman is currently offline Wim Jongman
Messages: 280
Registered: July 2009
Senior Member

Quote:
I have followed the steps of the cheat sheet, specifically 'Import the
SWT project'; this results in my choosing 'org.eclipse.swt' - I note
that there is no {platform}.{os}.{arch} as the cheat sheet says. This is
probably wrong and the source of type errors in the subsequent step of
creating a Java Project.


Yes it is. It is not named {platform}.{os}.{arch}

but win32.win32.x86
or linux.linux.x86_64

Or simmilar. It is explained in the cheat sheet.

Regards,

Wim Jongman
Previous Topic:New widget and user defined styles
Next Topic:SWT.WRAP on Composite
Goto Forum:
  


Current Time: Fri Oct 24 18:05:21 GMT 2014

Powered by FUDForum. Page generated in 0.02121 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software