Sha256: 0591e7b5b924af9693437a70fe7ab1611da7980682ded0887098418e4bbebb19

Contents?: true

Size: 742 Bytes

Versions: 2

Compression:

Stored size: 742 Bytes

Contents

package <%= base_package%>.shell.controller {
	import <%= base_package%>.shell.model.ListProxy;	
	import <%= base_package%>.shell.<%= name%>ShellConstants;	
	import <%= base_package%>.shell.model.ModuleDescriptor;	
	
	import org.puremvc.as3.multicore.interfaces.INotification;	
	import org.puremvc.as3.multicore.utilities.fabrication.patterns.command.SimpleFabricationCommand;	
	
	public class AddModuleCommand extends SimpleFabricationCommand {
		
		override public function execute(note:INotification):void {
			var moduleDescriptor:ModuleDescriptor = note.getBody() as ModuleDescriptor;
			var moduleListProxy:ListProxy = retrieveProxy(ListProxy.NAME) as ListProxy;
			
			moduleListProxy.add(moduleDescriptor);
		}
	}
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fabricator-0.0.1 app_generators/pureapp/templates/shell/controller/add_module_command.as
fabricator-0.0.5 app_generators/pureapp/templates/shell/controller/add_module_command.as