Working with Wonder source in Eclipse

Version 42.1 by Kieran Kelleher on 2010/05/13 17:25

Warning

These instructions need to be updated to reflect the current directory layout of Wonder

Introduction

To work with Wonder source in Eclipse we import, without copying, the source projects from the Wonder source tree we downloaded in an earlier tutorial. By doing so, we make sure our workspace Wonder source projects are the same source as what we have used for our build and install.

Prerequisites

Wonder source tree is checked out from CVS: Download Wonder Source, Build and Install

Importing Wonder Projects into Eclipse

First right-click in Package Explorer and select Import... from the context menu

!Picture 1.jpg|align=center!

Select "Existing Projects into Workspace" as the import source

!Picture 2.jpg|align=center!

Click Browse... to select the root directory containing the projects

!Picture 3.jpg|align=center!

Navigate to and select ../Wonder/Common/Frameworks and click Choose

!Picture 4.jpg|align=center!

The list of projects inside that folder appear checked. Turn OFF the "Copy Projects into Workspace" checkbox and uncheck the projects you don't want and click Finish

!Picture 5.jpg|align=center!

Eclipse will build the projects and you can now browse, inspect and use Wonder source in Eclipse

!Picture 6.jpg|align=center!

Note that the Wonder source tree has other folders with projects too, so for example if you want the ExcelGenerator framework, just repeat the above import process and select the folder containing the ExcelGenerator framework project as show below

!Picture 7.jpg|align=center!

Working with WebObjects version 5.4.X
Warning

Wonder ERExtensions Source classpaths are different for WO 5.3.3 and WO 5.4.X

If you adjust the "WO Explorer" View filters so that you can see files beginning with '.', you will notice that there are three .classpath files. To work with WO 5.4.X, simply replace the contents of the ".classpath" file with the contents of the ".classpath-5.4" file