org.eclipse.xtext.ui.editor.findrefs.ReferenceSearchResultContentProvider Java Examples

The following examples show how to use org.eclipse.xtext.ui.editor.findrefs.ReferenceSearchResultContentProvider. 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: MyReferenceSearchResultContentProviderCustomModule.java    From n4js with Eclipse Public License 1.0 6 votes vote down vote up
@Override
protected void configure() {
	// As a workaround to fix GH-724, this is copied from org.eclipse.xtext.ui.shared.internal.SharedModule
	// and the default must be kept in sync with the corresponding code there!!
	binder().install(new PrivateModule() {
		@Override
		protected void configure() {
			bind(ReferenceSearchViewPage.class);
			bind(ReferenceSearchResultLabelProvider.class);
			// Workaround to fix GH-724.
			bind(ReferenceSearchResultContentProvider.class).to(MyReferenceSearchResultContentProvider.class);
			bind(ReferenceSearchViewSorter.class);

			expose(ReferenceSearchViewPage.class);
		}
	});
}
 
Example #2
Source File: N4JSUiModule.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
/** Bind custom ReferenceSearchResultContentProvider. Workaround to fix GH-724. */
public Class<? extends ReferenceSearchResultContentProvider> bindReferenceSearchResultContentProvider() {
	return MyReferenceSearchResultContentProvider.class;
}