FlexBuilder may have its ups and downs but it still remains my pick for best AS3/MXML editor on the market (with TextMate not far behind). Part of the beauty of FlexBuilder is that it’s built on the Eclipse SDK, one of the most versatile and powerful IDEs available, which is not only free and open source, but boasts a wealth of third party plug-ins for every kind of (mostly Java) development. This article will take a look at some must-have plug-ins for doing Flex development as well as some tips for tricking out your development process.
As with all of our entries, your feedback, suggestions, corrections and additions are all more than welcome.
Disclaimer: This article applies to the Flex Builder Eclipse Plug-in version, not the standalone version. If you’re using the standalone version and would like to try these plugins out, I recommend installing the plug-in version. It’s a little harder to use but I think it’s more rewarding in the end. Also, this tutorial was written on the Mac version with Eclipse 3.3 and Flex Builder 3 beta 2 so your experience may vary slightly if you’re using Windows or something else. Furthermore, I am not responsible for any damages or loss of data or anything else that happens as a result of you following the advice in this article – nothing should go wrong however many plug-ins are buggy and may cause eclipse to perform poorly or crash.
Installing FlexBuilder Eclipse Plug-in
To install the FlexBuilder Eclipse Plug-in version you will probably want to first uninstall the FlexBuilder Standalone. You will also need to download and install Eclipse. Important: Eclipse is currently in version 188.8.131.52 at the time of writing. If you’re using FlexBuilder 3, good for you! Go and download the latest version (get the classic distro). However, FlexBuilder 2 does not work on Eclipse 3.3. You’ll need to download the older version 3.1 or 3.2 of the SDK which are hidden deep in the dungeons of the Eclipse Project site.
After Eclipse is installed you can proceed with the installation of the FlexBuilder plug-in. Additional installation instructions can be found on the Adobe Site.
If you take a look at the Eclipse plugin central you’re liable to notice two things right off the bat. First, there are a ridiculous number of plugins especially for really obscure branches of Java development. Second, the Eclipse site is completely ugly and it’s often incredibly frustrating to use. I’ll try to help you get to the juicy bits quickly.
By far the best way to install Eclipse plug-ins is to use update sites. Update sites allow you to select and download plug-in packages directly from the developer from within the Eclipse program. The update site URLs are notoriously difficult to find due to the Eclipse site’s confusing navigation. For example, I jut tried to get to the update site URL for Europa, a major Eclipse supported plugin, and it took about 4 minutes worth of clicking for me to find it (at best it takes 3 clicks). These elusive links to update sites should, in my opinion, be in big red letters on the front of every project page so in case Eclipse is reading this right now, WTF doodz!?
Once you have the update site URL take the following steps to search the site for updates:
- Go into eclipse and click on Help > Software Updates > Find and Install… (Help menu? Again, WTF)
- Select Search for new features to install
- Click the next > button
- Click on the New remote site… button
- Give the update site a label and paste the update site url. Click ok
- Make sure the site you added (and any other sites you want to update) are checked and click the Finish button
- On the next screen you’ll see you can choose which features of the plugin you would like to install. For most plugins, you’ll probably want all of them so check the root folder. Note: you may see an error at the top of the window such as FooBar v.0.7 requires plug-in ‘org.eclipse.foobar.core’. If this happens, it can usually be fixed by clicking on the Select Required button which will automatically select the required features.
- When you’re done selecting features, click Next >
- ALWAYS CAREFULLY READ EVERY LINE OF THE EULA! then click I accept the terms of the license agreements and click Next >
- Click the Finish button. You may be asked again about certain features during installation for which you can click Install All to keep going
- When the installation is done, restart the Eclipse SDK
That’s it in just 11 tedious steps!
To get updates of already installed plugins choose Search for updates of the currently installed features at step 2 and follow the instructions above. If you install a plugin that conflicts with your setup or if you want to temporarily disable or uninstall a plugin, you can always go to Help > Software Updates > Manage Configuration… to manage your environment. Keep in mind that most plugins add new items to Eclipse preferences, the Window > Open Perspective dialog, the Window > Show View dialog or the File > New dialog.
In 2006 the Eclipse Foundation decided to take ten of the most used plug-ins and wrap them into one release so that the plug-ins would update at the same time as the Eclipse SDK. This project was called Callisto. They considered it a great success so they did it again in 2007 and (confusingly) called it Europa. 2008′s project is called Ganymede.
Some of the plug-ins listed below are part of the Europa project (currently, the latest full version release). To install these plugins you will want to check the Europa update site which contains several projects but you should select only the ones you want to install.
|Plugin||Web Tools Platform (WTP)|
If you work with Flex or Flash, chances are you’re making a website. This project provides tools for editing the standard web formats like XHTML.
Mylyn is part of the Europa simultaneous release.
Mylyn lets you code using the concept of task-oriented development. It is built to help you focus on a single task by obscuring unused classes and hooking in with most of the commonly used bug-tracking tools. Especially cool if you use a program like TRAC.
Mylyn is part of the Europa simultaneous release.
|Plugin||CVS & ANT|
Technically, not a plugin. CVS support and ANT support are built into the latest version of Eclipse so you won’t need to install these separately. However, they function like plugins and they are very useful so I think they deserve a mention here.
CVS support allows you to manage CVS (Concurrent Versioning System) Repositories and make checkouts and changes from within Eclipse. Personally I prefer SVN for versioning (see also Subclipse) but sometimes it’s not up to me and this functionality is quite useful.
ANT is a tool you can use to create build scripts for your Flex project or for any other language. This is a must-have for larger projects with complicated deploy folders. More info on using ANT and Flex can be found at Adobe Labs and in the Flex 2 docs.
OK. To be honest, I’m not sure how you install this one. I think it’s automatically installed as part of the Web Tools Project (WTP) or maybe PHP Development Tools (PDT) also mentioned in this post. Either way, once it’s installed you can access it through the Window > Show View menu item.
Snippets lets you define code templates that let you add big chunks of code to a class with a few clicks. You can define variables that appear in the code as well. For example, you may create a snippet that creates a private variable and a public getter and setter and only pass in the variable name and the type. Pretty useful, but not as good as TextMate.
|Description||A plugin that lets you manage a list of Subversion (SVN) repositories, check out directly from the list, and update, commit, etc. the files in the repository straight from your navigation view in Eclipse. So basically like Tortoise SVN for Eclipse.|
|Plugin||TODO / FIXME Task Plugin|
|Update Site||N/A – see website|
This is a simple little tool that tracks all of your TODO or FIXME comments in Eclipse’s Tasks view. There’s no update site so you’ll have to follow the instructions on the webpage.
|Plugin||Eclipse Regular Expression Tester|
|Description||This is a tool that will help you visualize Regular Expressions which can be very confounding to look at even for people who are experienced with using them.|
|Plugin||Ruby Development Tools (RDT)|
|Description||If you develop in Ruby, you’ll probably want this. Also see PDT below.|
|Plugin||PHP Development Tools (PDT)|
|Description||If you develop in PHP, you’ll probably want this. Also see RDT above.|
A full featured IDE for working on web apps. There is also a standalone version. Aptana looks very promising, however, I disabled it since it seemed to be conflicting with other plugins in my Eclipse setup.
Roger kinda likes it though:
|Description||FDT has a great track record and the Enterprise edition of FDT 3.0 could be the first third-party FlexBuilder competitor worth considering. However, with the price of the package now approaching the nine-hundred dollar mark thanks to our failing currency, this is a fairly high-risk alternative.|
|Plugin||Eclipse Monkey (aka project dash)|
|Description||Allows you to create scripts to automate Eclipse itself using JS. I haven’t used this but it sounds interesting.|