• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Eclipse: Hello World SWT - Plugin Problem

 
Ranch Hand
Posts: 163
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello. I'm a long time vi user and I'm trying to learn new tricks - particularly Eclipse. I could really use some help. I'm attempting to run the tutorial for "Hello World SWT" and I'm being thwarted in my goal of programmer evolution.

Eclipse: Kepler Release (Java Developers Package)
Mac OS: 10.8.5

The tutorial instruction states:

"tutorial" wrote:
Open the Import wizard from the main menu via File > Import..., and select Plug-in Development > Plug-ins and Fragments. Click Next.
On the Import Plug-ins and Fragments page, select
Import from: The active target platform.
Plug-ins and Fragments to import: Select from all plug-ins and fragments found at specified location.
Import As: Projects with source folders.
Click Next.



The Import Wizard does not offer a "Plug-In Development" selection. It lets me choose from General, CVS, Git, Install, Maven, Run/Debug, Tasks, Team, and XML.

In my eclipse/plugins directory I do see the SWT jar: org.eclipse.swt.cocoa.macosx.x86_64_3.102.0.v20130605-1544.jar. I tried importing it as an existing project but it didn't work.

Googling tells me I can download the SWT plugin separately and load it as an existing project, but it seems unnecessary if I already have the SWT jar in my plugins dir.
 
Ranch Hand
Posts: 121
12
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, Bill.

Your tutorial refers to a functionality provided by the PDE (plugin development environment, or PDT - plugin development tools). You need to install it. Simplest way is to download "eclipse for RCP and RAP developers". You may install required plugins using eclipse "Install new software dialog" but this way may be not so simple.

Some words on SWT. SWT stands for Standard Widget Toolkit. It is just a library for showing windows, buttons, panes and stuff like that. Eclipse UI is built using SWT. Library your found is the SWT library which eclipse uses internally. It does not provide any SWT-related development stuff, it only provides UI components for the Eclipse itself. It is possible to create a new "java application" and add SWT library to it. But the tutorial goes other way (I think, it describes not a pure SWT application but some application on Eclipse platform with much more features). And I'll use a separately downloaded SWT library even for a "pure SWT application", not the eclipse-bundled library instance anyway.
 
Bill Clar
Ranch Hand
Posts: 163
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Maxim. I downloaded imported the SWT library and the tutorial ran fine.
 
Quick! Before anybody notices! Cover it up with this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic