Search in sources :

Example 1 with XtextStandaloneSetup

use of org.eclipse.xtext.XtextStandaloneSetup in project xtext-core by eclipse.

the class ToEcoreTrafoTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    with(new XtextStandaloneSetup());
    EPackage.Registry.INSTANCE.put(AmetamodelPackage.eNS_URI, AmetamodelPackage.eINSTANCE);
}
Also used : XtextStandaloneSetup(org.eclipse.xtext.XtextStandaloneSetup)

Example 2 with XtextStandaloneSetup

use of org.eclipse.xtext.XtextStandaloneSetup in project xtext-core by eclipse.

the class SuperCallScopeTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    XtextStandaloneSetup _xtextStandaloneSetup = new XtextStandaloneSetup();
    this.with(_xtextStandaloneSetup);
}
Also used : XtextStandaloneSetup(org.eclipse.xtext.XtextStandaloneSetup)

Example 3 with XtextStandaloneSetup

use of org.eclipse.xtext.XtextStandaloneSetup in project xtext-core by eclipse.

the class XtextLinkerTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    XtextStandaloneSetup _xtextStandaloneSetup = new XtextStandaloneSetup();
    this.with(_xtextStandaloneSetup);
}
Also used : XtextStandaloneSetup(org.eclipse.xtext.XtextStandaloneSetup)

Example 4 with XtextStandaloneSetup

use of org.eclipse.xtext.XtextStandaloneSetup in project xtext-core by eclipse.

the class NodeModelUtilsTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    with(new XtextStandaloneSetup());
}
Also used : XtextStandaloneSetup(org.eclipse.xtext.XtextStandaloneSetup)

Example 5 with XtextStandaloneSetup

use of org.eclipse.xtext.XtextStandaloneSetup in project xtext-core by eclipse.

the class XtextFormatterTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    with(new XtextStandaloneSetup() {

        @Override
        public Injector createInjector() {
            return Guice.createInjector(new org.eclipse.xtext.XtextRuntimeModule() {

                @SuppressWarnings("unused")
                public Class<? extends ILineSeparatorInformation> bindILineSeparatorInformation() {
                    return FormatterTestLineSeparatorInformation.class;
                }
            });
        }
    });
    get(FormatterTestLineSeparatorInformation.class).setLineSeparator("\n");
}
Also used : Injector(com.google.inject.Injector) XtextStandaloneSetup(org.eclipse.xtext.XtextStandaloneSetup)

Aggregations

XtextStandaloneSetup (org.eclipse.xtext.XtextStandaloneSetup)12 Injector (com.google.inject.Injector)3 IssuesImpl (org.eclipse.emf.mwe.core.issues.IssuesImpl)2 Test (org.junit.Test)2 Binder (com.google.inject.Binder)1 WorkflowContextDefaultImpl (org.eclipse.emf.mwe.core.WorkflowContextDefaultImpl)1 NullProgressMonitor (org.eclipse.emf.mwe.core.monitor.NullProgressMonitor)1 Grammar (org.eclipse.xtext.Grammar)1 IResourceFactory (org.eclipse.xtext.resource.IResourceFactory)1 IResourceServiceProvider (org.eclipse.xtext.resource.IResourceServiceProvider)1 ReducedXtextResourceValidator (org.eclipse.xtext.xtext.ReducedXtextResourceValidator)1