Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Auto Validation after Domainmodel changes
Auto Validation after Domainmodel changes [message #211054] Wed, 12 November 2008 14:05 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:how get abs coordinates of edges?
Next Topic:CreationWizard could not be started
Goto Forum:
  


Current Time: Sat Jul 26 20:09:36 EDT 2025

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

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

Back to the top