Suche

Developers/Getting Started/Developers Tools/Getting Eclipse PDT


Introduction

Most of the Tine 2.0 Developers use Eclipse PDT as their main development IDE. This Article shows you how to install Eclipse PDT and accessories to start developing Tine 2.0. This documentation is based on the Galiloe release.

Eclipse PDT

Eclipse PDT is a integrated development environment targeted at PHP developers. You can find out more information about PDT from their homepage at http://www.eclipse.org/pdt/.

Installing Eclipse PDT

You can download the latest version from their download page. Everything described on this page refers to version R20070917(PDT Version 1.0). Download the "PDT All-in-One" package for your platform and extract it to your preferred location. Now you are ready to start Eclipse from the newly created directory.

A successful launch of Eclipse

Pimp my Eclipse PDT

The newly downloaded version of Eclipse PDT lacks some important features. It lacks inbuilt SVN support and the default Javascript editor is just a editor with syntax highlighting. Let's see how we can pimp our Eclipse PDT.

Adding SVN support (Subclipse)

Becoming a good eGroupWare 2.0 developer means that you need to make yourself familiar with SVN. Just read the SVN book. It will cover all important aspects of working with SVN.

Handling SVN repositories with Eclipse PDT is very easy, thanks to the Subclipse SVN plugin. Just follow the very good installation howto at http://subclipse.tigris.org/install.html to get the Subclipse plugin installed.

When getting prompted with following error message

Subclipse Mylar Integration (1.0.1) requires plug-in "org.eclipse.mylar.tasks.core (0.9.2)", or later version.

just deselect "Integrations (Optional)" under Subclipse 1.2.x (Eclipse 3.2+).


Adding a Javascript editor

The default Javascript editor delivered with Eclipse PDT just supports syntax highlighting. To get more features such as syntax check and code completion an advanced Javascript editor is needed. Currently the developers use 3 different Javascript editors. Without discussing the advantages and disadvantages of these Editors the following describes how you can set them up in your Eclipse PDT installation.


Installing Spket

With Spket you get support for Javascript syntax check, Javascript formatter, code completion and support for ExtJS. To install this plugin, just use following update URL (http://www.spket.com/update/) from inside the Eclipse PDT software updates modul.

Installing Aptana

Aptana is a fully-featured Web development environment. To install the Aptana IDE, simply follow the instructions from the Aptana Documentation:
http://www.aptana.com/docs/index.php/Plugging_Aptana_into_an_existing_Eclipse_configuration

Adding Mylin

http://download.eclipse.org/tools/mylyn/update/e3.4

All updates at once

<?xml version="1.0" encoding="UTF-8"?>
<bookmarks>
   <site name="http://www.spket.com/update/" url="http://www.spket.com/update/" web="false" selected="true" local="false"/>
   <site name="http://subclipse.tigris.org/update_1.4.x" url="http://subclipse.tigris.org/update_1.4.x" web="false" selected="true" local="false"/>
   <site name="http://download.eclipse.org/tools/mylyn/update/e3.4" url="http://download.eclipse.org/tools/mylyn/update/e3.4" web="false" selected="true" local="false"/>
   <site name="http://mylyn-mantis.sourceforge.net/eclipse/update/" url="http://mylyn-mantis.sourceforge.net/eclipse/update/" web="false" selected="true" local="false"/>
</bookmarks>

Initial checkout of the Tine 2.0 codebase

After you have added all needed plugins to Eclipse PDT for easy software development, it is time start with some PHP development. Open the PHP perspective by clicking at Window=>Open Perspective=>PHP. From now on this will be your main view, when working withTine 2.0 source files.

The PHP Perspective in Eclipse

To import the current version of Tine 2.0 just follow these instructions. You can click "screenshot" for a screenshot.

  1. Create a new PHP-Project by going to File=>New=>PHP-Project - screenshot
    • Enter "tine20" as project name and click Finish - screenshot
  2. Right click on the newly created project and select "import" - screenshot
    • Select "Other->Checkout Projects from SVN" and click Next - screenshot
    • Select "Create a new repository location" and click Next - screenshot
    • Enter the URL https://svn.tine20.org/svn/trunk/ and click Next - screenshot
    • When promted to accept the server certificate click Accept Permanently - screenshot
    • Select only "tine20" and click Next - screenshot
    • Select "Check out into the workspace as projects" and "Head Revision" and click Next - screenshot
    • Make sure the location is the same as the project we created earlier, click Finish - screenshot
    • You will be told that the project already exists and will be overwritten. Click on Yes to all (or Yes) - screenshot
  3. You should now see something like this. Wait for the Checkout to complete. - screenshot

You have now successfully imported the Tine 2.0 project to Eclipse PDT.