Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sapphire » Model Validation Messages(Delegating Problem Validation Messages to Problem View)
Model Validation Messages [message #714088] Tue, 09 August 2011 15:11 Go to next message
Kamesh Sampath is currently offline Kamesh Sampath
Messages: 213
Registered: July 2009
Senior Member
Right now I see only Valdiation messages in the editor only, is there any way i can delegate those messages to Eclipse Marker/Problem views so that it gives a consistent view across ?

~Kamesh
Re: Model Validation Messages [message #714092 is a reply to message #714088] Tue, 09 August 2011 15:22 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 937
Registered: July 2009
Senior Member
There is an open enhancement request that is yet to be scheduled into a release that calls for a creation of a model validation builder that would surface such markers.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=329080

- Konstantin
Re: Model Validation Messages [message #716883 is a reply to message #714092] Thu, 18 August 2011 12:59 Go to previous messageGo to next message
Kamesh Sampath is currently offline Kamesh Sampath
Messages: 213
Registered: July 2009
Senior Member
Is there any work around to report the validation to the Problems view, I have a scenario where I need to validate an xml based on a schema and report the problems to the Problems View, I have modeled my Sapphire Model classes based on the XSD. Fro your previous post i see there is a Open Bug reporting the messages to Problem view
Re: Model Validation Messages [message #716886 is a reply to message #716883] Thu, 18 August 2011 13:17 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 937
Registered: July 2009
Senior Member
This isn't really a workaround, but one could certainly write a custom builder that looks for files you are interested in, uses your model to validate those files and then exports the results as resource markers. You would in effect be implementing a non-general version of the builder that's tracked by Bug 329080.

- Konstantin
Re: Model Validation Messages [message #716898 is a reply to message #716886] Thu, 18 August 2011 13:57 Go to previous messageGo to next message
Kamesh Sampath is currently offline Kamesh Sampath
Messages: 213
Registered: July 2009
Senior Member
is it possible for you dwelve some more details which will help me implementing it. I am fine sending it to resource markers but then not getting your thoughts on Custom builders
Re: Model Validation Messages [message #716912 is a reply to message #716898] Thu, 18 August 2011 14:55 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 937
Registered: July 2009
Senior Member
I always reference the following article when it comes to writing a builder:

http://www.eclipse.org/articles/Article-Builders/builders.html

- Konstantin
Re: Model Validation Messages [message #716916 is a reply to message #716912] Thu, 18 August 2011 15:09 Go to previous message
Kamesh Sampath is currently offline Kamesh Sampath
Messages: 213
Registered: July 2009
Senior Member
thanks Konstantin!
Previous Topic:Qname Binding
Next Topic:Custom Validation Service
Goto Forum:
  


Current Time: Fri Aug 01 01:58:53 EDT 2014

Powered by FUDForum. Page generated in 0.02397 seconds