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

The following examples show how to use org.eclipse.xtext.ui.editor.findrefs.ReferenceQueryExecutor. 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: JvmModelFindReferenceHandler.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void findReferences(EObject target) {
	ReferenceQueryExecutor queryExecutor = getQueryExecutor(target);
	if (queryExecutor != null) {
		Iterable<IJavaElement> javaElements = getJavaElements(target);
		if (size(javaElements) > 0) {
			jdtReferenceFinder.run(queryExecutor.getLabel(target), javaElements);
		} else {
			queryExecutor.execute();
		}
	}
}
 
Example #2
Source File: ModelInferenceFragment.java    From dsl-devkit with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public Set<Binding> getGuiceBindingsUi(final Grammar grammar) {
  BindFactory factory = new BindFactory();
  if (generateModelInference) {
    factory.addTypeToType(ReferenceQueryExecutor.class.getName(), InferredModelReferenceQueryExecutor.class.getName());
  }
  return factory.getBindings();
}
 
Example #3
Source File: AbstractDomainmodelUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends ReferenceQueryExecutor> bindReferenceQueryExecutor() {
	return JvmModelReferenceQueryExecutor.class;
}
 
Example #4
Source File: AbstractRuleEngineUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends ReferenceQueryExecutor> bindReferenceQueryExecutor() {
	return JvmModelReferenceQueryExecutor.class;
}
 
Example #5
Source File: AbstractPureXbaseUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends ReferenceQueryExecutor> bindReferenceQueryExecutor() {
	return JvmModelReferenceQueryExecutor.class;
}
 
Example #6
Source File: AbstractBug462047LangUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends ReferenceQueryExecutor> bindReferenceQueryExecutor() {
	return JvmModelReferenceQueryExecutor.class;
}
 
Example #7
Source File: AbstractXImportSectionTestLangUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends ReferenceQueryExecutor> bindReferenceQueryExecutor() {
	return JvmModelReferenceQueryExecutor.class;
}
 
Example #8
Source File: AbstractContentAssistFragmentTestLangUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends ReferenceQueryExecutor> bindReferenceQueryExecutor() {
	return JvmModelReferenceQueryExecutor.class;
}
 
Example #9
Source File: DotUiModule.java    From gef with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends ReferenceQueryExecutor> bindReferenceQueryExecutor() {
	return DotFindReferencesQueryExecutor.class;
}
 
Example #10
Source File: AbstractXtendUiModule.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends ReferenceQueryExecutor> bindReferenceQueryExecutor() {
	return JvmModelReferenceQueryExecutor.class;
}
 
Example #11
Source File: AbstractSARLUiModule.java    From sarl with Apache License 2.0 4 votes vote down vote up
public Class<? extends ReferenceQueryExecutor> bindReferenceQueryExecutor() {
	return JvmModelReferenceQueryExecutor.class;
}