• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Qualified Name in Java

 
Greenhorn
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!
 
If we don't do the shopping, we won't have anything for dinner. And I've invited this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic