Hi there,
I discovered maybe a strange bug:
This Code:...
operation utileti!ModelDescriptionRepository createDescription(id,type,path,filename) : utileti!ModelDescription
{
var util = new Native("de.baron.plugin.EOLUtil");
id=id.asString();
type=type.asString();
path=path.asString();
filename=filename.asString();
var newDescription : utileti!ModelDescription = self.checkRepository(id,type);
if (newDescription.isDefined()) return newDescription;
newDescription = new utileti!ModelDescription;
newDescription.xmiId = id;
newDescription.type = type.toMariaModelType();
newDescription.path = path;
newDescription.name = filename;
newDescription.date = util.getCurrentDateTime();
self.modelDescriptions.add(newDescription);
("created new modeldescription: '"+filename+"'").println();
return newDescription;
}
... changes this Model:...
...
<utileti:UTILETI xmi:id="_GJyToLq_EeGaffhEG04fxw">
<synchronisationModelRepository xmi:id="_Hgp_8Lq_EeGaffhEG04fxw"/>
<modelDescriptionRepository xmi:id="_IAYo4Lq_EeGaffhEG04fxw">
</modelDescriptionRepository>
</utileti:UTILETI>
</xmi:XMI>
...into this one:
...
<utileti:UTILETI xmi:id="_GJyToLq_EeGaffhEG04fxw">
<synchronisationModelRepository xmi:id="_Hgp_8Lq_EeGaffhEG04fxw"/>
<modelDescriptionRepository xmi:id="_IAYo4Lq_EeGaffhEG04fxw">
<modelDescriptions xmi:id="_LjXWcLt6EeG0NJdSKkYuCQ" path="C:/Users/Lukas/Programming/Eclipse-Workspace/SA/de.baron/model/aui.model" name="aui.model" xmiId="_9oArcHgFEeGEQaFIIY_fFA" date="21.06.2012-10:22:03"/>
<modelDescriptions xmi:id="_Lji8oLt6EeG0NJdSKkYuCQ" path="C:/Users/Lukas/Programming/Eclipse-Workspace/SA/de.baron/model/cui.model" type="cuiDesktop" name="cui.model" xmiId="_ph2vsLpXEeGrA7-mH7AzEg" date="21.06.2012-10:22:03"/>
</modelDescriptionRepository>
</utileti:UTILETI>
<utileti:ModelDescription xmi:id="_qN7bwbt5EeG0NJdSKkYuCQ" path="C:/Users/Lukas/Programming/Eclipse-Workspace/SA/de.baron/model/aui.model" name="aui.model" xmiId="_9oArcHgFEeGEQaFIIY_fFA"/>
<utileti:ModelDescription xmi:id="__PkCgLt5EeG0NJdSKkYuCQ" path="C:/Users/Lukas/Programming/Eclipse-Workspace/SA/de.baron/model/aui.model" name="aui.model" xmiId="_9oArcHgFEeGEQaFIIY_fFA"/>
</xmi:XMI>
Note: utileti is an acronym and therefore not incorectly spelled.
One can see two tags "modelDescriptions" as children of "modelDescriptionRepository" appear as it is intended. The same Method createDescription has been executed twice.
Where are these strange Objects "ModelDescription" as children of the root-element from?, which have by the way totally different xmi:id s.
Thanks in Advance
Lukas
[Updated on: Thu, 21 June 2012 10:11]
Report message to a moderator