Changes between Initial Version and Version 1 of DevelopmentPage/EclipseEnvironment


Ignore:
Timestamp:
Feb 11, 2010, 3:30:14 PM (14 years ago)
Author:
Michel Herquet
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DevelopmentPage/EclipseEnvironment

    v1 v1  
     1= The Eclipse integrated development environment =
     2
     3= Install Eclipse+PyDev+BzrEclipse =
     4
     5Python + Bazaar+a Launchpad account and a basic editor is all you need to develop MadGraph. However, an Eclipse integrated solution has many advantages to boost productivity (internal versioning support, visual debugger, refactoring, unit testing, ...)
     6
     7Install Eclipse Classic from http://www.eclipse.org/downloads/
     8
     9Install PyDev from inside Eclipse (using the update site), follow instructions at http://pydev.org/manual_101_install.html
     10
     11Install BzrEclipse:
     12
     13Download http://code.launchpad.net/bzr-xmloutput/trunk/0.8.4/+download/bzr-xmloutput-0.8.4.tar.gz, unpack it in your local .bazaar/plugins directory
     14Rename the directory to replace all the “-” and “.” in the name by “_” (don’t ask me why)
     15Run “python setup.py build_ext -i” from this directory
     16To install the plugin itself, follow instructions here: http://bazaar-vcs.org/BzrEclipse/Installation
     17Don’t forget to select all decorators in the Team/Bazaar/Decorators preference panel of Eclipse
     18Learn Eclipse+PyDev+BzrEclipse
     19
     20No special advice here, you should just play with it to try to discover new features. If you have some time, there is a nice short tutorial by IBM covering almost all you need to know: http://www.ibm.com/developerworks/library/os-ecant/?ca=drs-tp2604
     21
     22= Using Bazaar with Eclipse Mini Howto =
     23
     24Create a local repository MADGRAPH in a command line as explained previously
     25Start Eclipse
     26Create a new project, select the “Bazaar/Branch as a new project” wizard
     27Select initialize a new branch location
     28Enter “lp:madgraph5/trunk” (you need to have tried Bazaar + LP in the command line before for this to work)
     29Select Tip (branch at last revision)
     30Enter “MadGraph-trunk” as a project name and enter “...MADGRAPH/trunk” as location.
     31You should see your mirror branch appearing as a new project
     32Right click on it, and select “branch” in “Team”
     33Select Tip (branch at last revision)
     34Enter “MG-myfeature” as a project name and enter “...MADGRAPH/myfeature” as location
     35You should see your task branch appearing as a new project
     36From now on, you can use the same commands as in the command line, all of them being available in the right-click menu “Team”. For example, you can keep your mirror branch up-to-date by right clicking one “MadGraph-trunk” and the “Team/pull” (you might need to select the server lp:madgraph5/trunk in the list).