Flexion.Org
Bad grammar and typos for total strangers
Wiki › Eclipse IDE
Wiki Index All Recent Edit Bottom

Eclipse

1.   Introduction
2.   Installing Eclipse
2.1   Install Sun JVM
2.2   Install Eclipse Using Packages
2.3   Install Eclipse Using Archives
3.   Eclipse Plugins : Update Manager Installation
3.1   Web Tools Platform (WTP)
3.2   Graphical Editing Framework (GEF)
3.3   PHP Development Tools (PDT)
3.4   PHPEclipse
3.5   PyDev
3.6   PyDev Extensions
3.7   EPIC
3.8   bzr-eclipse
3.9   Subclipse
3.10   Subversive
3.11   Mylyn
3.12   AnyEdit
3.13   RMBench
4.   Eclipse Plugins : Manual Installation
4.1   ShellEd
4.2   jQueryWTP (Depends : WTP)
4.3   JSON
4.4   Color Editor
4.5   HTMLEditor (Depends : GEF, JDT)
4.6   HTML Tidy

Introduction

Between the projects at work and at home I do develop in a range of languages (Python, PHP, Perl, Javascript/jQuery, XHTML, CSS, Shell scripts, SQL, JSON) and require access to difeering source code revision control repositories and software development project management tools.

Having a single integrated development environment that can handle that lot is a real bonus. Enter Eclipse :-)

Installing Eclipse

Install Sun JVM

First install the Sun JVM.

 sudo aptitude install sun-java6-jre

You may also want to use the Sun JVM system-wide. Enabling the Sun JVM is a snap using update-java-alternatives.

First, find out which versions of Java you have installed through Ubuntu.

 sudo update-java-alternatives --list

Which should display something like the following.

 java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk
 java-6-sun 63 /usr/lib/jvm/java-6-sun
 java-gcj 1042 /usr/lib/jvm/java-gcj

Next, specify the one you would like as the default.

 sudo update-java-alternatives --set java-6-sun

NOTE! The JVMs listed may differ depending on the version of Ubuntu you're using and the setup of your system. The important thing is to choose the JVM with sun in the title.

Install Eclipse Using Packages

 sudo aptitude install eclipse libxext6-dbg libsvn-java

Install Eclipse Using Archives

Now go and download the current version of Eclipse Classic for your OS/architecture.

 cd
 tar zxvf eclipse-SDK-3.4.1-linux-gtk-x86_64.tar.gz
 
I prefer a slight change to the 'eclipse' directory name.
 mv eclipse Eclipse

Now lets add a nicer icon ;-)

 wget http://www.gnome-look.org/CONTENT/content-files/45585-eclipse.svg -O ~/Eclipse/eclipse.svg

Now create a Gnome menu item.

  • Create a new launcher on the desktop (right click on the desktop -> Create Launcher) or on a panel (right click on a panel -> Add to Panel -> Custom Application Launcher)
    • Name: Eclipse Platform
    • Command: /home/username/Eclipse/eclipse
    • Icon: /home/username/Eclipse/eclipse.svg

References

Eclipse Plugins : Update Manager Installation

Installing Plugins via the Eclipse Update Manager is simply a matter of adding the update site for the plugin and then following the on screen prompts.

  • Click on Help -> Software Updates -> Find/Install from file menu in Eclipse.
  • Select the radio button labeled, Search for new features to install.
  • Click on the "New Remote Site" button.

Web Tools Platform (WTP)

The Eclipse Web Tools Platform (WTP) project extends the Eclipse platform with tools for developing Web and Java EE applications. It includes source and graphical editors for a variety of languages, wizards and built-in applications to simplify development, and tools and APIs to support deploying, running, and testing apps.

References

Graphical Editing Framework (GEF)

The Graphical Editing Framework (GEF) allows developers to create a rich graphical editor from an existing application model.

References

PHP Development Tools (PDT)

I do not currently use PDT, this is here for reference in case I ever fancy taking it for a test drive.

The PDT project provides a PHP Development Tools framework for the Eclipse platform. This project encompasses all development components necessary to develop PHP and facilitate extensibility. It leverages the existing Web Tools Project in providing developers with PHP capabilities.

Project Principles:

  • Intuitive and easy to learn
  • Seamless integration with the Web Tools project
  • Adherence to Eclipse standards
  • Extensibility
  • Continuous support of PHP developments

Install from the update site below.

References

PHPEclipse

This is currently my PHP Development IDE of choice

The PHPEclipse project aims to create a full featured PHP IDE with features like internal PHP parser, debugger, code formatter, outline view, templates and much more.

Configuring PHP Eclipse

Make sure php5-cli is installed.

 aptitude install php5-cli

Open Eclipse and click on Window -> Preferences -> PHPeclipse Web Development

This opens the PHPEclipse options dialog. First click on PHP External Tools there's two things to change, then 'Run PHP command' and 'Parser command'

  • Change '/apache/php/php' to '/usr/bin/php'
  • Change '/apache/php/php -l -f {0}' to '/usr/bin/php -l -f {0}'

References

PyDev

PyDev is a plugin that enables users to use Eclipse for Python and Jython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others.

References

PyDev Extensions

Pydev Extensions is a plugin that works with PyDev, providing many other features such as code-analysis, code completion with auto-import, a much better implementation of go to definition, remote debugging, 'quick-fixes', mark-occurrences, among others.

References

EPIC

EPIC is an open source Perl IDE based on the Eclipse platform. Features supported are syntax highlighting, on-the-fly syntax check, content assist, perldoc support, source formatter, templating support and a Perl debugger. A regular expression plugin is also available.

References

bzr-eclipse

bzr-eclipse is a plugin for Eclipse that enables Bazaar support in the Eclipse SDK (JDT and CDT).

First install the 'bzr-xmloutput' plugin.

 wget http://launchpad.net/bzr-xmloutput/trunk/0.8/+download/bzr-xmloutput-0.8.0.tar.gz
 mkdir -p ~/.bazaar/plugins
 tar zxvf bzr-xmloutput-0.8.0.tar.gz
 mv bzr-xmloutput-0.8.0 ~/.bazaar/plugins/bzr_xmloutput_080
 cd ~/.bazaar/plugins/bzr_xmloutput_080
 python setup.py build_ext -i

Now install the Eclipse plugin.

bzr-eclipse will need configuring, navigate to Window -> Preferences -> Team -> Bazaar and set the path to 'bzr' then click the 'Recheck' button for the 'Client Type'.

References

Subclipse

Subclipse is an Eclipse Team Provider plug-in providing support for Subversion within the Eclipse IDE.

References

Subversive

The Subversive project aims to provide Subversion (SVN) integration for Eclipse. The Subversive plug-in gives you the ability to work with this CVS successor version control system from the Eclipse workbench. You can work with Subversion repositories in almost exactly the same way you can now work with CVS repositories using the CVS plug-in bundled in the standard Eclipse distribution.

References

Mylyn

Mylyn is a Task-Focused Interface for Eclipse that reduces information overload and makes multi-tasking easy. It does this by making tasks a first class part of Eclipse, and integrating rich and offline editing for repositories such as Bugzilla, Trac, and JIRA. Once your tasks are integrated, Mylyn monitors your work activity to identify information relevant to the task-at-hand, and uses this task context to focus the Eclipse UI on the interesting information, hide the uninteresting, and automatically find what's related. This puts the information you need to get work done at your fingertips and improves productivity by reducing searching, scrolling, and navigation. By making task context explicit Mylyn also facilitates multitasking, planning, reusing past efforts, and sharing expertise.

References

AnyEdit

AnyEdit plugin adds several new tools to the context menu of text- based Eclipse editors, to output consoles, to Eclipse main menu and editor toolbar. AnyEdit contributes also Import/Export working sets wizards.

References

RMBench

Graphical Modelling of Relational Databases within Eclipse RMBench is a fully integrated Eclipse plugin for graphical modelling of relational databases. It was developed to fill the need for low-cost but high-quality tools in that segment.

By downloading RMBench, you have received a Community License which enables most features, but maintains a limit of 40 tables and 3 diagrams. To take full advantage of RMBench's features, you may want to register for a trial license, or purchase the commercial edition.

References

Eclipse Plugins : Manual Installation

Some Eclipse plugins do not have update sites and must be installed manually. On occasion these plugins depend on another plugin or plugins. I have noted which of these manually installed plugins depending on another.

ShellEd

ShellEd is a superb shell script editor for Eclipse. The great benefit of this plugin is the integration of man page information for content assist and text hover.

There are some problem running ShellEd 1.0.3 on Linux and Mac OSX so I have reverted to 1.0.2a for the time being.

 cd
 wget http://heanet.dl.sourceforge.net/sourceforge/shelled/shelled_1.0.2a.zip
 wget http://heanet.dl.sourceforge.net/sourceforge/shelled/shelled_1_0_3.zip

Unzip the archive into your Eclipse directory.

 unzip shelled_1.0.2a.zip -d ~/Eclipse/

References

jQueryWTP (Depends : WTP)

jQuery is a fast, concise, JavaScript Library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages. jQuery is designed to change the way that you write JavaScript.

Eclipse WTP supports javascript code content assistance, but does not support jQuery. jQueryWTP is a tool make Eclipse WTP support jQuery code content assistance.

Make sure the Eclipse Web Tools Platform (WTP) plugin is installed the find the org.eclipse.wst.javascript.ui_xxxxxxx.jar plugin and make a backup copy.

 cp ~/Eclipse/plugins/org.eclipse.wst.javascript.ui_1.0.200.v200805160650.jar ~/Eclipse/plugins/org.eclipse.wst.javascript.ui_1.0.200.v200805160650.backup

Download jqueryWTP.

 wget http://dfn.dl.sourceforge.net/sourceforge/jquerywtp/jqueryWTP0.2forJQuery1.2.6.jar

Run the jqueryWTP .jar file in order.

 java -jar jqueryWTP0.2forJQuery1.2.6.jar

When the dialog box opens choose 'org.eclipse.wst.javascript.ui_1.0.200.v200805160650.jar' and set the output directory to you home directory, then click generate button. You should get a "Generate success" message if all went well.

Replace the "old" 'org.eclipse.wst.javascript.ui_1.0.200.v200805160650.jar' file with the newly regenerated one.

 cp org.eclipse.wst.javascript.ui_1.0.200.v200805160650.jar ~/Eclipse/plugins/

Restart Eclipse.

References

JSON

AJAX and SOA Developers find it difficult to write and analyze JSON. This Eclipse plugin with the JSON2TreeView enables developers to test and visualize any JSON. Developers can enter a JSON convert it to XML and View it as a Tree.

 wget http://heanet.dl.sourceforge.net/sourceforge/jsonviewer/com.suresh.krishna.jsonviewer_1.0.0.jar
 mv com.suresh.krishna.jsonviewer_1.0.0.jar ~/Eclipse/plugins

References

Color Editor

Color Editor is a syntax color highlighting editor for Eclipse. ColorEditor uses JEdit’s syntax highlighting mode files. The plugin currently supports highlighting for around 140 different file types.

 wget http://gstaff.org/colorEditor/cbg.editor_1.2.6.jar

Now put the .jar file in your plugins directory.

 mv cbg.editor_1.2.6.jar ~/Eclipse/plugins

References

HTMLEditor (Depends : GEF, JDT)

NOTE! Although I've used this plugin in the past I am currently giving WTP a whirl.

Eclipse HTML Editor has the following features.

  • Syntax highlighting.
  • HTML/JSP preview.
  • JSP/XML validation.
  • Contents assist.
  • HTML/JSP/XML wizards.
  • Outline view.
  • Editor preferences.
  • Code folding.
  • Image viewer.
  • Tag palette.
  • CSS code completion and outline.
  • DTD code completion, outline and validation.
  • Javascript code completion, outline and validation.
 cd
 wget http://keihanna.dl.sourceforge.jp/amateras/32793/tk.eclipse.plugin.htmleditor_2.0.6.1.jar

Now put the .jar file in your plugins directory.

 mv tk.eclipse.plugin.htmleditor_2.0.6.1.jar ~/Eclipse/plugins/

References

HTML Tidy

HTML Tidy Eclipse plug-in provides two very useful tasks of HTML Tidy: Formatting and Checking (X)HTML or XML code.

 cd
 wget http://heanet.dl.sourceforge.net/sourceforge/eclipsetidy/net.sf.eclipsetidy_1.2.2_local_site.zip
 sudo unzip net.sf.eclipsetidy_1.2.2_local_site.zip -d /usr/local/lib/eclipse/

After the install, start Eclipse and update the preferences for HTML Tidy so that the path to 'tmptidy_error.txt' is a writeable one. I use '/tmp/tmptidy_error.txt'

References

$Id: EclipseIDE,v 1.86 2008/10/10 11:09:04 martin Exp $

Wiki Index All Recent Edit Top
 
Valid XHTML Valid CSS Hacker