Programmatic Validation [message #418036] |
Thu, 03 April 2008 01:27 |
Eclipse User |
|
|
|
Originally posted by: derrydavis.hotmail.com
Hi All,
Checking in for some guidance. I have a requirement of validating all of
the data in a single model instance prior to saving the serialized
instance of the data. Does it make sense to use the 'validateDocumentRoot'
method of the validator class or is there a different recommendation?
If this is recommended, are there examples of this approach? I'm having
some difficulty setting the arguments into the method and would like to
understand the DiagnosticChain and Map arguments better. I believe I can
get the document root from the edit domains resource set. Advice is
appreciated, thanks in advance.
-derry
|
|
|
|
Re: Programmatic Validation [message #418208 is a reply to message #418040] |
Fri, 04 April 2008 21:59 |
Eclipse User |
|
|
|
Originally posted by: derrydavis.hotmail.com
Ed Merks wrote:
> Derry,
> Normally you'd just use Diagnostician.INSTANCE.validate, though you
> might want to specialize it to use the label providers of your editor
> the way it's done in ValidateAction.validate.
That worked perfectly without any specialization. Thanks Ed!
-derry
|
|
|
Powered by
FUDForum. Page generated in 0.02793 seconds