Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsShow EMF Validation problems in Eclipse problems view
https://www.eclipse.org/forums/index.php/mv/msg/489357/1064797/#msg_1064797
How can I show my custom EMF validation results on Eclipse Problems View?
I try with an extension on org.eclipse.emf.validation.validationListener and a class which implements IValidationListener but the method validationOccurred is never called.
NOTE that I use eOperation inside model classes for validate them.
Thnaks in advance.]]>Tommaso De Sica2013-06-21T07:38:08-00:00Re: Show EMF Validation problems in Eclipse problems view
https://www.eclipse.org/forums/index.php/mv/msg/489357/1064805/#msg_1064805
framework, or you could have a look at how to make such constraints part
of your core model:
On 21/06/2013 9:38 AM, Tommaso De Sica wrote:
> Goodmorning.
>
> How can I show my custom EMF validation results on Eclipse Problems View?
>
> I try with an extension on
> org.eclipse.emf.validation.validationListener and a class which
> implements IValidationListener but the method validationOccurred is
> never called.
>
> NOTE that I use eOperation inside model classes for validate them.
>
> Thnaks in advance.]]>Ed Merks2013-06-21T07:50:30-00:00Re: Show EMF Validation problems in Eclipse problems view
https://www.eclipse.org/forums/index.php/mv/msg/489357/1064808/#msg_1064808
Isn't there a way to show invariant results on problem view?]]>Tommaso De Sica2013-06-21T08:15:39-00:00Re: Show EMF Validation problems in Eclipse problems view
https://www.eclipse.org/forums/index.php/mv/msg/489357/1064813/#msg_1064813
with the documented signature) acts as a constraint.
On 21/06/2013 10:15 AM, Tommaso De Sica wrote:
> So you suggest me to convert my invariants in constraints?
>
>]]>Ed Merks2013-06-21T08:21:33-00:00Re: Show EMF Validation problems in Eclipse problems view
https://www.eclipse.org/forums/index.php/mv/msg/489357/1064823/#msg_1064823
Maybe I have to add something in plugin for my invariants?]]>Tommaso De Sica2013-06-21T08:44:57-00:00Re: Show EMF Validation problems in Eclipse problems view
https://www.eclipse.org/forums/index.php/mv/msg/489357/1064826/#msg_1064826
The new decorator approach does rely so much on markers being created
and it's arguable that creating markers for the in-memory state of an
editor is a bad idea; such markers persist if the editor is closed
without saving. You can look at how
org.eclipse.emf.edit.ui.action.ValidateAction converts diagnostics to
markers; the live validator approach doesn't need that though and does a
much more interesting job decorating the tree so you know where the
errors are, including flyover information about the errors, and also
decorates the properties view so you know which properties contribute to
the error.
On 21/06/2013 10:44 AM, Tommaso De Sica wrote:
> So, why if I try to call Diagnostician.INSTANCE.validate(EObject) I
> receive all validation problems but they are not visible from problems
> view?]]>Ed Merks2013-06-21T08:52:58-00:00