I need some help with Java but I am not really a programmer so it is huge that I managed to come so far. However I am still having issues.
So what I am currently doin is that I am creating a domain specific language in Xtext as follows:
I also customized the scope provider of this grammar and now I am trying to get the qualified name for from=ParkEnter based on the hierarchical level.
This is the scope provider in java and this is what I need help with :
However, if I create the following example with this grammar and scope provider
On workingarea wf from ... I get all parks and enters but not by their qualified name. So for P5 I get P5, but instead I want P1.P2.P4.P5. This scope provider works fine when the working area is contained in a park, but it does not work when it is contained in a forest.
Any suggestion on how to fix it? Thanks!