Project

General

Profile

Eclipse plugins and preferences

Plugins, code templates, coding conventions, preferences etc. for EDIT CDM Development in php, java, javascript.

TIP: For quickly setting up eclipse you may want to import the @prefs-available-software-sites.xml@, see the "Plugins" for more on this.


Installing Eclipse

The eclipse IDE can be downloaded from https://www.eclipse.org/downloads/eclipse-packages/ where you may want to choose the 'Eclipse IDE for Java Developers' package.
Another very good option is the Spring Tool Suite which comes bundled with almost all plugins you will need.

Quick Setup

Setting up eclipse

  1. import the @prefs-available-software-sites.xml@, see the "Plugins" for more on this.
  2. enable the following plugins:
    • Remote Workspace Preferences
    • TODO ...

Setting up a new Workspace

  1. import the Remote Workspace Preferences from https://raw.githubusercontent.com/cybertaxonomy/code-templates/master/eclipse/4.x/prefs/prefs_remote_workspace_preferences.epf (see Remote Workspace Preferences section below)
  2. import the Java code template from https://raw.githubusercontent.com/cybertaxonomy/code-templates/master/eclipse/4.x/prefs/CDM-Java-Code-Template.xml

Plugins

The available software sites to be added to eclipse can be downloaded from here: https://raw.githubusercontent.com/cybertaxonomy/code-templates/master/eclipse/4.x/prefs/prefs-available-software-sites.xml
Apply these setting by going to "Available Software Sites" in the eclipse preferences, click on import and browse to the location to where you downloaded @prefs-available-software-sites.xml@.

Subclipse

Subclipse is an Eclipse team provider for the Subversion version
control system.

EGit

Eclipse Git is an Eclipse Team provider based on JGit, a pure Java implementation of the Git version control system.

RunJettyRun

Remote Workspace Preferences

For now we decided to use this plugin for distributing preferences within the team, but we may switch to another solution in future, see #3335 (Share workspace setting within the team) for more information.

Code Template

  1. Download the code template file from https://raw.githubusercontent.com/cybertaxonomy/code-templates/master/eclipse/4.x/prefs/CDM-Java-Code-Template.xml
  2. In eclipse open Window-Preferences and here open Java - Code Style - Code Template.
  3. Use the import functionality and import the above file

Web Development

AnyEditTools

JavaScript Development Tools

PHP codesniffer

CodeSniffer is broken in indigo!!!!id=263892&atid=1127654*
* project site: http://xfragger.de/209/php-codesniffer-fur-eclipse
* update site: http://www.phpsrc.org/eclipse/pti/
* recommendet plugins:

* core
* library.pear
* tools.phpmd
* tools.phpunit
* tools.codesniffer
* set up:
* disable all codesniffer rules in Window > Preferences
* download Codesniffer rules for Drupal CDM
* in project settings enable the Drupal_CDM Codesniffer rules
* for drupal projects exclude the following files and folders:

*/drupal*/modules/*,*/drupal*/includes/*,*/drupal*/misc/*,*/drupal*/themes/*,*/drupal*/profiles/*,*.png,*.gif,*.jpg

PHP Development Tools

PHP Mess Detector

Web Page Editor

jshint

Documentation & UML

Architexa

Just Another Eclipse Plugin which helps in understanding and documenting code. Architexa can turn a large Java codebase into a comprehensible and navigable diagram of functionality and dependency.

Requires registration!

Add picture from clipboard (Maximum size: 40 MB)