uidesigner/com.nokia.sdt.component.symbian.test/data/srcmapping/components/srcmapArrayEndContainer.js
changeset 0 fb279309251b
equal deleted inserted replaced
-1:000000000000 0:fb279309251b
       
     1 
       
     2 function PropertyExtenders() {
       
     3 }
       
     4 
       
     5 	// Return instances that may provide extension properties
       
     6 	// The target instance parameter is the instance to receive the
       
     7 	// additional properties
       
     8 PropertyExtenders.prototype.getPropertyExtenders = function(instance, targetInstance) {
       
     9 	if (targetInstance.parent == instance)
       
    10 		return [instance];
       
    11 
       
    12 	return null;
       
    13 }
       
    14 	
       
    15 PropertyExtenders.prototype.getExtensionSetNames = function(instance, targetInstance) {
       
    16 	if (targetInstance.parent != instance)
       
    17 		return null;
       
    18 	var val = instance.properties.type;
       
    19 	if (val == "EElement1__")
       
    20 		return [ "element1" ];
       
    21 	if (val == "EElement_1_")
       
    22 		return [ "element2" ];
       
    23 	if (val == "EElement__1")
       
    24 		return [ "element3" ];
       
    25 	if (val == "EElement1_1")
       
    26 		return [ "element1", "element3" ];
       
    27 	if (val == "EElement11_")
       
    28 		return [ "element1", "element2" ];
       
    29 	if (val == "EElement_11")
       
    30 		return [ "element2", "element3" ];
       
    31 	if (val == "EElement111")
       
    32 		return [ "element1", "element2", "element3" ];
       
    33 	return null;
       
    34 }
       
    35