Use of XtextFacade in Xpand/Xtend [message #659164] |
Fri, 11 March 2011 10:33 |
|
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 |
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03408 seconds