Auto Validation after Domainmodel changes [message #211054] |
Wed, 12 November 2008 14:05  |
Eclipse User |
|
|
|
Hi,
I have defined some "Audit Rules" and Validation is working by choosing
"Validate" from the "Diagram"-Menu.
Is there a Switch to automate this in a way that Validation occurs with
Domainmodel changes?
Any Help is Appreciated.
Best wishes,
Robert
|
|
|
Re: Auto Validation after Domainmodel changes [message #211238 is a reply to message #211054] |
Fri, 14 November 2008 05:17  |
Eclipse User |
|
|
|
Hi Robert,
To automatically invoke validation when your model is saved you can add
the following line in the doSaveDocument(IProgressMonitor monitor,
Object element, IDocument document, boolean overwrite) method of your
XXXDocumentProvider class in your diagram plugin.
ValidateAction.runValidation((View) document.getContent());
Cheers,
Dimitrios
hagane wrote:
> Hi,
>
> I have defined some "Audit Rules" and Validation is working by choosing
> "Validate" from the "Diagram"-Menu.
> Is there a Switch to automate this in a way that Validation occurs with
> Domainmodel changes?
>
> Any Help is Appreciated.
>
> Best wishes,
> Robert
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03005 seconds