Eclipse Configuration

This page has a description of my Eclipse configuration, including information about the plugins I use.

Eclipse Plugins

I use the following plugins, which I recommend:

Java

Python

PyDev

In order to use PyDev, you should first ensure python and pylint are installed. Instructions to do this are here.

Next you will have to set the correct versions in the pydev properties:

  1. Click Eclipse → Preferences…
  2. Open the Pydev settings and Interpreter - Python
  3. Ensure that a valid python interpreter is set (I removed the default and the version i installed with MacPorts: /opt/local/bin/python)
  4. Open the Pylint settings
  5. Set the location of pylint to a valid installation (I used /opt/local/bin/pylint, which was installed with Macports.

You should now be good to go with PyDev

Versioning Control

In order to make SVN work properly with Eclipse I first installed the following plugins:

  • JDT Ignore Extensions (Under Ganymede→Collaboration Tools)
  • SVN Team Provider (Incubation)

Then after restarting, I installed the following from the Polarion update site (http://www.polarion.org/projects/subversive/download/eclipse/2.0/ganymede-site):

  • SVNKit 1.1.7 Implementation (Optional)
  • Subversive SVN Connectors

LaTeX

Installing a plugin

  1. Click Help→Software Updates. This opens a new window.
  2. Now Click on the “Add Site…” button
  3. Now enter the URL of the update site, e.g., http://eclipse-cs.sourceforge.net/update for the Eclipse Checkstyle Plugin

Eclipse Configuration

Showing only Local Problems

By default the Eclipse Problems view shows all the problems in your workspace. In order to show only those in the current project, only those in or under the current resource, or some other configuration, follow these instructions:

  1. Open the Problems view
  2. Click on the options triangle to the right
  3. Click on “Configure Contents…”
  4. Under scope, select either “On any element in the same project” or “On selected element and its children” (my favourite). If you want to customise it more fully select your own working set

Unlimiting Console Output in Eclipse

Sometimes the console output in eclipse is limited to a fixed buffer size (this used to be the default). If you wish to change this, take the following steps:

  1. Click Eclipse → Preferences → Run/Debug → Console
  2. Uncheck the “Limit console output” box or change the number of characters to whatever suits your project

N.B. be careful when you do this as Eclipse may hog your memory if the output to the console is substantial

Using a personal code style and enforcing it with Checkstyle

Eclipse has the capability of formatting code automatically according to a predefined codestyle. I work on the Construct open-source project and we use our own formatter and checkstyle configuration, which is documented here.

public/eclipse.txt · Last modified: 2008/09/16 06:19 by admin
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki