uidesigner/com.nokia.sdt.component.symbian.test/data/modelUpdaterTest/script_updater.js
author dadubrow
Mon, 17 May 2010 10:06:28 -0500
changeset 1365 d0f403a0b234
parent 0 fb279309251b
permissions -rw-r--r--
add url for discovery

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();
	}
}