Skip to main content



      Home
Home » Modeling » EMF » updating ecore instance with derived ocl values
updating ecore instance with derived ocl values [message #663195] Mon, 04 April 2011 05:45 Go to next message
Eclipse UserFriend
Hi,

I am creating an ecore model programmatocally(java) and trying to create dynamic intance of ecore model. I have a reference of type double with deriving ocl statement in ecore. when i try to get the value of that from instance model it always gives me 0. On the other hand if i run the same ecore model in eclispe IDE and take instance one of same class in ecore then every thing works fine.... why it is not getting the derived value in java programmatically? whats the difference....?

Warmest Regards

khurram
Re: updating ecore instance with derived ocl values [message #663310 is a reply to message #663195] Mon, 04 April 2011 11:04 Go to previous message
Eclipse UserFriend
Khurram,

There are extension points for registering things that you need to do
manually when running stand alone. Easiest would be to run your
process as an Eclipse application; failing that, you'll need to register
the same things manually...



khurrams@ics.kth.se wrote:
> Hi,
>
> I am creating an ecore model programmatocally(java) and trying to
> create dynamic intance of ecore model. I have a reference of type
> double with deriving ocl statement in ecore. when i try to get the
> value of that from instance model it always gives me 0. On the other
> hand if i run the same ecore model in eclispe IDE and take instance
> one of same class in ecore then every thing works fine.... why it is
> not getting the derived value in java programmatically? whats the
> difference....?
>
> Warmest Regards
>
> khurram
Previous Topic:Dynamically extending a model using an xsd scheme
Next Topic:Evaluate Ecore Instances programatically
Goto Forum:
  


Current Time: Tue Jul 08 11:24:46 EDT 2025

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

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

Back to the top