Search in sources :

Example 1 with OutlineFilterAndSorter

use of org.eclipse.xtext.ui.editor.outline.impl.OutlineFilterAndSorter in project xtext-eclipse by eclipse.

the class OutlineFilterAndSorterTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    final Injector injector = TestsActivator.getInstance().getInjector("org.eclipse.xtext.ui.tests.editor.outline.OutlineTestLanguage");
    with(new ISetup() {

        @Override
        public Injector createInjectorAndDoEMFRegistration() {
            return injector;
        }
    });
    Model model = OutlineTestFactory.eINSTANCE.createModel();
    nodes = Lists.newArrayList();
    nodes.add(new EObjectNode(model, null, (ImageDescriptor) null, "one", true));
    nodes.add(new EObjectNode(model, null, (ImageDescriptor) null, "two", true));
    nodes.add(new EObjectNode(model, null, (ImageDescriptor) null, "three", true));
    filterAndSorter = new OutlineFilterAndSorter();
}
Also used : Injector(com.google.inject.Injector) ISetup(org.eclipse.xtext.ISetup) Model(org.eclipse.xtext.ui.tests.editor.outline.outlineTest.Model) ImageDescriptor(org.eclipse.jface.resource.ImageDescriptor) OutlineFilterAndSorter(org.eclipse.xtext.ui.editor.outline.impl.OutlineFilterAndSorter) EObjectNode(org.eclipse.xtext.ui.editor.outline.impl.EObjectNode)

Aggregations

Injector (com.google.inject.Injector)1 ImageDescriptor (org.eclipse.jface.resource.ImageDescriptor)1 ISetup (org.eclipse.xtext.ISetup)1 EObjectNode (org.eclipse.xtext.ui.editor.outline.impl.EObjectNode)1 OutlineFilterAndSorter (org.eclipse.xtext.ui.editor.outline.impl.OutlineFilterAndSorter)1 Model (org.eclipse.xtext.ui.tests.editor.outline.outlineTest.Model)1