r5 - 27 May 2005 - 15:43:38 - DanMeehl?You are here: SuperWaba >  Codev Web  >  SuperWabaDocs > EclipseInitialSetup

Initial Setup of the Eclipse 3.0 Environment for SuperWaba

To add a SuperWaba project to eclipse requires only a few steps. This example will use the ContainerSwitch sample program to demonstrate how to add a new project to Eclipse.

Eclipse may or may not look exactly as the following shots show depending on how you might have moved things around in the workspace. The names of the different views will be the same though.

In this example the ContainerSwitch sample program was moved to a temporary directory. It can be left in the SuperWabaSDK directory just as well.

To begin click on File-New-Project to open the New Project Wizard select window.

Select the Java Wizard and click Next.

Fill in the project name and uncheck the Create in workspace box and then use the browse button to select the ContainerSwitch subdirectory as shown below. When finished press the Next button.

createJavaProject.jpg

Select the Libraries tab from the next Java Settings window. Click the Add External JARS button and select the /SuperWabaSDK/lib/SuperWaba.jar file. After the SuperWaba.jar file has been added click on the triangle to the left of the SuperWabaSDK jar file.

javaSettingsLibsSWJar.jpg

After the selctions below the jar file are expanded double click on the JavaDoc location line and select the /SuperWabaSDK/docs/html directory. Then double click the source Attachement line and select the /SuperWabaSDK/lib/SuperWaba.jar file. Then click the Finish button.

javaSettingsDoc.jpg

The project is now added to Navigator view of Eclipse and the only thing left to do is to set Eclipse to run the application. To do this click on the Run menu and select Run. Click the New button to create an new run configuration. Fill in the name at the top of the window. In the Main tab enter the project name on the Project line and on the Main Class line fill in waba.applet.Applet.

newRunConfigCS.jpg

On the Arguments tab fill in the resolution and other specifics for how this configuration should be run. In this example the arguments are /h 160 /w 160 /scale 2 /bpp 4 Main. That is height and width 160 scale 2 for twice the normal size bpp is 4 and the last argument of Main is the name of the class that extends MainWindow. Click the Apply button and then the Run button and ContainerSwitch should run as an applet on the desktop.

runConfigArgs.jpg

-- DerrellKuhlman? - 22 Feb 2004

To set up Eclipse for running/debugging your apps on Linux/Mac OSX, please the see the Eclipse set up instructions in the SDK documents.

-- AllanBressler? - 20 Mar 2004

SuperWaba IDE plugin for Eclipse
I find that it is much better to set up Eclipse using the proper SuperWaba IDE plugin from SourceForge. When you run your apps, the plugin adds a new run type called SuperWaba which will give you access to some runtime features. This may be easier for new users/coders to set up.

1. Download and install Eclipse 3.0.
2. Install the SuperWaba IDE plugin:

  • Select Help -> Software Updates -> Find and Install.
  • Select "Search for new features to install...".
  • Select "New remote site...".
  • Enter the update site. (Currently: http://superwaba-ide.sourceforge.net/update)
  • Check the SuperWaba IDE feature and install.
  • Restart if it asks you to

3. Select the 'Window' menu item then click on preferences then SuperWaba.
4. If there is nothing in the installed sdks list, add the location of the Superwaba sdk.
5. Now you are ready to create your SuperWaba project. If you need help doing so go to the SuperWaba IDE webpage http://superwaba-ide.sourceforge.net/index.html

-- DanMeehl? - 01 Sep 2004

toggleopenShow attachmentstogglecloseHide attachments
Topic attachments
I Attachment Action Size Date Who Comment
jpgjpg mainEditing.jpg manage 59.5 K 22 Feb 2004 - 23:36 DerrellKuhlman?  
Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r5 < r4 < r3 < r2 < r1 | More topic actions
 
SuperWaba home
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding SuperWaba? Send feedback