Ignore:
Timestamp:
03/18/10 09:16:38 (14 years ago)
Author:
patdui
Message:
  • created rightclick context menu "Edit..." works on profiles and components
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/model/CMDModelFactory.as

    r224 r249  
    11package clarin.cmdi.componentregistry.editor.model {
    22        import clarin.cmdi.componentregistry.common.ComponentMD;
     3        import clarin.cmdi.componentregistry.common.ItemDescription;
    34
    45        import mx.collections.ArrayCollection;
     
    910                }
    1011
    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");
    1314                        result.headerName = xml.Header.Name;
    1415                        result.headerId = xml.Header.ID;
    1516                        result.headerDescription = xml.Header.Description;
     17                        result.groupName = description.groupName;
    1618                        var components:XMLList = xml.elements(ComponentMD.CMD_COMPONENT);
    1719                        for each (var component:XML in components) {
Note: See TracChangeset for help on using the changeset viewer.