Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [Evl] Eclipse MessageDialog Errors(Suppress error dialogs)
[Evl] Eclipse MessageDialog Errors [message #1841365] Thu, 13 May 2021 07:28 Go to next message
Horacio Hoyos is currently offline Horacio HoyosFriend
Messages: 242
Registered: October 2009
Location: Mexico
Senior Member

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?



Horacio Hoyos Rodriguez
Kinori Tech
Need professional support for Epsilon, EMF?
Go to: https://kinori.tech
Re: [Evl] Eclipse MessageDialog Errors [message #1841368 is a reply to message #1841365] Thu, 13 May 2021 08:24 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2165
Registered: July 2009
Location: York, UK
Senior Member

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 11:08 Go to previous messageGo to next message
Horacio Hoyos is currently offline Horacio HoyosFriend
Messages: 242
Registered: October 2009
Location: Mexico
Senior Member

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.


Horacio Hoyos Rodriguez
Kinori Tech
Need professional support for Epsilon, EMF?
Go to: https://kinori.tech
Re: [Evl] Eclipse MessageDialog Errors [message #1841374 is a reply to message #1841373] Thu, 13 May 2021 11:48 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2165
Registered: July 2009
Location: York, UK
Senior Member

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: Sat Apr 27 06:10:47 GMT 2024

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

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

Back to the top