Changeset 4874
- Timestamp:
- Apr 2, 2009, 12:40:35 PM (13 years ago)
- Location:
- trunk/src/core/net/sf/basedb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/core/xsd/extensions.xsd
r4516 r4874 64 64 </xsd:element> 65 65 </xsd:sequence> 66 <xsd:attribute name="id-base" type="xsd:ID" use="optional" /> 66 67 </xsd:complexType> 67 68 </xsd:element> -
trunk/src/core/net/sf/basedb/util/extensions/xml/XmlLoader.java
r4515 r4874 486 486 Element root = dom.getRootElement(); 487 487 Namespace ns = root.getNamespace(); 488 // ID base will be prepended to extension point id:s if defined 489 String idBase = Values.getStringOrNull(root.getAttributeValue("id-base")); 490 488 491 List<Element> epTags = root.getChildren("extension-point", ns); 489 492 for (Element epTag : epTags) … … 495 498 // Set ID (required) 496 499 String id = Values.getStringOrNull(epTag.getAttributeValue("id")); 500 if (idBase != null) id = idBase + id; 497 501 extensionPoint.setId(id); 498 502 … … 565 569 Element root = dom.getRootElement(); 566 570 Namespace ns = root.getNamespace(); 571 // ID base will be prepended to extension point id:s if defined 572 String idBase = Values.getStringOrNull(root.getAttributeValue("id-base")); 573 567 574 List<Element> epTags = root.getChildren("extension", ns); 568 575 for (Element epTag : epTags) … … 574 581 // Set ID (required) 575 582 String id = Values.getStringOrNull(epTag.getAttributeValue("id")); 583 if (idBase != null) id = idBase + id; 576 584 ext.setId(id); 577 585
Note: See TracChangeset
for help on using the changeset viewer.