Flex, Javascript, Tools

Auto generate getters setters and custom code in Flex builder

Recently I’ve been searching for a plugin for eclipse, a tool, *something*, able to generate code snippets on the fly. This lack of eclipse IDE is filled by a project called Eclipse Monkey, a dead (yes…dead..-.-‘) component of  Project Dash which enables Eclipse to execute javascript functions on demand.

Eclipse Monkey will put a “scripts” menu on your Eclipse menu bar which is populated by the list of scripts (.js) inside the specified folder.

Here’s my Scripts>Actionscript dropdown menu

Installation:

1) Add project dash site ( http://download.eclipse.org/technology/dash/update )  to your eclipse’s update sites,
2) Restart eclipse,
3) Run create test project by selecting scripts menu,
4) Download actionscript snippets lib from here

…great deal 🙂

Here’s a video showing Eclipse Monkey at work

[flash http://www.youtube.com/v/z9aL_OZzRJk&hl=en&fs=1 w=400 h=310 mode=1]

UPDATE:

take a look to “Pimp my Eclipse” post from Lee Brimelow (part 1 and 2) for further customizing your eclipse installation 🙂

Advertisements

5 thoughts on “Auto generate getters setters and custom code in Flex builder

  1. mmm, i don’t know why, sorry.
    i found they don’t run properly on mxml files, but you just have to edit the js files to solve this issue.

    even if project dash is discontinued i never had a compatibility issue both on macs and pcs.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s