Example usage for org.eclipse.jdt.core.search IJavaSearchConstants EXACT_MATCH

List of usage examples for org.eclipse.jdt.core.search IJavaSearchConstants EXACT_MATCH

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.search IJavaSearchConstants EXACT_MATCH.

Prototype

int EXACT_MATCH

To view the source code for org.eclipse.jdt.core.search IJavaSearchConstants EXACT_MATCH.

Click Source Link

Document

The search pattern matches exactly the search result, that is, the source of the search result equals the search pattern.

Usage

From source file:eu.cloudwave.wp5.feedback.eclipse.tests.fixtures.base.JavaProjectFixture.java

License:Apache License

private void waitForIndexer() throws JavaModelException {
    new SearchEngine().searchAllTypeNames(ResourcesPlugin.getWorkspace(), null, null,
            IJavaSearchConstants.EXACT_MATCH, IJavaSearchConstants.CASE_SENSITIVE, IJavaSearchConstants.CLASS,
            SearchEngine.createJavaSearchScope(new IJavaElement[0]), new ITypeNameRequestor() {
                @Override/* w  ww  . j a v a 2  s  .c o m*/
                public void acceptClass(final char[] packageName, final char[] simpleTypeName,
                        final char[][] enclosingTypeNames, final String path) {
                }

                @Override
                public void acceptInterface(final char[] packageName, final char[] simpleTypeName,
                        final char[][] enclosingTypeNames, final String path) {
                }
            }, IJavaSearchConstants.WAIT_UNTIL_READY_TO_SEARCH, null);
}

From source file:org.springframework.ide.test.TestProject.java

License:Open Source License

private void waitForIndexer() throws JavaModelException {
    new SearchEngine().searchAllTypeNames(ResourcesPlugin.getWorkspace(), null, null,
            IJavaSearchConstants.EXACT_MATCH, IJavaSearchConstants.CASE_SENSITIVE, IJavaSearchConstants.CLASS,
            SearchEngine.createJavaSearchScope(new IJavaElement[0]), new ITypeNameRequestor() {
                public void acceptClass(char[] packageName, char[] simpleTypeName, char[][] enclosingTypeNames,
                        String path) {
                }//from ww w  .ja  v a 2s  . co  m

                public void acceptInterface(char[] packageName, char[] simpleTypeName,
                        char[][] enclosingTypeNames, String path) {
                }
            }, IJavaSearchConstants.WAIT_UNTIL_READY_TO_SEARCH, null);
}