Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Run "Validate" on doSave
Run "Validate" on doSave [message #207188] Fri, 26 September 2008 19:51 Go to next message
Eclipse UserFriend
Originally posted by: nuclearpsyche.gmail.com

Hello,
I have a combined EMF/GMF editor. I would like to automatically run the
validation on the model when the doSave method of the Editor is called
(which would also update the problems view).
Any pointers are appreciated. Thank you.
Regards,

tamer
Re: Run "Validate" on doSave [message #210165 is a reply to message #207188] Fri, 31 October 2008 07:38 Go to previous message
Eclipse UserFriend
Hello Tamer

@Override
public void doSave(IProgressMonitor progressMonitor)
{
ValidateAction.runValidation(getDiagramEditPart(),getDiagram EditPart().getDiagramView());
// ...
}

should work for you... I hope. ValidateAction is a generated class...

Regards -
Kristian



"Tamer" <nuclearpsyche@gmail.com> wrote in message
news:gbjsh1$dj7$1@build.eclipse.org...
> Hello,
> I have a combined EMF/GMF editor. I would like to automatically run the
> validation on the model when the doSave method of the Editor is called
> (which would also update the problems view).
> Any pointers are appreciated. Thank you.
> Regards,
>
> tamer
Previous Topic:Extend existent GMF editor with a new EMF model
Next Topic:EMFCompositePropertySource instead of PropertySource in XXXPropertySection
Goto Forum:
  


Current Time: Fri May 09 08:10:47 EDT 2025

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

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

Back to the top