Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 60d109c

Browse files
committed
[[ Bug ]] Ensure all metadata is searched for property overrides
1 parent 86f67ed commit 60d109c

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Toolset/libraries/revideextensionlibrary.livecodescript

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,26 @@ private function __extensionPropertyInfoFromManifest pId, pManifestPath
660660
put true into tPropertyDataA[tProperty]["widget_prop"]
661661
end repeat
662662

663+
# Fetch property override metadata
664+
local tMetadataValue, tMetadataKey
665+
local tMetadataNodes, tMetadataA, tDataA
666+
put revXMLChildNames(tXMLTree, "package",return,"metadata",true) into tMetadataNodes
667+
repeat for each line tMetadata in tMetadataNodes
668+
put revXMLAttribute(tXMLTree,"package" & "/" & tMetadata,"key") into tMetadataKey
669+
put revXMLNodeContents(tXMLTree,"package" & "/" & tMetadata) into tMetadataValue
670+
if tMetadataValue is empty or tMetadataValue begins with "xmlerr" then
671+
put empty into tMetadataValue
672+
end if
673+
__SetMetadata tMetadataKey, tMetadataValue, tDataA
674+
end repeat
675+
676+
repeat for each line tProperty in idePropertyNames()
677+
if tDataA[tProperty] is not empty then
678+
union tDataA[tProperty] with revIDEPropertyInfo(tProperty)
679+
put tDataA[tProperty] into tPropertyDataA[tProperty]
680+
end if
681+
end repeat
682+
663683
__ProcessInspectorMetadata tPropertyDataA
664684

665685
revXMLDeleteTree tXMLTree

0 commit comments

Comments
 (0)