gumtree development environment setup windows only compatible with eclipse 3.2 m3 (last update:...

56
GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Upload: basil-oneal

Post on 04-Jan-2016

220 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

GumTree Development Environment Setup

Windows Only

Compatible with Eclipse 3.2 M3

(Last update: 16/11/05)

Page 2: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Prerequisite

• J2SE Development Kit (JDK) 5.0 installedhttp://java.sun.com/j2se/1.5.0/download.jsp

• Network access to Sourceforge CVSEither in pserver protocol or extssh protocol

• GumTree committers only:GumTree Project account on Sourceforge

Page 3: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Download Files

• Download Eclipse 3.2 M3 SDK for Windowshttp://download.eclipse.org/eclipse/downloads/

drops/S-3.2M3-200511021600/download.php?dropFile=eclipse-SDK-3.2M3-win32.zip

• Download GEF 3.1 SDK with Examples http://www.eclipse.org/downloads/download.php?file=/tools/gef/d

ownloads/drops/R-3.1-200507071758/GEF-ALL-3.1.zip

• Download GumTree External Plug-in Pack for Windows http://gumtree.sourceforge.net/files/

GumTreeExternalPluginPack(win32).zip

Page 4: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Project Sets

• Download GumTree Common Library Project Set Committer (password required):http://gumtree.sourceforge.net/files/GumTree-Lib(extssh).psf

General (no password):http://gumtree.sourceforge.net/files/GumTree-Lib(pserver).psf

• Download GumTree Platform Project Set Committer (password required):http://gumtree.sourceforge.net/files/GumTree-Platform(extssh).psf

General (no password):http://gumtree.sourceforge.net/files/GumTree-Platform (pserver).psf

Page 5: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

General Instructions

• General Instructions can be found here:http://gumtree.sourceforge.net/wiki/index.php/

GumTree_Development_Setup

Page 6: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)
Page 7: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Checklist

• JDK5 installed

• Eclipse SDK 3.2 M3, GEF SDK 3.1, and GumTree External Plug-in pack has been downloaded

• Team project set for GumTree Common Library and GumTree Platform has been downloaded

• Sourceforge user login and password ready (committer only)

Let’s Rock ‘n’ Roll!

Page 8: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Assume we use c:\gumdev as our development folder.Let’s extract Eclipse SDK to c:\gumdev

Page 9: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Also extract GEF SDK to c:\gumdev

Page 10: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Finally extract GumTree External Plug-in Pack to c:\gumdev

Page 11: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

After extraction, open directory c:\gumdev\eclipse, and launch eclipse.exe

Page 12: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Eclipse requires users to specify a workspace. For GumTree development, type c:\gumdev\gumtree\plugins as our workspace. Click OK to continue.

Page 13: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Intro screen in Eclipse is opened by default. Click the icon at the upper right corner to continue.

Page 14: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

This is the Java perspective in the Eclipse workbench.

Page 15: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

GumTree leverages the latest J2SE5.0 features. Eclipse needs to be configured to support those.Select Window -> Preferences... to open the setting dialog.

Page 16: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Select Java -> ComplierOn the right hand side, change Complier compliance level to 5.0

Page 17: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Select Java -> Installed JREsSome build operations in GumTree use utilities from the JDK package. We should change the default Eclipse JRE from normal JRE to JDK

Page 18: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Click Add to introduce a new Java Virtual Machine location.

Page 19: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Type jdk1.5 as in the name boxThen click Browse… for selecting JDK location

Page 20: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

By default, JDK5 should be installed to C:\Program Files\Java\jdk1.5.0_xx for the Windows platform.Select that fold and click OK

Page 21: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Select jdk1.5 as the default JRE, and click OK to close dialog

Page 22: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Eclipse will warn you about changes to the complier. Click Yes to continue.

Page 23: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Now we need to import some projects to start our development.Select “Import…” from the File menu.

Page 24: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Select “Team Project Set” from the dialog and click Next.

Page 25: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Click “Browse” to import a team project set file

Page 26: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

We should first import Browse and select GumTree-Lib(extssh).psf

Page 27: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

After importing the GumTree Lib team project set, click Finish to continue. DO NOT click on “Create a working set…”

Page 28: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

If you are using the extssh team project set, you will require souceforge user login and password.Click save password for your convenience.

Page 29: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

If you are using the pserver team project set, you will not be asked for password. Please wait until the project is loaded to your workspace

Page 30: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Project “lib” (plus several others) should be loaded in your workspace. Eclipse provides a way to group multiple projects under a single folder (working set). Let’s us select lib project first.

Page 31: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Click on the inverted triangle on the right upper corner of the Package Explorer. Select Show -> Working Sets

Page 32: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

A Select Working Sets dialog appears, and let’s click New to add a new working set.

Page 33: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Type GumTree-Lib for our GumTree Common Library working set. The lib project should be checked as well.Click Finish to continue

Page 34: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

To arrange our new working set in a proper order, select GumTree-Lib and click Up to swap display order.

Page 35: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

GumTree-Lib should now be our first project. Click OK to continue

Page 36: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

lib is now properly grouped under GumTree-Lib

Page 37: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

By default, Eclipse will copy the lib directory to other directory by an ANT builder. In some occasions, Eclipse may not do this automatically. To check if Eclipse does the job, select lib project, right click and select Properties.

Page 38: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Click on Builders, and make sure CodeLib is selected.

Page 39: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Also, if the ANT script is running correctly, lib project should be copied to C:\gumdev\gumtree

Page 40: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Continue to import GumTree Platform Team Project Set to our workspace

Page 41: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

This time we import GumTree-Platform(extssf).psf (or GumTree-Platform(pserver).psf for non committers)

Page 42: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

GumTree Platform is BIG in size. Please allow Eclipse some time to fetch all projects to your workspace. It’s now for us to take a coffee……

Page 43: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Eclipse will start to build GumTree once all projects has been checked out. You will see lots of compilation errors at the beginning. DO NOT PANIC.

Page 44: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Select Project -> Clean…

Page 45: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Click “Clean all Project” and OK

Page 46: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

All projects should be compiled. If problem raises, please contact us by email: [email protected]

Page 47: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Let’s create a new working set for the GumTree Platform projects.Firstly, select everything under “Other Projects”, and then open the menu in Package Explorer and select “Select Working Sets…”.

Page 48: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Add new working set, and name it as GumTree-Platform

Page 49: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Move GumTree-Platform to top level

Page 50: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Like lib project, projects in the GumTree Platform run several ANT scripts to copy folders outside of our workspace.By default, Eclipse copies:•org.eclipse.rcp_3.1.0•org.gumtree.gumzilla_1.0.0•org.gumtree.platform_1.0.0to C:\gumdev\gumtree\features

Page 51: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Also, it copies a number of Eclipse plug-ins to C:\gumdev\gumtree\pluginsIf you don’t see those plug-ins in place, please check the project properties in org.eclipse.rcp-feature

Page 52: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

We are only ready to run GumTree!Move your mouse cursor to “Run” cool bar tool.

Page 53: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Select a launch configuration called “GumTree_for_windows”

Page 54: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

Click Run

Page 55: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

A login dialog should appear if GumTree is launched successfully.Click login to continue.

Page 56: GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)

GumTree is now running on your machine. Have fun!!