Java Service does not get invoked? [message #1842622] |
Fri, 25 June 2021 12:15  |
Eclipse User |
|
|
|
I'm building a Sirius-based language that uses a Java-based service as part of some node pre-conditions and some conditional-style conditions (effectively to give instantaneous feedback to the modeller).
My diagrams are behaving strangely and it seems that the reason for this is that the Java-based service doesn't actually get invoked. I am at a loss for why this might be, though.
My setup is such that I have my meta-model and the code generated from it in plugin projects in my development Eclipse. I also have in that same development Eclipse a plugin project containing the Sirius viewpoint specification and the Service class (written in Xtend but I assume that shouldn't make a difference). My odesign file references the Service class and the service method is defined to take an instance of one of my meta-classes and return an int.
Whenever I use a call to my service method from within the odesign file, this appears to be silently ignored (I believe it may lead to a null return), leading to some strange behaviour -- for example the node that has conditional styles is added to the diagram but shows as completely transparent because none of the conditions evaluate to true. However, arrows still connect to the invisible node.
I could not find any error messages or exceptions anywhere. Somewhat confusingly, there was a moment during development when the service method was invoked (I had added some print statements), but this suddenly changed even though I do not recall making any changes other than adding a bit more code inside the service method and adding its invocation to the conditional styles.
I assume that this is some sort of configuration problem, but don't know where else I should look for a possible solution.
Does anybody have an idea what I might be doing wrong?
Many thanks in advance,
Steffen
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04101 seconds