uidesigner/com.nokia.sdt.component.symbian.test/data/modelUpdaterTest/script_updater.js
author timkelly
Thu, 07 May 2009 12:10:50 -0500
changeset 139 e743b7cf572c
parent 0 fb279309251b
permissions -rw-r--r--
Add support for getting the Symbian Binary Variation name for variant builds. Bug 8793.

function CModelUpdater() {
}

CModelUpdater.prototype.updateModel = function(instance, dataModel) {
	var newObject = dataModel.createNewComponentInstance(instance.parent.component);
	var command = dataModel.createAddNewComponentInstanceCommand(instance.EObject, newObject, 0);
	if (command.canExecute()) {
		command.execute();
	}
}