Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » OCL Problem
OCL Problem [message #184153] Thu, 24 April 2008 10:08 Go to next message
Eclipse UserFriend
Originally posted by: info.mtiede.de

Hi,

when trying to use the OCL to create an Audit Rule e.g. 'name.size()>0'
for one of my domain elements I receive a message in my generated RCP
Editor after invoking 'validate' on the diagram via the Menubar:

- The constraint "xxx" is disabled. It will not be evaluated.
- and in the preferences for "Model Validation - Constraints" I am now
able to see that the constraint has been disabled: "This constraint is
disabled because of a run-time error and cannot be selected."

The same behavior I get when adding the example Audit Rule to the mindmap
example.

Any ideas? Thanks for your help.

With best regards
Markus
Re: OCL Problem [message #184161 is a reply to message #184153] Thu, 24 April 2008 14:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Markus,

This is what the EMF Validation Framework does when constraints throw
RuntimeExceptions during validation; they are basically booted from the
system for the remainder of the session.

The workspace log file should have a stack trace of the exception that
occurred; it will provide a clue to what the root cause is.

HTH,

Christian

Markus wrote:

> Hi,
>
> when trying to use the OCL to create an Audit Rule e.g. 'name.size()>0'
> for one of my domain elements I receive a message in my generated RCP
> Editor after invoking 'validate' on the diagram via the Menubar:
>
> - The constraint "xxx" is disabled. It will not be evaluated.
> - and in the preferences for "Model Validation - Constraints" I am now
> able to see that the constraint has been disabled: "This constraint is
> disabled because of a run-time error and cannot be selected."
>
> The same behavior I get when adding the example Audit Rule to the mindmap
> example.
>
> Any ideas? Thanks for your help.
>
> With best regards
> Markus
Re: OCL Problem [message #184337 is a reply to message #184161] Fri, 25 April 2008 09:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: info.mtiede.de

Thanks a lot... :)

Two other plug-ins have been missing in my launch configuration and
although using the 'add required plug-ins' button these plug-ins have not
been added to my configuration (include optional plug-ins was activated;
Eclipse 3.4M6):

- org.eclipse.emf.ocl
- org.eclipse.emf.validation.ocl

Now everything works fine (after adding them manually) but I'm a little
bit surprised that they have not been added automatically to my
configuration (there have also been no errors when validating the plug-in
dependencies).

With best regards
Markus
Re: OCL Problem [message #184387 is a reply to message #184337] Sat, 26 April 2008 12:10 Go to previous message
Eclipse UserFriend
Originally posted by: give.a.damus.gmail.com

Hi, Markus,

Yes, the trick here is that there is no plug-in actually dependent on
the org.eclipse.emf.validation.ocl. It is a leaf plug-in that plugs
in animplementation of the "OCL" constraint language.

Although no other plug-in in the EMF Validation Framework SDK depends
on it, probably GMF should because it requires it for OCL-based
validation.Perhaps GMF is missing a Require-Bundle dependency?

Cheers,

Christian

On Friday 04-25-2008 (09:37), Markus wrote:
> Thanks a lot... :)

> Two other plug-ins have been missing in my launch configuration and
> although using the 'add required plug-ins' button these plug-ins have
> not been added to my configuration (include optional plug-ins was
> activated; Eclipse 3.4M6):

> - org.eclipse.emf.ocl
> - org.eclipse.emf.validation.ocl

> Now everything works fine (after adding them manually) but I'm a
> little bit surprised that they have not been added automatically to
> my configuration (there have also been no errors when validating the
> plug-in dependencies).

> With best regards
> Markus



--

I'm trying a new usenet client for Mac, Nemo OS X.
You can download it at http://www.malcom-mac.com/nemo
Previous Topic:[Announce] GMF GMF 2.1.0 I200804252008 is available
Next Topic:Need help: non-visible element issue?
Goto Forum:
  


Current Time: Thu May 29 02:12:26 EDT 2025

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

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

Back to the top