Skip to main content



      Home
Home » Eclipse Projects » Sirius » Expression to call the java methods(Expression to call the java methods)
Expression to call the java methods [message #1737717] Tue, 12 July 2016 04:39 Go to next message
Eclipse UserFriend
Hi,
I have the ID attribute in the properties view for the model objects so in the design i am able to set the feature name and if i give the default value using aql expression it is working.But i want to call the java method which generates random numbers in place of aql expression such that the ID value will have random numbers.
Re: Expression to call the java methods [message #1737720 is a reply to message #1737717] Tue, 12 July 2016 04:48 Go to previous message
Eclipse UserFriend
Hi Naveen,

Le 12/07/2016 à 10:39, naveen ramesh a écrit :
> Hi,
> I have the ID attribute in the properties view for the model objects so
> in the design i am able to set the feature name and if i give the
> default value using aql expression it is working.But i want to call the
> java method which generates random numbers in place of aql expression
> such that the ID value will have random numbers.

You will find informations on how to call Java services:
. in the documentation , see the Sirius Specificer Manual > Writing
Queries and Interpreted Expressions > Writing Java Services in [1]
. in the advanced tutorial > Java Services in [2]

Regards

--
Maxime - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
--
[1]
https://www.eclipse.org/sirius/doc/specifier/general/Writing_Queries.html#service_methods
[2] https://wiki.eclipse.org/Sirius/Tutorials/AdvancedTutorial#Java_Services
Previous Topic:Container Style Round
Next Topic:performSetCommand not using own model ItemProviderAdapter
Goto Forum:
  


Current Time: Fri Mar 21 03:48:47 EDT 2025

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

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

Back to the top