Enhanced AS3, MXML and Cairngorm wizards

The Enterprise IDE Plugin provides enhanced AS3 class and interface wizards, along with an improved MXML component wizard and new Cairngorm wizards; the basic enhanced AS3 or MXML wizards are further specialized into custom wizards for each type of Cairngorm class.

The enhanced multipage class wizard is similar to the standard Flex Builder AS3 class wizard, but offers additional functionality to generate more complete AS3 classes. Among the new features offered are the following:

The new interface wizard also offers new code generation features as follows: Similarly the new MXML component wizard provides new code generation functionality. The new features include: Each of the custom wizards for Cairngorm classes follow the same user interface as the basic wizards but have pre-filled settings to generate the specific class type desired.

Note: Alternatively all Cairngorm classes for a service (REST, WSDL or Remoting) can be generated automatically by using on of the Service Cairngorm generation wizards. See Help for more information.

Usage

Select Enterprise Flex > New > ActionScript Class (or ActionScript Interface or MXML Component) in the top menu or in a project or package context menu in the Flex Package Explorer. If a Flex project is not active a Flex project selection dialog will be displayed. Then the enhanced ActionScript Class Wizard will appear.

The Cairngorm class wizards are invoked similarly, under the New menu there are four submenus for business, control, model, and view respectively with menu items for each type of Cairngorm class or component.

The first page of the new ActionScript Class wizard is similar to the existing Flex Builder new ActionScript class wizard, with the additional options for selecting the target source folder, generating class as singleton, generating ASDoc comments and generating FlexUnit test. However there is second page available for class property and function definitions by clicking on the "Next" button.

The second page allows to enter class properties in a properties table and class functions in a functions tree table. Each property can be specified with name, type, access, is static, is bindable, generate getter, generate setter. Click "Add Property" to add new property. Select a property row and click "Remove Property" to remove a property.

Similarly for functions use the "Add Function" button to add a new function or select a function row and click "Remove function" to remove it. Each function can be specified with a name, a return type, an access modifier, a static modifier, a final modifier and or function parameters. To add a new parameter select a function row and click on the "Add Param." button. To remove a parameter select a parameter row and click "Remove Param.".
Each function parameter can be specified with a parameter name and type.