|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.xtext.ecoreInference.XtendXtext2EcorePostProcessor org.eclipse.xtext.xtext.ecoreInference.ProjectAwareXtendXtext2EcorePostProcessor
public class ProjectAwareXtendXtext2EcorePostProcessor
XtendXtext2EcorePostProcessor
specialization which enables the xtend post processing file to refer to
classes and resources which are available from the classpath of the containing IJavaProject
.
Constructor Summary | |
---|---|
ProjectAwareXtendXtext2EcorePostProcessor()
|
Method Summary | |
---|---|
protected java.lang.ClassLoader |
createClassLoader(org.eclipse.jdt.core.IJavaProject javaProject)
|
protected org.eclipse.emf.mwe.core.resources.ResourceLoader |
getResourceLoader(GeneratedMetamodel metamodel)
|
protected org.eclipse.xtend.expression.Resource |
loadXtendFile(GeneratedMetamodel metamodel)
Expects an Xtend file named MyDsl PostProcessor.ext with an extension with signature
process(xtext::GeneratedMetamodel) in the same folder as the grammar file. |
void |
resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
Notifies this listener that some resource changes are happening, or have already happened. |
Methods inherited from class org.eclipse.xtext.xtext.ecoreInference.XtendXtext2EcorePostProcessor |
---|
getExecutionContext, getExtensionName, getXtendFileLocation, process |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProjectAwareXtendXtext2EcorePostProcessor()
Method Detail |
---|
protected org.eclipse.xtend.expression.Resource loadXtendFile(GeneratedMetamodel metamodel)
XtendXtext2EcorePostProcessor
MyDsl
PostProcessor.ext with an extension with signature
process(xtext::GeneratedMetamodel) in the same folder as the grammar file.
loadXtendFile
in class XtendXtext2EcorePostProcessor
metamodel
- the metamodel to augment
protected org.eclipse.emf.mwe.core.resources.ResourceLoader getResourceLoader(GeneratedMetamodel metamodel)
getResourceLoader
in class XtendXtext2EcorePostProcessor
metamodel
- the metamodel to augment
protected java.lang.ClassLoader createClassLoader(org.eclipse.jdt.core.IJavaProject javaProject) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
org.eclipse.core.resources.IResourceChangeListener
The supplied event gives details. This event object (and the resource delta within it) is valid only for the duration of the invocation of this method.
Note: This method is called by the platform; it is not intended to be called directly by clients.
Note that during resource change event notification, further changes to resources may be disallowed.
resourceChanged
in interface org.eclipse.core.resources.IResourceChangeListener
event
- the resource change eventIResourceDelta
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |