Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Use of XtextFacade in Xpand/Xtend(How to use XtextFacade in a Xtend function)
Use of XtextFacade in Xpand/Xtend [message #659164] Fri, 11 March 2011 10:33 Go to next message
Olaf Bigalk is currently offline Olaf BigalkFriend
Messages: 155
Registered: July 2009
Location: Berlin
Senior Member
HI all,

I wand to use XtextFacade in an Xtend function.
The first step is easy. You need to define a Java function and write a JAVA extension in Xtend.
But to create an XtextFacade you need a BuildSpecification.
I copied the sample code from Peter Friese form
http://www.peterfriese.de/using-xpand-in-your-eclipse-wizard s/.
I checked that all dependencies are included in my project.
But I still can not find the following classes:

BuildSpecification
IProject
BuildspecificationFactory
IProgressMonitor
IWorkspaceRoot
ResourcesPlugin
IResource
Path

Can any body help me to figure out where this classes came from?
Re: Use of XtextFacade in Xpand/Xtend [message #659181 is a reply to message #659164] Fri, 11 March 2011 12:11 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

i guess you are talking about the XpandFacade - not the XtextFacade.

Here the Manifest from Peter's example

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Ant Wizard Plug-in
Bundle-SymbolicName: de.peterfriese.antwizard; singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: de.peterfriese.antwizard.Activator
Bundle-Vendor: Peter Friese
Require-Bundle: org.eclipse.ui,
 org.eclipse.core.runtime,
 org.eclipse.core.resources,
 org.eclipse.ui.ide,
 org.eclipse.emf;bundle-version="2.4.0",
 org.eclipse.emf.edit;bundle-version="2.5.0",
 org.eclipse.xpand;bundle-version="0.7.0",
 org.eclipse.xtend;bundle-version="0.7.0",
 org.eclipse.xtend.typesystem.emf;bundle-version="0.7.0"
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-ActivationPolicy: lazy


Maybe you are missing org.eclipse.core.resources,
org.eclipse.ui.ide or others

BuildSpecification is a class Peter ships with his example code.

It is actually his "model" class. So you may replace it with your stuff.

~Christian



Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Fri, 11 March 2011 12:12]

Report message to a moderator

Previous Topic:access elements of imported namespaces from a non xtext editor
Next Topic:Old Console bug fix
Goto Forum:
  


Current Time: Fri Apr 26 05:35:08 GMT 2024

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

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

Back to the top