Changeset 249 for ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/model/CMDModelFactory.as
- Timestamp:
- 03/18/10 09:16:38 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/model/CMDModelFactory.as
r224 r249 1 1 package clarin.cmdi.componentregistry.editor.model { 2 2 import clarin.cmdi.componentregistry.common.ComponentMD; 3 import clarin.cmdi.componentregistry.common.ItemDescription; 3 4 4 5 import mx.collections.ArrayCollection; … … 9 10 } 10 11 11 public static function createModel(xml:XML ):CMDSpec {12 var result:CMDSpec = new CMDSpec(xml.@isProfile );12 public static function createModel(xml:XML, description:ItemDescription):CMDSpec { 13 var result:CMDSpec = new CMDSpec(xml.@isProfile == "true"); 13 14 result.headerName = xml.Header.Name; 14 15 result.headerId = xml.Header.ID; 15 16 result.headerDescription = xml.Header.Description; 17 result.groupName = description.groupName; 16 18 var components:XMLList = xml.elements(ComponentMD.CMD_COMPONENT); 17 19 for each (var component:XML in components) {
Note: See TracChangeset
for help on using the changeset viewer.