Skip to main content



      Home
Home » Modeling » Epsilon » [Evl] Eclipse MessageDialog Errors(Suppress error dialogs)
[Evl] Eclipse MessageDialog Errors [message #1841365] Thu, 13 May 2021 03:28 Go to next message
Eclipse UserFriend
Morning,

I am trying to figure out how to stop EVL from popping Error dialogs in Eclipse when called programmatically via the Emf Validation facilities. This is, we interact indirectly with Evl via the EvlValidator.

We have a notification mechanism in our View and the eclipse UI error messages are annoying for users (since they can run the validation repeatedly). I have found
EvlValidator#setShowErrorDialog

To stop the error dialog popping up on errors/exceptions.

However, I am also using the
Context.put(EvlValidator.VALIDATION_MONITOR, monitor);

so that validation can be cancelled via the progress monitor. However, when the validation is cancelled another error dialog is show:

A runtime error was rise during the evaluation of ... .evl: Terminated by the user.


First, I don't think a termination is a runtime error. And second, is it possible to suppress this other error dialog popping up?

Re: [Evl] Eclipse MessageDialog Errors [message #1841368 is a reply to message #1841365] Thu, 13 May 2021 04:24 Go to previous messageGo to next message
Eclipse UserFriend
Hi Horacio,

Does calling setLogErrors(false) on your EvlValidator do the trick?

Best,
Dimitris
Re: [Evl] Eclipse MessageDialog Errors [message #1841373 is a reply to message #1841368] Thu, 13 May 2021 07:08 Go to previous messageGo to next message
Eclipse UserFriend
Hi Dimitris,

That also removes all error reporting via console. Turns out there where two EvlValidators registered and I was only "fixing" one. So when the termination happened the second what was showing the Dialog.

BTW, don't think the VALIDATION_MONITOR support is documented anywhere.

No longer an issue.
Re: [Evl] Eclipse MessageDialog Errors [message #1841374 is a reply to message #1841373] Thu, 13 May 2021 07:48 Go to previous message
Eclipse UserFriend
Good point - we definitely need an article on the EVL-EMF integration on the website!

If you have a bit of time to spare it'd be great if you could put some quick notes in a markdown file while you're "in the zone", and we can improve it over time.

Cheers,
Dimitris
Previous Topic:Epsilon ETL - Ecore2Ecore full copy
Next Topic:EOL
Goto Forum:
  


Current Time: Wed Jul 02 02:59:17 EDT 2025

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

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

Back to the top