Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Java Service doesn't return anything
Java Service doesn't return anything [message #1754135] Tue, 14 February 2017 16:40 Go to next message
Tobias Nodurft is currently offline Tobias NodurftFriend
Messages: 2
Registered: February 2017
Junior Member
Hello everybody,
i created a new method in the Services.java. I wondered why it doesn't return what i expected. So i tried do create a method that just returns a String:
index.php/fa/28446/0/
when i use these method like this:
index.php/fa/28447/0/
the "Name" of the node is empty;
when i use the method like this:
index.php/fa/28448/0/
i can't create a node.

Can someone help me? I don't know what i'm doing wrong.

Regards,
Tobias
  • Attachment: m1.PNG
    (Size: 17.97KB, Downloaded 676 times)
  • Attachment: m2.PNG
    (Size: 11.45KB, Downloaded 584 times)
  • Attachment: m3.PNG
    (Size: 1.72KB, Downloaded 510 times)
Re: Java Service doesn't return anything [message #1754193 is a reply to message #1754135] Wed, 15 February 2017 08:16 Go to previous message
Julien Dupont is currently offline Julien DupontFriend
Messages: 172
Registered: July 2009
Senior Member
Hi Toblas,

The service method is composed least 1 parameter. This parameter correspond to the context of service call. So, in your service you must have one parameter for context and one parameter for the argument.
You should have
public String getType (EObject context, String name){
return name;
}

If you use the simple interpreter as "service: "
you can't pass a String parameter for service call. "Service:" is only used with Sirius variables defined in tool.
In your case you must use aql:self.getType('abc')

Regards,
Previous Topic:Automatic saving the graphical editor when saved a text editor (xText)
Next Topic:create an odesign file programmatically
Goto Forum:
  


Current Time: Thu Sep 19 11:57:52 GMT 2024

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

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

Back to the top