Last change
on this file since 20 was
5,
checked in by zeiss, 14 years ago
|
|
-
Property svn:mime-type set to
text/plain
|
File size:
486 bytes
|
Rev | Line | |
---|
[5] | 1 | package de.ugoe.cs.swe.bnftools.utils;
|
---|
| 2 |
|
---|
| 3 | import org.eclipse.emf.ecore.EObject;
|
---|
| 4 | import org.eclipse.xtext.parser.IParseResult;
|
---|
| 5 | import org.eclipse.xtext.resource.XtextResource;
|
---|
| 6 | import org.eclipse.xtext.util.concurrent.IUnitOfWork;
|
---|
| 7 |
|
---|
| 8 | public class RootEObjectFinder implements IUnitOfWork<EObject, XtextResource> {
|
---|
| 9 |
|
---|
| 10 | public EObject exec(XtextResource state) throws Exception {
|
---|
| 11 | IParseResult parseResult = state.getParseResult();
|
---|
| 12 | return parseResult.getRootASTElement();
|
---|
| 13 | }
|
---|
| 14 |
|
---|
| 15 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.