I diagree with that. OCL should not have side effects, by definition.<br><br>
<div><span class="gmail_quote">2006/2/10, Jesper Berthing <<a href="mailto:jbe@cfsi.dk">jbe@cfsi.dk</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Thanks, Attila and Zoltan<br><br>It would have been interesting if the OCL language had some features to set attribute values, that could be placed before the true or false statement of the OCL construct.
<br><br>Regards,<br>Jesper<br><br>________________________________<br><br>Fra: <a href="mailto:gme-users-bounces@list.isis.vanderbilt.edu">gme-users-bounces@list.isis.vanderbilt.edu</a> på vegne af Attila Vizhanyo<br>Sendt: to 2/9/2006 5:38
<br>Til: A list for GME users to share thoughts and discuss bugs and fixes.<br>Emne: Re: [gme-users] Changing the color of diagram objects?<br><br><br><br>You might want to download the GReAT source files from<br><a href="http://repo.isis.vanderbilt.edu">
repo.isis.vanderbilt.edu</a>, and take a look at the UMLDecorator project<br>for an example. UMLDecorator works the way Zoli described earlier.<br><br>HTH,<br>Attila<br><br>Jesper Berthing wrote:<br><br>> Hi,<br>><br>
> I have raised the question in one of my previous responses to the<br>> list, but I have not received any reply. Therefore I will try again,<br>> because it seems to be a simple question.<br>><br>><br>>
<br>> Is it possible to change the color of an object in the diagram,<br>> depending on an attribute value of that object.<br>><br>> Like:<br>><br>> Model.Enable can be set to true or false, is it possible to do:
<br>><br>><br>> "if self.Enable then let self.color = 0x0000FF else self.color =<br>> 0x000000 endif" as a<br>><br>> 1. Constraint attached to the object? or<br>><br>> 2. Can I use a "if then else" in the general preference field of the
<br>> object? or<br>><br>> 3. Use the Java BON interface to do so?<br>><br>> If it is possible how could it be done?<br>><br>><br>> I know the above will not work I have tried it ;-)<br>><br>> Regards,
<br>> Jesper<br>><br>><br>>------------------------------------------------------------------------<br>><br>>_______________________________________________<br>>gme-users mailing list<br>><a href="mailto:gme-users@list.isis.vanderbilt.edu">
gme-users@list.isis.vanderbilt.edu</a><br>><a href="http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users">http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users</a><br>><br>><br>_______________________________________________
<br>gme-users mailing list<br><a href="mailto:gme-users@list.isis.vanderbilt.edu">gme-users@list.isis.vanderbilt.edu</a><br><a href="http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users">http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
</a><br><br><br><br>_______________________________________________<br>gme-users mailing list<br><a href="mailto:gme-users@list.isis.vanderbilt.edu">gme-users@list.isis.vanderbilt.edu</a><br><a href="http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users">
http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users</a><br><br><br></blockquote></div><br>