|
|
|
|
Re: Xtext Reader for unnamed Grammar Element [message #642194 is a reply to message #638868] |
Tue, 30 November 2010 10:50 |
Helge Mising name Messages: 17 Registered: October 2010 |
Junior Member |
|
|
Hi,
I did a lot of debugging. I am sure that my name provider is never called. It seems that something is going wrong with registering it. That is, when I debug the RuntimeModule of my language, then the language provider class contains only 'null' and '0' elements. Especially, I would expect the 'qualifiedName' method to appear in the 'publicMethods'.
When debugging the URIBasedReader and particularly the corresponding SlotEntry class, I see that the
Quote: |
Could not find any exported element of type 'CompilationUnit' -> Slot 'j' is empty.
|
message is generated by the 'put(...)' method. There, the model class is correctly assigned to 'eClasses' (see code snippet) but the method 'findEObjectsOfType' returns an empty list since 'resourceDescriptions.getAllResourceDescriptions();' returns an empty collection.
public void put(WorkflowContext ctx, IResourceDescriptions resourceDescriptions, ResourceSet resourceSet) {
Set<EClass> eClasses = findEClasses(resourceSet, nsURI, type);
List<EObject> elements = findEObjectsOfType(eClasses, resourceDescriptions, resourceSet);
How do I get my name provider properly registered? Do I have to set anything else, like dependencies to certain plugins, particular switches when running the workflow,... ? May the problem be caused by my setup, since I think that something in the injection process goes wrong? I am using XText (1.0.1) on Java version 1.5.0_24 (32Bit) on Mac OS 10.5.8.
Best,
Helge
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03658 seconds