Changeset 3120 for ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/ProfileListService.as
- Timestamp:
- 07/08/13 14:27:42 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/ProfileListService.as
r867 r3120 4 4 5 5 import mx.collections.ArrayCollection; 6 import mx.rpc.events.ResultEvent; 7 6 import mx.rpc.events.ResultEvent; 7 import flash.events.Event; 8 9 10 [Event(name="profilesLoaded", type="flash.events.Event")] 8 11 public class ProfileListService extends BrowserService { 9 12 … … 11 14 private static var _userSpaceInstance:ProfileListService = new ProfileListService(true); 12 15 16 public static const PROFILES_LOADED:String = "profilesLoaded"; 17 13 18 public function ProfileListService(userSpace:Boolean=false) { 14 19 super(Config.instance.profileListUrl, userSpace); … … 26 31 tempArray.sort = BrowserColumns.getInitialSortForProfiles(); 27 32 tempArray.refresh(); 28 setItemDescriptions(new ArrayCollection(tempArray.toArray())); 29 super.result(resultEvent); 33 setItemDescriptions(new ArrayCollection(tempArray.toArray())); 34 trace(itemDescriptions.length + " profiles are loaded"); 35 dispatchEvent(new Event(PROFILES_LOADED)); 36 //super.result(resultEvent); 30 37 } 31 38
Note: See TracChangeset
for help on using the changeset viewer.