Development Environment Setup

EclipseTrader is developed using Eclipse 3.4 (Ganymede).

  • Download and install Eclipse SDK from http://download.eclipse.org/eclipse/downloads/drops/R-3.4.1-200809111700/index.php.
  • Download the following packages that composes the target platform:
    • eclipse-platform-SDK-3.4.1 (choose you preferred OS)
    • eclipse-3.4.1-delta-pack.zip (if you want to export to multiple OSes)
    • eclipse-test-framework-3.4.1.zip
  • Unpack all packages to a dedicated directory, for example platform-3.4. Do not unpack to the Eclipse SDK directory.
  • From Eclipse, open Window -> Preferences and go to Plug-in Development / Target Platform. In the Location field type the full path to the target platform directory you have created above and click the Reload button. The Plug-ins tab should list the plugins extracted above. Click Ok and the Target Platform is set.
  • The project uses Subversion as the source code repository, so you need to install an svn Team Provider. We are using Subclipse.

Now download and import the source code.

Check-out from command line

Check-out the complete source code tree from the subversion repository:

svn co http://svn.eclipsetrader.org/svnroot/eclipsetrader/trunk eclipsetrader

This command checks-out all projects, including JUnit tests and few obsolete projects (starting with net.sourceforge.*) to a directory named eclipsetrader.

The Nebula plugins can be checked-out directly from Eclipse cvs repository:

cd eclipsetrader
cvs -d:pserver:anonymous@dev.eclipse.org:/cvsroot/technology co -P -d org.eclipse.nebula.widgets.cdatetime org.eclipse.swt.nebula/org.eclipse.nebula.widgets.cdatetime
cvs -d:pserver:anonymous@dev.eclipse.org:/cvsroot/technology co -P -d org.eclipse.nebula.widgets.pshelf org.eclipse.swt.nebula/org.eclipse.nebula.widgets.pshelf

Start Eclipse and point the workspace to the eclipsetrader directory (or wherever you have checked-out the source code). Import all projects (excluding those that starts with net.sourceforge.* as they are obsolete and won't compile) using File -> Import -> General / Existing Projects into Workspace (leave the Copy projects into workspace option unchecked).

Check-out with Team Project Set

Download trunkProjectSet.psf and import it using File -> Team / Team Project Set. The import should create the subversion and cvs repositories and check-out the source code automatically.

Setup the Run Configuration

EclipseTrader is not meant to be run as a generic Eclipse plugin, it runs as a standalone RCP (Rich Client Platform) application.

  • From Eclipse open `Run -> Run Configurations'.
  • Select Eclipse Application from the list at the left and select New launch configuration from the toolbar above.
  • In the Program to Run box enable Run a Product and select org.eclipsetrader.platform.workbench.
  • In the Plug-ins tab select Launch with: plugins-selected below only.
  • Deselect all *.tests plugins, they are not needed by the normal application run.
  • Deselect all Target Platform plugins and hit Add Required Plug-ins button.
  • If the tests plugins are selected, deselect them again, also deselect org.junit and org.eclipse.ant.optional.junit. Click Validate Plug-ins to make sure that all is correct.

The run configuration setup is done, click Run to run EclipseTrader.

Attachments