About the Author
Renaud is a full-time Java/EE consultant working at Business Solutions Builders in Belgium. When he is not working, he enjoys writing in his blog, as well as giving back to the open source community for all the stuff it has given to him. You can read more of his writings at his blog
Spotlight Features

The Rich Engineering Heritage Behind Dependency Injection

Andrew McVeigh takes us on a tour of the rich heritage behind dependency injection, what it represents, and tells us why its here to stay.

Java, the OLPC, and community responsibility

The "One Laptop Per Child" project has a great device ready to ship, but there's no Java on there. Let's think about working together to put Java on OLPC!

How to install FlexBuilder 2 under Eclipse 3.3

Background

Adobe FlexBuilder is a set of plug-ins built on the Eclipse Platform which offers development tools around the Flex framework.

While Adobe freed the Flex SDK, including libraries and compiler, the IDE is still, at the time of writing this article, commercial.

For some reason, Adobe does not currently offer any FlexBuilder update which would allow us to install the tools as a plug-in under the Eclipse 3.3 platform in the appropriate way with the FlexBuilder installer.

This article will show you how to install FlexBuilder 2 under Eclipse Europa in a quite clean way, so that all the new features and bug fixes of Eclipse will be available to you.

A glance on what is new in Eclipse Europa Simultaneous Release:

Prerequisites

Quite simple:

  • FlexBuilder 2.x installer
  • A working instance of Eclipse Europa
  • Your license key!

Prepare Eclipse

First create a new extension location to your Eclipse installation.

An extension location can be created anywhere in your filesystem and must match the following structure:

./
 /eclipse
 /eclipse/.eclipseextension
 /plugins
 /features

Where .eclipseextension may be an empty file (note: Windows explorer does not allow empty file name creation, so create it in a command line box using e.g. echo > .eclipseextension)

Once it’s done, you can enable the extension location by adding it to your Eclipse installation in the Help Menu > Software Updates > Manage Configuration > Add an extension location link.

Product Configuration dialog

Close Eclipse.

FlexBuilder installation

Install FlexBuilder standalone

First install FlexBuilder, as a product (not as a plugin) by choosing the option “Install FlexBuilder and Flex SDK” in the “Choose Install Set” dialog.

Activate FlexBuilder

When the setup wizard is over, launch the FlexBuilder IDE which should appear in your start menu. A dialog will pop up, asking for your licence key(s). Enter it (them) and close the IDE.

Merge FlexBuilder Features in Eclipse

Let’s assume you installed Eclipse in $ECLIPSE_HOME directoy (e.g. c:\dev\eclipse33) and FlexBuilder in $FLEX_HOME directory (e.g. c:\dev\flexbuilder).

First copy the $FLEX_HOME/configuration/com.adobe.flexbuilder directory into $ECLIPSE_HOME/eclipse/configuration.

Then, copy the $FLEX_HOME/plugins and $FLEX_HOME/features directories into your extension location folder.

Finally, start your Eclipse 3.3 using eclipse --clean

Fixing some bugs

Current line highlight color

The current line highlight color in flex editors might be altered under Eclipse 3.3 (an ugly black line in the middle of your editor could appear).

To fix this, just go to the Preferences Dialog in General > Editors > Text editors Tab? Then select “Current Line Highlight” item in the “Appearance color options list”. Just choose a color close to the default one to fix the bug.

Text editors Tab in Preferences