uidesigner/com.nokia.sdt.component.symbian.test/data/srcmapping/components/srcmapArrayEndContainer.js
author dadubrow
Fri, 05 Feb 2010 07:38:12 -0600
branchRCL_2_4
changeset 895 ba188c4d4120
parent 0 fb279309251b
permissions -rw-r--r--
10493 - add missing change to pnp backport


function PropertyExtenders() {
}

	// Return instances that may provide extension properties
	// The target instance parameter is the instance to receive the
	// additional properties
PropertyExtenders.prototype.getPropertyExtenders = function(instance, targetInstance) {
	if (targetInstance.parent == instance)
		return [instance];

	return null;
}
	
PropertyExtenders.prototype.getExtensionSetNames = function(instance, targetInstance) {
	if (targetInstance.parent != instance)
		return null;
	var val = instance.properties.type;
	if (val == "EElement1__")
		return [ "element1" ];
	if (val == "EElement_1_")
		return [ "element2" ];
	if (val == "EElement__1")
		return [ "element3" ];
	if (val == "EElement1_1")
		return [ "element1", "element3" ];
	if (val == "EElement11_")
		return [ "element1", "element2" ];
	if (val == "EElement_11")
		return [ "element2", "element3" ];
	if (val == "EElement111")
		return [ "element1", "element2", "element3" ];
	return null;
}