uidesigner/com.nokia.sdt.test.componentlibrary/components/testing/derivedWithExtensions.js
author ssobek
Mon, 20 Apr 2009 10:47:45 -0500
branchRCL_2_0
changeset 101 508f2f2592b2
parent 2 d760517a8095
permissions -rw-r--r--
fixed Bug 8850 "Errors in the .pkg file are not marked in the editor."
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
cawthron
parents:
diff changeset
     1
/*
cawthron
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
cawthron
parents:
diff changeset
     3
* All rights reserved.
cawthron
parents:
diff changeset
     4
* This component and the accompanying materials are made available
cawthron
parents:
diff changeset
     5
* under the terms of the License "Eclipse Public License v1.0"
cawthron
parents:
diff changeset
     6
* which accompanies this distribution, and is available
cawthron
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
cawthron
parents:
diff changeset
     8
*
cawthron
parents:
diff changeset
     9
* Initial Contributors:
cawthron
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
cawthron
parents:
diff changeset
    11
*
cawthron
parents:
diff changeset
    12
* Contributors:
cawthron
parents:
diff changeset
    13
*
cawthron
parents:
diff changeset
    14
* Description: 
cawthron
parents:
diff changeset
    15
*
cawthron
parents:
diff changeset
    16
*/
cawthron
parents:
diff changeset
    17
function DerivedWithExtensionsPropertyExtender() {
cawthron
parents:
diff changeset
    18
}
cawthron
parents:
diff changeset
    19
cawthron
parents:
diff changeset
    20
	// Return instances that may provide extension properties
cawthron
parents:
diff changeset
    21
	// The target instance parameter is the instance to receive the
cawthron
parents:
diff changeset
    22
	// additional properties
cawthron
parents:
diff changeset
    23
DerivedWithExtensionsPropertyExtender.prototype.getPropertyExtenders = function(instance, targetInstance) {
cawthron
parents:
diff changeset
    24
	if (targetInstance == instance)
cawthron
parents:
diff changeset
    25
		return [targetInstance];
cawthron
parents:
diff changeset
    26
	return null;
cawthron
parents:
diff changeset
    27
}
cawthron
parents:
diff changeset
    28
	
cawthron
parents:
diff changeset
    29
DerivedWithExtensionsPropertyExtender.prototype.getExtensionSetNames = function(instance, targetInstance) {
cawthron
parents:
diff changeset
    30
	return [ "fromBase" ];
cawthron
parents:
diff changeset
    31
}