Skip to main content



      Home
Home » Eclipse Projects » Sirius » Set the attribute value through java method call(Set the attribute value through java method call)
Set the attribute value through java method call [message #1736999] Tue, 05 July 2016 00:33 Go to next message
Eclipse UserFriend
Hi,
I have the Ecore model which has the attribute ID.Now in the Sirius we can set the attribute values through the set operation by specifying the feature name of the attribute and the value Expression in the Sirius design.Now the problem is,i want to set the attribute value id so i want to use the methods given by java to create random numbers so how can i call that method in the value expression such that the feature name has the value of the method return type.
Re: Set the attribute value through java method call [message #1738079 is a reply to message #1736999] Fri, 15 July 2016 11:27 Go to previous message
Eclipse UserFriend
Hi,

have a look at this tutorial here: Java Services
Inside your Java service method you can use any java code you like.

If you need a working example for your problem just let me know. I'm a little busy currently which is why I didn't provide one in the first place.

Greetings,
Michael
Previous Topic:Auto update diagram
Next Topic:Viewpoint selection is empty with an XText DSL instance.
Goto Forum:
  


Current Time: Wed Mar 26 05:16:30 EDT 2025

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

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

Back to the top