Pay for Hesitation: Auto generate getters setters and custom code in Flex builder

Pages

2010年12月2日 星期四

Auto generate getters setters and custom code in Flex builder

It's awesome!!

http://www.flashfuck.it/2008/10/21/auto-generate-getters-setters-and-custom-code-in-flex-builder/


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



or
http://www.dreaminginflash.com/2007/12/21/auto-generate-getters-and-setters-in-flex-builder/

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 aboutretrieving "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)




沒有留言: