<br><font size=2 face="sans-serif">Sounds like a good solution for me.</font>
<br>
<br><font size=2 face="sans-serif">Could your add this to </font><a href="http://www.furcas.org/wiki/index.php/Foreach-usecases"><font size=2 face="sans-serif">http://www.furcas.org/wiki/index.php/Foreach-usecases
`?<br>
</font></a>
<table>
<tr>
<td valign=top><img src=cid:_1_0ADC8DBC0ADC8A00005264A1C125783B>
<td><font size=3> </font>
<td><font size=1 face="Verdana"><b>Thomas Goldschmidt </b><br>
<br>
ABB AG<br>
Forschungszentrum<br>
Wallstadter Straße 59<br>
68526 Ladenburg<br>
Office Phone: +49 6203 716134<br>
Office Fax: +49 6203 716253<br>
e-mail:</font><font size=1 color=blue face="Verdana"> thomas.goldschmidt@de.abb.com</font></table>
<br>
<br><font size=1 color=#808080 face="Verdana">ABB AG<br>
Sitz/Head Office: Mannheim <br>
Registergericht/Registry Court: Mannheim<br>
Handelsregisternummer/Commercial Register No.: HRB 4664<br>
Geschäftsführung/Managing Board: Peter Smits (Vorsitzender), Joachim Schneider,
Markus Ochsner, Hans-Georg Krabbe<br>
Vorsitzender des Aufsichtsrats/Chairman of Supervisory Board: Bernhard
Jucker<br>
<br>
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich
erhalten haben, informieren Sie bitte sofort den Absender und vernichten
Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe
dieser Mail ist nicht gestattet. <br>
<br>
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any unauthorized
copying, disclosure or distribution of the material in this e-mail is strictly
forbidden.</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>"Uhl, Axel" <axel.uhl@sap.com></b>
</font>
<br><font size=1 face="sans-serif">Sent by: furcas-discussion-bounces@lists.furcas.org</font>
<p><font size=1 face="sans-serif">18.02.2011 15:41</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">furcas-discussion <furcas-discussion@lists.furcas.org></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">[furcas-discussion] Element re-use strategy
for foreach</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2>Hi,<br>
<br>
the existing foreach code, if I understand it correctly, is trying to re-use
elements based on a comparison of the used Template's metaReference (an
EClass) and the eClass() of the object already in the target feature. If
these classes match up, the existing element is re-used and entered into
the ModelElementProxy instead of creating a new one.<br>
<br>
But what if there are multiple when-clauses using different templates for
the same class, distinguished by different modes? Then the target elements
would need to be produced by different rules in different ways.<br>
<br>
Wouldn't re-using an element produced by a differently-moded template for
the same class lead to also re-using a potentially wrong object state?<br>
<br>
We also seem to be missing information about which template was used to
produce the target element as there is no separate TextBlock/correspondingModelElement
combination for the foreach target elements. Instead, we only have the
ForEachContext elements, but they currently don't document the template
that was used to create the target element.<br>
<br>
Suggestion: let's add a reference to ForEachContext which points to the
Template used to produce the element held in the resultModelElement reference.<br>
<br>
What do you say?<br>
<br>
-- Axel<br>
_______________________________________________<br>
Furcas-discussion mailing list<br>
Furcas-discussion@lists.furcas.org<br>
</font></tt><a href="http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion"><tt><font size=2>http://lists.furcas.org/cgi-bin/mailman/listinfo/furcas-discussion<br>
</font></tt></a>
<br>