Example usage for org.eclipse.jdt.core.search ITypeNameRequestor ITypeNameRequestor

List of usage examples for org.eclipse.jdt.core.search ITypeNameRequestor ITypeNameRequestor

Introduction

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

Prototype

ITypeNameRequestor

Source Link

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//  www  .ja 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  w  w  w. j  a va 2 s  .  c  om*/

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

From source file:org.tigris.subversion.subclipse.test.TestProject.java

License:Open Source License

public static void waitForIndexer() throws JavaModelException {

    ITypeNameRequestor requestor = new ITypeNameRequestor() {
        public void acceptClass(char[] packageName, char[] simpleTypeName, char[][] enclosingTypeNames,
                String path) {//w w  w.j  av  a  2 s  . co  m
        }

        public void acceptInterface(char[] packageName, char[] simpleTypeName, char[][] enclosingTypeNames,
                String path) {
        }
    };
    int matchRule = SearchPattern.R_EXACT_MATCH | SearchPattern.R_CASE_SENSITIVE;

    new SearchEngine().searchAllTypeNames(null, null, matchRule, IJavaSearchConstants.CLASS,
            SearchEngine.createWorkspaceScope(), requestor, IJavaSearchConstants.WAIT_UNTIL_READY_TO_SEARCH,
            null);

}