Sha256: fc36144701ee793ec391d7934497d96dc94ccc187d0bb06ce5f8ea7d3a417f38

Contents?: true

Size: 931 Bytes

Versions: 2

Compression:

Stored size: 931 Bytes

Contents

package <%= base_package%>.shell.controller {
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.utilities.fabrication.interfaces.IFabrication;
	import org.puremvc.as3.multicore.utilities.fabrication.patterns.command.SimpleFabricationCommand;
	
	import <%= base_package%>.common.<%= name%>Constants;
	
	import <%= base_package%>.shell.<%= name%>ShellConstants;
	import <%= base_package%>.shell.model.SelectionProxy;		
	
	public class ChangeSelectedModuleCommand extends SimpleFabricationCommand {
		
		override public function execute(note:INotification):void {
			var module:IFabrication = note.getBody() as IFabrication;
			var selectionProxy:SelectionProxy = retrieveProxy(SelectionProxy.NAME) as SelectionProxy;
			
			if (selectionProxy.changeSelection(module)) {
				routeNotification(<%= name%>Constants.SELECTED_MODULE_CHANGED, module);
			}			
		}
		
	}
}

Version data entries

2 entries across 2 versions & 1 rubygems

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