|
Re: OCL constraints creation [message #670011 is a reply to message #669837] |
Thu, 12 May 2011 12:15 |
Thomas Neustupny Messages: 75 Registered: October 2009 |
Member |
|
|
Hi Natalia,
there is a thread on this topic (it's relevant for Papyrus because Papyrus uses eclipse UML2/EMF):
http://www.eclipse.org/forums/index.php/t/206602/
The relevant statement from a UML2 developer probably is:
"Support for dynamically evaluating stereotype (or other) constraints will not
be provided (at least not in UML2) since this would introduce a circular build
dependency on MDT OCL. Besides, this a tool-level capability that would be more
appropriately provided by the UML2 Tools component of MDT (seeing as it already
depends on both UML2 and OCL)." (Kenn Hussey)
But I can't tell how/if Papyrus provides that feature.
[Updated on: Thu, 12 May 2011 12:18] Report message to a moderator
|
|
|
|
|
Re: OCL constraints creation [message #672455 is a reply to message #672402] |
Sat, 21 May 2011 04:58 |
Ed Willink Messages: 7655 Registered: July 2009 |
Senior Member |
|
|
HI Sebastien
Yes. As a first pass, just 'borrow' the Validate button from the UML
Model editor. This will give a pop-up that at least reports the
problems. Just possible for Indigo. At least the infrastructure would be
there, facilitating enhancement in Indigo SR1. Even if Papyrus is
perfect, I think I can promise at least a minor issue with the OCL.
Then, support visual feedback; little red/yellow error/warning
decorations on the icons of all offending blocks, and on the centre of
each offending line. I did this in GEF for the UMLX editor and it looks
really good. But it does require an icon per symbol to decorate, which
is what the Ecore Diagram and UML2 Tools visual styles provide. See the
last figure in
http://www.eclipse.org/gmt/umlx/doc/GT-VMT2006/GTVMT2006.pdf or
http://www.eclipse.org/gmt/umlx/doc/GraMoT2006/GraMoT2006.pdf.
(Frightening, 5 years on and I'm still working on the infrastructure to
get UMLX working properly.)
And also, but it might happen for free, navigation from the problem view
markers back to the relevant diagram element.
Regards
Ed Willink
On 20/05/2011 23:28, Sebastien Gerard wrote:
> HI,
>
> The xtext editor of authoring UML constraint in OCL has been committed
> in Papyrus.
> Now, we need to have this validate button as mentioned by Ed. Ed, an
> idea on how to do it?
>
> Sébastien.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03128 seconds