Win a copy of liveProject: Protecting User Data with Spring Security and OAuth2 this week in the Spring forum!

Bart Mulla

Greenhorn
+ Follow
since Apr 09, 2021
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Bart Mulla

Hi everyone,

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!
3 weeks ago