Command and Business delegate are merged).
<?xml version="1.0" encoding="UTF-8"?><templates><template autoinsert="true" context="com.pf.fdt.ui.editor.template.actionscript" deleted="false" description="Creates remoting command class for osPixlib" enabled="true" name="remoting">import com.bourre.commands.Command; import com.bourre.core.HashCodeFactory; import com.bourre.events.IEvent; import com.bourre.log.Logger; import com.bourre.log.LogLevel; import com.bourre.remoting.BasicFaultEvent; import com.bourre.remoting.BasicResultEvent; import com.bourre.remoting.IServiceProxyListener; import com.bourre.remoting.ServiceProxy; import com.bourre.log.PixlibStringifier; class ${enclosing_package_and_type} implements Command, IServiceProxyListener { private var _service : ServiceProxy; public function ${enclosing_type}() { _service = ServiceLocator.getInstance().getService( ${cursor} ); _service.addListener( this ); } public function execute( e : IEvent ) : Void { Logger.LOG( this + ".execute(" + e + ")" ); } public function onResult(e : BasicResultEvent) : Void { Logger.LOG( this + ".onResult(" + e + ")" ); } public function onFault(e : BasicFaultEvent) : Void { Logger.LOG( "**Error " + this + ".onFault(" + e + ")", LogLevel.ERROR ); } public function toString() : String { return PixlibStringifier.stringify( this ); } }</template></templates>