org.eclipse.xtext.ui.editor.outline.impl.OutlineFilterAndSorter Java Examples

The following examples show how to use org.eclipse.xtext.ui.editor.outline.impl.OutlineFilterAndSorter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: OutlineFilterAndSorterTest.java    From xtext-eclipse with Eclipse Public License 2.0 6 votes vote down vote up
@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();
}
 
Example #2
Source File: JvmOutlineTests.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
@Inject
void configure(ShowSyntheticMembersContribution filter, OutlineFilterAndSorter sorter) {
	sorter.addFilter(filter.getFilter());
	this.sorter = sorter;
}
 
Example #3
Source File: JvmOutlineTests.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
@Override
protected OutlineFilterAndSorter getSorter() {
	return sorter;
}
 
Example #4
Source File: OutlineTests.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
@Inject
void configure(ShowSyntheticMembersContribution filter, OutlineFilterAndSorter sorter) {
	sorter.addFilter(filter.getFilter());
	this.sorter = sorter;
}
 
Example #5
Source File: OutlineTests.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
@Override
protected OutlineFilterAndSorter getSorter() {
	return sorter;
}
 
Example #6
Source File: QuickOutlineTests.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
@Override
protected OutlineFilterAndSorter getSorter() {
	return sorter;
}
 
Example #7
Source File: AbstractSARLUiModule.java    From sarl with Apache License 2.0 4 votes vote down vote up
public Class<? extends OutlineFilterAndSorter.IComparator> bindOutlineFilterAndSorter$IComparator() {
	return SARLOutlineNodeComparator.class;
}
 
Example #8
Source File: AbstractSARLOutlineTreeProviderTest.java    From sarl with Apache License 2.0 2 votes vote down vote up
/** Replies the outline sorted.
 *
 * @return the outline sorter.
 */
protected OutlineFilterAndSorter getSorter() {
	return this.sorter;
}
 
Example #9
Source File: AbstractOutlineTests.java    From xtext-xtend with Eclipse Public License 2.0 votes vote down vote up
protected abstract OutlineFilterAndSorter getSorter();