Skip to main content



      Home
Home » Eclipse Projects » Sirius » Problem When Calling Services
Problem When Calling Services [message #1847406] Tue, 26 October 2021 07:02 Go to next message
Eclipse UserFriend
Hi, I have a problem when calling services; my service class like this;

public class Services{
public String getName(EObject self){
return "abcd";
}
}

I can't call this method from .odesign file,

In validation it gives the following error;

"Couldn't find the getName(EClassifier=MyClass)" service.

Could you help me to solve this problem? What should I do?
Re: Problem When Calling Services [message #1847499 is a reply to message #1847406] Fri, 29 October 2021 03:48 Go to previous messageGo to next message
Eclipse UserFriend
Did you register your custom service class in the VSM as documented here: https://www.eclipse.org/sirius/doc/specifier/general/Writing_Queries.html#service_methods ?
Re: Problem When Calling Services [message #1847608 is a reply to message #1847499] Tue, 02 November 2021 06:14 Go to previous message
Eclipse UserFriend
Pierre-Charles David wrote on Fri, 29 October 2021 07:48
Did you register your custom service class in the VSM as documented here: https://www.eclipse.org/sirius/doc/specifier/general/Writing_Queries.html#service_methods ?


Yes I did
Previous Topic:NullPointerException when I create session using aird file
Next Topic:Old-EcoreTools-style examples
Goto Forum:
  


Current Time: Wed Jul 09 22:53:38 EDT 2025

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

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

Back to the top