| « Flex 3 beta 2 family is out! | Flex 3 beta 2 announce » |
Generating get/set methods
If we try to enumerate all the features we wish to see in an ideal IDE our list will be incomplete without code templates. Like in JDT for example. But Flex Builder do not include templates and its little annoying. Mostly in a case of get/set accessors which are essential in ActionScript.
Fortunately I’ve discovered a blog post with Eclipse Monkey usage example. Moreover I’ve found a simple script for get/set accessors generating.
In my case this simple script is not very useful. Most of my get/set methods are bindable and the resulting code is more complex. As a result of my modifications of the original script there are three ones in the archive.
The usage is pretty the same as described:
getters-setters.jscontains slightly modified original.advanced-getters-setters.jsis a generator for get/set accessors with binding.And
collection-getters-setters.jsis a script for different kind of collections and contains subscribing onCOLLECTION_CHANGEevent with corresponding handler.
Just write:Code:
Then select the pseudo code and run script. Voilà! Fix import and compile.myTest:ArrayCollection
And there is a list of resources that can help:
- Installation and usage instructions.
- Other Installation instructions.
- Documentation on Aptana site.
- Eclipse Help reference (after plug-in installed).
Good luck! ![]()
Trackback address for this post
Trackback URL (right click and copy shortcut/link location)
3 comments
1. You should have this skill set: "Adobe Flex + C#/Java + SQL Database".
2. You have to be living in United States, United Kingdom, Australia or Canada.
3. Work part time (through the Internet) OR full time with us (on site at our client's office).
4. Please send us your resume, expected salary, full time or part time, etc.
Busycode Inc. is a top Adobe Flex outsourcing service provider who develops Flex/AIR applications for clients.
Visit http://www.busycode.com , you will see we are all about Flex engineer, Flex programmer, Flex coder, Flex speciallist and Flex expert. If you are Mr. Flex or Miss Flex, join us now!
I have created few Eclipse Monkey Scripts for generate event handlers.http://panellabs.net/eclipse-monkey-asctionsript-generate-scripts/
Thank you for the link!