[Evl] Eclipse MessageDialog Errors [message #1841365] |
Thu, 13 May 2021 07:28 |
|
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 #1841373 is a reply to message #1841368] |
Thu, 13 May 2021 11:08 |
|
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 |
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02661 seconds