FDT Pixlib template FrontController
<?xml version="1.0" encoding="UTF-8"?><templates><template autoinsert="true" context="com.pf.fdt.ui.editor.template.actionscript" deleted="false" description="Creates concrete front controller class for pixlib framework" enabled="true" name="controller">import com.bourre.core.HashCodeFactory; import com.bourre.events.FrontController; import com.bourre.log.PixlibStringifier; class ${enclosing_package_and_type} extends FrontController { private static var _oI : ${enclosing_type}; /** * @return singleton instance of ${enclosing_type} */ public static function getInstance() : ${enclosing_type} { if (!_oI) _oI = new ${enclosing_type}(); return _oI; } private function ${enclosing_type}() { super(); } public function init() : Void { ${cursor} } /** * Returns the string representation of this instance. * @return the string representation of this instance */ public function toString() : String { return PixlibStringifier.stringify( this ); } }</template></templates>
projects/pixlib/fdt_template/controller.txt · Last modified: 2007/02/16 09:12