Ejemplo n.º 1
0
        internal static void setByMemberInfo(this commandTreeDescription item, MemberInfo __m)
        {
            settingsMemberInfoEntry mi   = new settingsMemberInfoEntry(__m);
            aceMenuItemMeta         mm   = new aceMenuItemMeta(__m);
            commandTreeDescription  desc = item;

            desc.memberMeta = mi;
            desc.menuMeta   = mm;

            desc.name = mm.getEntrySafe(aceMenuItemAttributeRole.DisplayName, mi.name);

            desc.category = mm.getEntrySafe(aceMenuItemAttributeRole.Category).or(mi.categoryName, "Main");

            desc.nodeLevel = commandTreeNodeLevel.group;
        }
Ejemplo n.º 2
0
        internal void deployMeta(aceMenuItemMeta meta, Object __metaObject)
        {
            //itemName
            //meta.TryGetValue(, out itemName);
            itemName           = meta.getEntrySafe(aceMenuItemAttributeRole.DisplayName, "");
            key                = meta.getEntrySafe(aceMenuItemAttributeRole.Key, "");
            itemRemarkEnabled  = meta.getEntrySafe(aceMenuItemAttributeRole.EnabledRemarks, "");
            itemRemarkDisabled = meta.getEntrySafe(aceMenuItemAttributeRole.DisabledRemarks, "");
            helpLine           = meta.getEntrySafe(aceMenuItemAttributeRole.Description, "");

            metaStringData = meta.getEntrySafe(aceMenuItemAttributeRole.Meta, "");
            _itemMetaInfo  = meta;
            metaObject     = __metaObject;
        }