Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Validation not happening
Validation not happening [message #506097] Wed, 06 January 2010 02:24 Go to next message
chris is currently offline chrisFriend
Messages: 72
Registered: July 2009
Member
Hi,

I have a problem with validating my models. I have defined all kinds of
constraints (both Java and OCL) in the gmfmap file, and they show up in
the runtime workbench under Preferences/Model validation. However, I
don't have a Validate menu option in my GMF Diagram menu (I think I used
to have one :-) ). Additionally, if I open my model with the tree editor
generated by EMF, and if I choose validate on my root element, only the
EMF contraints (which e.g. check for cardinalities) are executed.

I just tried to debug my GMF editors, but it's hard to find a point
where to begin. I set a break point in
o.e.emf.validation.ui.ValidationAction and found out that the action's
Diagnostician uses an EValidatorRegistry which does not seem to hold my
constraints.

The weird thing is that it used to work, but that's a while ago, and I
have no idea at all what I could have broken.

As a side note: I'm not sure whether this might be involved, but I'm
using two different GMF editors working on different views of my model
(and being connected using the OpenDiagramBehaviour stuff).

Could anybody maybe help me to track down this issue?

Since I'm not sure if it's an EMF or a GMF issue, I decided to crosspost...

Thanks in advance,
Chris
Re: Validation not happening [message #506741 is a reply to message #506097] Sat, 09 January 2010 11:04 Go to previous messageGo to next message
chris is currently offline chrisFriend
Messages: 72
Registered: July 2009
Member
Hi again,

for the very stupid of you out there: The solution is as simple as using
the Validation option from the Edit menu (that damn thing seems to have
moved from the Diagram menu since GMF's last release :-) ).

Sorry for occupying your time.

However, I still would like to integrate my audits into the "normal" EMF
validation framework (such that my users don't have to expect different
results from the different Validation menu eintries - curently I'm
counting 3: 1 in the Edit menu as mentioned above, 2 in the popup menu
in my model's tree editor :-( ). Could anybody maybe point me to some
info concerning that task?

Cheers,
Chris


Am 06.01.2010 08:17, schrieb chris:
> Hi,
>
> I have a problem with validating my models. I have defined all kinds of
> constraints (both Java and OCL) in the gmfmap file, and they show up in
> the runtime workbench under Preferences/Model validation. However, I
> don't have a Validate menu option in my GMF Diagram menu (I think I used
> to have one :-) ). Additionally, if I open my model with the tree editor
> generated by EMF, and if I choose validate on my root element, only the
> EMF contraints (which e.g. check for cardinalities) are executed.
>
> I just tried to debug my GMF editors, but it's hard to find a point
> where to begin. I set a break point in
> o.e.emf.validation.ui.ValidationAction and found out that the action's
> Diagnostician uses an EValidatorRegistry which does not seem to hold my
> constraints.
>
> The weird thing is that it used to work, but that's a while ago, and I
> have no idea at all what I could have broken.
>
> As a side note: I'm not sure whether this might be involved, but I'm
> using two different GMF editors working on different views of my model
> (and being connected using the OpenDiagramBehaviour stuff).
>
> Could anybody maybe help me to track down this issue?
>
> Since I'm not sure if it's an EMF or a GMF issue, I decided to crosspost...
>
> Thanks in advance,
> Chris


--
Ray Bradbury: "You have to know how to accept rejection and reject
acceptance."
Re: Validation not happening [message #506837 is a reply to message #506741] Sun, 10 January 2010 20:55 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30653
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------070808000104000807010907
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Chris,

The basic EMF validation is done via
org.eclipse.emf.edit.ui.action.ValidateAction which used a specialized
Diagnostician in createDiagnostician...

chris wrote:
> Hi again,
>
> for the very stupid of you out there: The solution is as simple as using
> the Validation option from the Edit menu (that damn thing seems to have
> moved from the Diagram menu since GMF's last release :-) ).
>
> Sorry for occupying your time.
>
> However, I still would like to integrate my audits into the "normal" EMF
> validation framework (such that my users don't have to expect different
> results from the different Validation menu eintries - curently I'm
> counting 3: 1 in the Edit menu as mentioned above, 2 in the popup menu
> in my model's tree editor :-( ). Could anybody maybe point me to some
> info concerning that task?
>
> Cheers,
> Chris
>
>
> Am 06.01.2010 08:17, schrieb chris:
>
>> Hi,
>>
>> I have a problem with validating my models. I have defined all kinds of
>> constraints (both Java and OCL) in the gmfmap file, and they show up in
>> the runtime workbench under Preferences/Model validation. However, I
>> don't have a Validate menu option in my GMF Diagram menu (I think I used
>> to have one :-) ). Additionally, if I open my model with the tree editor
>> generated by EMF, and if I choose validate on my root element, only the
>> EMF contraints (which e.g. check for cardinalities) are executed.
>>
>> I just tried to debug my GMF editors, but it's hard to find a point
>> where to begin. I set a break point in
>> o.e.emf.validation.ui.ValidationAction and found out that the action's
>> Diagnostician uses an EValidatorRegistry which does not seem to hold my
>> constraints.
>>
>> The weird thing is that it used to work, but that's a while ago, and I
>> have no idea at all what I could have broken.
>>
>> As a side note: I'm not sure whether this might be involved, but I'm
>> using two different GMF editors working on different views of my model
>> (and being connected using the OpenDiagramBehaviour stuff).
>>
>> Could anybody maybe help me to track down this issue?
>>
>> Since I'm not sure if it's an EMF or a GMF issue, I decided to crosspost...
>>
>> Thanks in advance,
>> Chris
>>
>
>
>

--------------070808000104000807010907
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Chris,<br>
<br>
The basic EMF validation is done via
org.eclipse.emf.edit.ui.action.ValidateAction which used a specialized
Diagnostician in createDiagnostician...<br>
<br>
chris wrote:
<blockquote cite="mid:hi9nr6$mtn$1@build.eclipse.org" type="cite">
<pre wrap="">Hi again,

for the very stupid of you out there: The solution is as simple as using
the Validation option from the Edit menu (that damn thing seems to have
moved from the Diagram menu since GMF's last release :-) ).

Sorry for occupying your time.

However, I still would like to integrate my audits into the "normal" EMF
validation framework (such that my users don't have to expect different
results from the different Validation menu eintries - curently I'm
counting 3: 1 in the Edit menu as mentioned above, 2 in the popup menu
in my model's tree editor :-( ). Could anybody maybe point me to some
info concerning that task?

Cheers,
Chris


Am 06.01.2010 08:17, schrieb chris:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,

I have a problem with validating my models. I have defined all kinds of
constraints (both Java and OCL) in the gmfmap file, and they show up in
the runtime workbench under Preferences/Model validation. However, I
don't have a Validate menu option in my GMF Diagram menu (I think I used
to have one :-) ). Additionally, if I open my model with the tree editor
generated by EMF, and if I choose validate on my root element, only the
EMF contraints (which e.g. check for cardinalities) are executed.

I just tried to debug my GMF editors, but it's hard to find a point
where to begin. I set a break point in
o.e.emf.validation.ui.ValidationAction and found out that the action's
Diagnostician uses an EValidatorRegistry which does not seem to hold my
constraints.

The weird thing is that it used to work, but that's a while ago, and I
have no idea at all what I could have broken.

As a side note: I'm not sure whether this might be involved, but I'm
using two different GMF editors working on different views of my model
(and being connected using the OpenDiagramBehaviour stuff).

Could anybody maybe help me to track down this issue?

Since I'm not sure if it's an EMF or a GMF issue, I decided to crosspost...

Thanks in advance,
Chris
</pre>
</blockquote>
<pre wrap=""><!---->

</pre>
</blockquote>
</body>
</html>

--------------070808000104000807010907--
Previous Topic:Re: Cross Document References persistence with Translator
Next Topic:CDO authentication
Goto Forum:
  


Current Time: Sat Nov 23 02:28:02 GMT 2019

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

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

Back to the top