Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Run "Validate" on doSave
Run "Validate" on doSave [message #207188] Fri, 26 September 2008 23: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 11:38 Go to previous message
Kristian O'Connor is currently offline Kristian O'ConnorFriend
Messages: 29
Registered: July 2009
Junior Member
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: Tue May 11 04:55:57 GMT 2021

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

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

Back to the top