Win a copy of liveProject: Protecting User Data with Spring Security and OAuth2 this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

Qualified Name in Java

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic