“Be inspired, enjoy your work, keep learning and never forget to play.” — gskinner

Auto-Generate Getters and Setters in Flex Builder

Posted: December 21st, 2007 | Author: Tiago Bilou | Filed under: Actionscript3, Tutorial | 6 Comments »

I've been writing a lot of getters and setters lately (and spending way too much time doing that...), so I googled for some sort of plug-in for Eclipse/Flex Builder and found a great resource called Project Dash Here's a nice script to use with Dash to generate getters and setters for your variables ;)

  1. Inside FlexBuilder goto Help->Software Updates->Find and Install (if you ran into an error about retrieving "feature.xml" delete the site.xml file in your Flex Builder directory)
  2. add the remote update url ; update and restart
  3. when you restart you should see a Scripts menu and a Project in your workplace called Eclipse Monkey Examples
  4. Create a new file (with a .js extension) in the scripts folder inside the Eclipse Monkey Examples
  5. Write you monkey script in there (copy and paste the script to generate the getters and setters into the new file)

References:
Post with script to generate Getters and Setters


6 Comments on “Auto-Generate Getters and Setters in Flex Builder”

  1. 1 Idoru said at 2:42 pm on December 21st, 2007:

    Purrrfect, just what i needed :)

  2. 2 Panel said at 10:51 pm on June 3rd, 2008:

    I have created few Eclipse Monkey Scripts for generate event handlers.
    http://panellabs.net/eclipse-monkey-asctionsript-generate-scripts/

  3. 3 Radomir said at 5:17 am on November 6th, 2008:

    Interestingly was, but there is someone who does not quite agree with the author?

  4. 4 Rajan said at 5:35 pm on December 24th, 2009:

    Hi

    When i try to connect the url(http://download.eclipse.org/technology/dash/update/) through Flex Builder 3 .It says netwotk error. Though i am able to acess through browser
    http://download.eclipse.org/technology/dash/update/.

    I have also delete site.xml file.

    Any help is appreciated.

    Thanks
    Rajan

  5. 5 Alberto said at 11:57 am on January 20th, 2011:

    Still …: any help is appreciated.

  6. 6 Ashish Desai said at 2:39 pm on July 13th, 2011:

    The update site does not work any more. I think it is archived.


Leave a Reply