Improved Getter/Setter Generation
Use the Improved Getter/Setter dialog to create accessor methods for your class properties. Multiple getters/setters can be created at once. The [Bindable] options allow generation of custom [Bindable] events.
Override/Implement Method Generation
The Override/Implement Method dialog allows you to override or implement one or more methods in super class or interface. You can easily search for methods in the entire inheritance hierarchy or just drill-down into a specific super class.
Generate Constructor From Fields
Generate Constructor From Fields will create a new class constructor method from the selected list of class properties. This is common in value objects or other classes which must be initialized during creation.
Generate Constructor From Superclass
Generate Constructor From Superclass will create a new constructor with the same signature as the super class constructor.
Generate toString() will generate a new toString() method that prints the selected class properties in the returned string. This useful feature aides in debugging and tracing your custom classes.
This feature provides a listing of all documentable elements in the file which, when selected, will have the template ASDoc comment added. When commenting classes after the fact, this feature saves time by allowing you to generate all comments at once. You may then simply scroll through the class, filling in the comment detail as necessary.
Extract Constant will create a new constant field variable based on a selected literal value in code. The selected literal value will be replaced with the newly generated constant name.
Extracts a new interface class based on the selected methods of an existing class. Optionally, existing references to the original class can be swapped with references to the newly generated interface.
Extracts a new method from the selected set of Actionscript statements. Optionally, can detect duplicate copies of the same statements and replace those references with a call to the newly generated method.
Extracts a new local variable from the selected expression. Optionally, replaces all existing instances of the selected expression in the current method with the new variable.
The Change Method Signature dialog allows you to modify any part of an existing method signature and SourceMate will subsequently update all references to that method as appropriate. Method arguments can be added, deleted, or reordered. All references will be updated including method callers and overriding descendant classes.
Convert Local Variable to Field
Converts a selected local variable to a class or field scoped variable.
Code Templates (i.e. Code Snippets)
Code templates are small snippets of code that can be inserted during development. Templates can be inserted via content assist while typing or via the Code Templates view. SourceMate ships with a set of default templates but users are encouraged to write their own. Custom templates can be imported and exported, allowing users to share their templates with others.
SourceMate provides content assistance for metadata tags. After typing an opening bracket, you will be offered a list of valid metadata tags. Content assist also works within tag attributes. For example, triggering content assist (CTRL+SPACE) inside the source attribute of the [Embed] tag will offer a list of available files to embed.
Metadata tags will be validated during compilation. Spell a metadata tag wrong? No problem. SourceMate will catch it. This feature is particularly useful for custom/framework metadata tags.
Import/Export Tag Configuration
Once you’ve configured your custom metadata tags, you can export that configuration and share it with others. Many custom Flex frameworks have begun offering SourceMate tag configuration files, thereby allowing content assist and validation on their custom metadata tags.
Disable All trace() Statements
SourceMate can disable (i.e. comment out) or remove all trace statements in a given file or an entire project. If you’ve been adding trace() statements during a hectic debugging session, use this feature to remove them all at once.
Build your documentation right from Flash Builder.
Generate Ant build.xml from Project Settings
The Generate Ant build.xml feature will create a fully functional Ant build file in one click. Your project’s settings are translated into valid Ant build commands.
TODO, FIXME, and XXX Task Markers
SourceMate will identify standard task markers in your ASDoc comments and create task items in the Eclipse Task View.
Generate Event Handler in Actionscript
Ever started typing “addEventListener(..” then realize you need to create the event handler. With SourceMate, just trigger content assist and let SourceMate create it for you.