Hi I want to use one single xml file for using the information in the conentassist as well as using it for the code generation.
my problem is I use xom as xml parser and I have my parserfile in
package org.xtext.example.mydsl.ui.contentassist;
where it works for the contentassist.
but when I import the NodeLister.java file
import org.xtext.example.mydsl.ui.contentassist.NodeLister
I get
NodeLister cannot be resolved to a type.
org.xtext.example.mydsl.ui.contentassist.NodeLister cannot be resolved to a type.
The method or field NodeLister is undefined for the type MbtGenerator
could someone give me a hint
I use
var NodeLister nList = NodeLister.INSTANCE;
------------- SOLUTION due to hint of Sebastian Zarnekow --------------
I put the NodeLister file into a new package in the main plugin(project) (org.xtext.example.mydsl.XXXX)
than in the plugin.xml under runtime i put the package to exported packages.
in the files import the correct packages and it should work (rebuild necessary)
[Updated on: Tue, 21 April 2015 08:54]
Report message to a moderator