Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » xtext 2.0 migration questions
xtext 2.0 migration questions [message #717914] Mon, 22 August 2011 17:11 Go to next message
Frank Felfe is currently offline Frank FelfeFriend
Messages: 6
Registered: December 2010
Junior Member
Hello,

I am trying to migrate a xtext project from 1.0 to 2.0. Since we have written quite some extension functions and checks we would like to keep them for now. Is this possible? More specifically:
- Where can I find org::eclipse::xtend::util::stdlib::io ?
- Is the org.eclipse.xtext.generator.validation.CheckFragment still available in xtext 2.0 ?

Greetings and Thanks
Frank
Re: xtext 2.0 migration questions [message #717924 is a reply to message #717914] Mon, 22 August 2011 18:15 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14716
Registered: July 2009
Senior Member
Hi,

org::eclipse::xtend::util::stdlib::io was and still is a part of Xpand/Xtend(1).
Maybe you don't have a complete installation of Xpand.
It is contained in the plugin org.eclipse.xtend.util.stdlib
org.eclipse.xtext.generator.validation.CheckFragment has been removed from Xtext.

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: xtext 2.0 migration questions [message #718808 is a reply to message #717924] Thu, 25 August 2011 11:57 Go to previous message
Nikolai Busse is currently offline Nikolai BusseFriend
Messages: 15
Registered: August 2011
Junior Member
Hi Frank,
if you just want to do some logging in Xtext 2.0's Xtend, then try
import org.apache.log4j.Logger
class MyGenerator implements IGenerator {
	extension org.apache.log4j.Category LOG
	override void doGenerate(Resource resource, IFileSystemAccess fsa) {
		LOG = Logger::getInstance(typeof(MyGenerator ))
		LOG.info("Run generator")
		...
	}

Nikolai
Previous Topic:Generated Model not to depend on EMF Classes
Next Topic:Popupxtexteditor undo action
Goto Forum:
  


Current Time: Sun Sep 22 10:58:40 GMT 2024

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

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

Back to the top