Eclipse

Links

 * Eclipse Website: http://www.eclispe.org/
 * Plugins: http://www.eclipseplugincentral.com/
 * Eclipse Shortcuts

Installing plug-ins
There are two ways to install the eclipse plugins:

them into your "plugins" directory and your configuration might need to be refreshed. This can be accomplished by starting Eclipse with the -clean command line argument. Example: eclipse.exe -clean
 * If you have installed new plug-ins by unzipping them into the plugins directory and they aren't showing up when you run, then perhaps you unzipped


 * Or you can install the plugin using the Configuration Manager. See the section below.

Configuration Manager

 * Click on Help->Software Updates->Find and Install.
 * Choose the option Search for new features to install.
 * If you downloaded a jar file, click on New Archived Site.
 * If you know the plugin download site, click on New Remote Site.
 * Click on Finish and follow the instructions on the screen.

Measuring code complexity
The Eclipse Metrics plugin Provide metrics calculation and dependency analyzer plugin for the Eclipse platform. Measure various metrics with average and standard deviation and detect cycles in package and type dependencies and graph them.

The Eclipse Metrics plugin project is the most active among them. The plugin can be installed directly from Eclipse by using the Eclipse software update service. Details are available from the project website. The eclipse Metrics plugin provides measurement of a number of metrics including the cyclomatic complexity. Some of these are:


 * TLOC = Total lines of code
 * NOC = Number of classes
 * MLOC = Method lines of code
 * WMC = Weighted Methods per Class
 * VG = McCabe cyclomatic complexity

This plugin provides measurements for about 20 metrics.

Installation procedure

Run Eclipse, go to Help menu -> Software Updates -> Find and Install ... On the opening dialog choose Search for new features to install. Add a new Remote site with the following url http://metrics.sourceforge.net/update and follow the instructions for installation.

Plugin Subversive
The Subversive project aims to provide Subversion (SVN) integration for Eclipse.


 * Website: Subversive
 * For detailed installation instructions go to the following website PDF-Datei.
 * If you are a advanced user of eclipse, then try to install the plugin using Eclipse Configuration Manager:
 * Enter the plugin name as "Polarion Subversive"
 * Enter the following URL: http://www.polarion.org/projects/subversive/download/update-site/

Importing a project

 * Open the Perspective SVN Repository Exploring.
 * Click on the icon New Repository Location.
 * Enter the URL for your svn repository.
 * Enter your authentication name and password.
 * Click on the button "Browse" an choose a project from the repository.
 * Click on "finish".
 * Check out the project and select the directory TRUNK.
 * Ready. Now you can open the Java Perspective and begin to work.

Common Library Directory for Projects in Team
for projects in team the problem with the lib directory is very known, because every programmer has its own eclipse workspace and lib directory. If they get a new version of the project using SVN or CVS then they have to update manually the libraries, removing and adding them again into the eclispe project.

To solve this problem the team can agree a common directory or they have to put all the needed libraries into a lib directory under the project directory and do the following:


 * Edit the file .classpath


 * Change, for example, all the entries  to 


 * Now all the programmers have the same libraries under a relative project path called lib.

My keyboard keys have the wrong layout
It happens if you press many times the keys SHIFT + LEFT ALT.

To solve this problem, try to press again the same combination. If it doesn't work, restart Eclipse.

File Encoding
If you have a project that works under linux and window, will can have problems if you use german acents like Umlaute (öäü), because Eclipse under windows use the file encoding Cp1252 as default and under linux (SuSe 10.1) uses UTF-8 as default. In linux you don't have Cp1252. Use ISO-8859-1 instead.

Configure the file enconding like the picture bellow: