Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Sapphire » Model Validation Messages(Delegating Problem Validation Messages to Problem View)
Model Validation Messages [message #714088] Tue, 09 August 2011 19:11 Go to next message
Kamesh Sampath is currently offline Kamesh SampathFriend
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 19:22 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
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 16:59 Go to previous messageGo to next message
Kamesh Sampath is currently offline Kamesh SampathFriend
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 17:17 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
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 17:57 Go to previous messageGo to next message
Kamesh Sampath is currently offline Kamesh SampathFriend
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 18:55 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
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 19:09 Go to previous message
Kamesh Sampath is currently offline Kamesh SampathFriend
Messages: 213
Registered: July 2009
Senior Member
thanks Konstantin!
Previous Topic:Qname Binding
Next Topic:Custom Validation Service
Goto Forum:
  


Current Time: Fri Apr 19 19:45:40 GMT 2024

Powered by FUDForum. Page generated in 0.03484 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top