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:
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.
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.
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.