Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 13:16 Go to next message
C Tran is currently offline C TranFriend
Messages: 15
Registered: July 2014
Junior Member
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 13:39 Go to previous messageGo to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
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 13:21 Go to previous message
C Tran is currently offline C TranFriend
Messages: 15
Registered: July 2014
Junior Member
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: Thu Jan 21 09:28:19 GMT 2021

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

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

Back to the top