Archives for: September 2007
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! ![]()
Flex 3 beta 2 announce
The guy with enormously enlarged Flex logo also known as Ted Patrick is about to do it again! All of us remember his daily posts about upcoming Flex 3 beta 1. The good news are Flex 3 beta 2 is coming soon!
Every day from Wednesday to next Monday he will covering more and more details. Looking forward for excellent new features ![]()

