use of org.eclipse.wst.common.core.search.scope.ProjectSearchScope in project webtools.sourceediting by eclipse.
the class FindReferencesInProjectAction method run.
public void run() {
String pattern = "";
XSDNamedComponent component = getXSDNamedComponent();
IFile file = getCurrentFile();
if (file != null && component != null) {
QualifiedName metaName = determineMetaName(component);
QualifiedName elementQName = new QualifiedName(component.getTargetNamespace(), component.getName());
IPath fullPath = file.getFullPath();
ProjectSearchScope scope = new ProjectSearchScope(fullPath);
String scopeDescription = "Project";
XSDSearchQuery searchQuery = new XSDSearchQuery(pattern, file, elementQName, metaName, XSDSearchQuery.LIMIT_TO_REFERENCES, scope, scopeDescription);
NewSearchUI.activateSearchResultView();
NewSearchUI.runQueryInBackground(searchQuery);
}
}
Aggregations