You are here: ProjetSEG Web>JUCMNavDevDoc>DevDocCheckoutCode (02 Apr 2012)

Developer setup

Overview

  • Setting up your Eclipse to start developing on jUCMNav is fairly straightforward but there are a few things to remember.
  • This guide was initially written for Eclipse 3.0.1 and upgraded, some aspects may have changed as Eclipse evolves...
  • We now need Eclipse 3.5 and above as a development environment.

Installing Eclipse and required plug-ins

Eclipse 3.7 Modeling Tools (Indigo)

Eclipse 3.5 Modeling Tools

  • Download Eclipse 3.5 Modeling Tools.
  • Install Web Tools Platform (WTP) from the Eclipse update site: http://download.eclipse.org/webtools/updates/

Eclipse 3.3

Setup from Subversion Server (SVN)

Install Subclipse

  • Help -> Install New Software...
  • Add Remote Site
  • Select all subclipse update site (others have been added) (Next)
  • Select all features (Next)
  • Accept the terms (Next)
  • Finish

Checkout the code

Checkout takes the code from the repository and saves it on your machine.
  • Window -> Show View -> Other -> SVN -> SVN Repository
  • Right click in SVN Repository view -> New -> Repository Location
  • Location Url: svn://cserg0.site.uottawa.ca/projetseg/
  • Authentication user/password: given by Jacques Sincennes
  • svn://cserg0.site.uottawa.ca/projetseg/ -> trunk -> seg.jUCMNav (right click) -> Checkout as project

Setup project properties

Eclipse 3.1.1 and above

By default, Eclipse 3.1 should be configured properly but more recent versions use JDK 1.5 or 1.6 by default, whereas we use JDK 1.4 compatibility. Follow the following steps.
  • Right-click on the seg.jUCMNav project you just created, choose properties.
  • Choose Java Compiler
  • Check Enable Project Specific Settings
  • Put the JDK compliance to 1.4 as in the following screenshot.
  • Accept this and give Eclipse a while to rebuild the solution.
jUCMNav: Java Compiler Compliance Preferences in Eclipse 3.1.1 and above

Run/Debug/Test jUCMNav

  • Developers should always have assertions enabled when running jUCMNav as our commands are built to catch bugs using assertions.
  • In the Debug or Run configuration preferences (accessible by right-clicking on the project name), select Run-time workbench as the configuration used to run jUCMNav. Create a new configuration (jUCMNav) if necessary. In Eclipse 3.1 and above, run-time workbench was renamed to Eclipse Application.
  • Make sure you have the -ea Java Virtual Machine attribute set.
  • jUCMnav: Runtime workbench settings
  • jUCMnav:Runtime workbench settings

  • To test jUCMNav, create a new JUnit Plug-in Test for the test class seg.jUCMNav.tests.TestAllTestSuite and don't forget the -ea JVM attribute!
  • jUCMnav: TestAllTestSuite settings (1):
  • Note: if you are using Eclipse 3.5, make sure "Run in UI thread" in the Test tab has checked. Otherwise the tests will fail.
    jUCMnav: TestAllTestSuite settings (1)

Last thing, coding standards

-- Jason Kealey - 08 Jul 2005
Topic attachments
I Attachment Action Size Date Who Comment
jpgjpg DevDocCheckoutCode1.jpg manage 83.0 K 08 Jul 2005 - 14:16 Jason Kealey jUCMNav: Run-time workbench settings
jpgJPG DevDocCheckoutCode2.JPG manage 63.7 K 08 Jul 2005 - 14:18 Jason Kealey jUCMnav: TestAllTestSuite settings (1)
jpgJPG DevDocCheckoutCode2V2.JPG manage 68.4 K 23 Dec 2005 - 17:08 Unknown User jUCMnav: Test All Test Suite? settings (1)
jpgJPG DevDocCheckoutCode3.JPG manage 84.6 K 08 Jul 2005 - 14:20 Jason Kealey jUCMnav: TestAllTestSuite settings (2)
jpgJPG DevDocCheckoutCode4.JPG manage 58.9 K 08 Jul 2005 - 14:23 Jason Kealey jUCMNav: Java Compiler Compliance Preferences
zipzip WPTbundle.zip manage 1709.7 K 08 Apr 2008 - 22:42 Daniel Amyot WPT bundle (if you do not the whole WPT)
pngpng javasettings.png manage 26.1 K 14 Jan 2006 - 17:32 Jason Kealey jUCMNav: Java Compiler Compliance Preferences
Topic revision: r20 - 02 Apr 2012 - 10:52:52 - Stephane Leblanc
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback