Skip to main content



      Home
Home » Eclipse Projects » Sirius » Suppressing default validation messages(Disable validation against metamodel and just use my audit rules)
Suppressing default validation messages [message #1715582] Tue, 24 November 2015 08:16 Go to next message
Eclipse UserFriend
Hi,

I am writing validation rules for my diagrams. Rules are evaluated correctly show meaningful and friendly messages as I want to. However, the validation also automatically validate my diagrams against my metamodel and therefore print default messages. These messages are not friendly at all in my opinion. e.g. "The required feature 'connection' of 'Composite1::Loop1' must be set. In addition, default messages and my messages both exist and they confuse users.

My question hence is whether it is possible to turn off or bypass or at least suppress the default messages.

Many thanks in advance
Re: Suppressing default validation messages [message #1718636 is a reply to message #1715582] Mon, 28 December 2015 08:39 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

No currently it is not possible, but to avoid that you can relax the
arity of your metamodel. For example instead of having lower and upper
bounds as [1..1] you could have [0..1] to avoid default messages from
EMF validation.
If you don't want to do that you can raise a enhancement bugzilla to
have option to trigger only validation on your defined validation rules.

Best Regards.

Le 24/11/2015 14:16, C Tran a écrit :
> Hi,
>
> I am writing validation rules for my diagrams. Rules are evaluated
> correctly show meaningful and friendly messages as I want to. However,
> the validation also automatically validate my diagrams against my
> metamodel and therefore print default messages. These messages are not
> friendly at all in my opinion. e.g. "The required feature 'connection'
> of 'Composite1::Loop1' must be set. In addition, default messages and my
> messages both exist and they confuse users.
>
> My question hence is whether it is possible to turn off or bypass or at
> least suppress the default messages.
> Many thanks in advance



--
Esteban Dugueperoux - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Suppressing default validation messages [message #1720576 is a reply to message #1718636] Tue, 19 January 2016 08:21 Go to previous message
Eclipse UserFriend
Thanks Esteban for the answer. It was exactly what I did.
Previous Topic:How to display an element outcoming from a foreign model (resource)
Next Topic:How To Remove a Representation Programatically
Goto Forum:
  


Current Time: Wed Jul 09 23:34:53 EDT 2025

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

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

Back to the top