author | fturovic <frank.turovich@nokia.com> |
Fri, 24 Apr 2009 10:31:21 -0500 | |
branch | RCL_2_0 |
changeset 124 | 4629a6a90ed5 |
parent 2 | d760517a8095 |
permissions | -rw-r--r-- |
2 | 1 |
function CModelUpdater() { |
2 |
} |
|
3 |
||
4 |
CModelUpdater.prototype.updateModel = function(instance, dataModel) { |
|
5 |
var newObject = dataModel.createNewComponentInstance(instance.parent.component); |
|
6 |
var command = dataModel.createAddNewComponentInstanceCommand(instance.EObject, newObject, 0); |
|
7 |
if (command.canExecute()) { |
|
8 |
command.execute(); |
|
9 |
} |
|
10 |
} |
|
11 |