Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » [solved] external XML file for contentassist+codegeneration
[solved] external XML file for contentassist+codegeneration [message #1692169] Tue, 14 April 2015 06:41 Go to next message
roman stingler is currently offline roman stinglerFriend
Messages: 8
Registered: November 2014
Junior Member
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

Re: external XML file for contentassist+codegeneration [message #1692992 is a reply to message #1692169] Tue, 21 April 2015 06:49 Go to previous message
roman stingler is currently offline roman stinglerFriend
Messages: 8
Registered: November 2014
Junior Member
someone who can reproduce the error??
probably there is only something lacking in the manifest.
Previous Topic:[SOLVED] Incomplete and invalid serialization of Ecore elements
Next Topic:[SOLVED] A token is not serialized by the Serializer
Goto Forum:
  


Current Time: Wed Apr 21 12:31:35 GMT 2021

Powered by FUDForum. Page generated in 0.01445 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top