From Eclipsepedia  Jump to: navigation, search    How do I load
my model in a standalone Java application ?  Assuming you have a
grammar Foo.xtext the Java code to load a corresponding model
from a resource should look something like this:  Injector
injector = new
FooStandaloneSetup().createInjectorAndDoEMFRegistration();
XtextResourceSet resourceSet =
injector.getInstance(XtextResourceSet.class);
resourceSet.addLoadOption(XtextResource.OPTION_RESOLVE_ALL,
Boolean.TRUE); Resource resource = resourceSet.getResource(URI.c
reateURI("platform:/resource/myproject/my.foo"), true); Foo foo
= (Foo) resource.getContents().get(0);  Workflow / Generator
Why do I get warnings like "warning(200): InternalFoo.g:42:3:
Decision can match ..." when running the generator ?  Here's an
example of the full error message:  warning(200):
InternalFoo.g:42:3: Decision can match input such as "FOO" using
multiple alternatives: 1, 2   OK, but I didn't get these
warnings in oAW Xtext !   <!-- Antlr Generator fragment -->
<fragment class