Package org.eclipse.dltk.core.search

Examples of org.eclipse.dltk.core.search.IDLTKSearchScope


    public void runTest() throws Throwable {
      final PhpModelAccess modelAccess = PhpModelAccess.getDefault();
      IProject project = getProject(map.get(PROJECT).toString());

      IScriptProject scriptProject = DLTKCore.create(project);
      final IDLTKSearchScope scope = SearchEngine
          .createSearchScope(scriptProject);
      modelAccess.findFields("", MatchRule.PREFIX, Modifiers.AccGlobal,
          0, scope, null);
      perfMonitor.execute(getProjectNameWithVersion(map)
          + ".testSearchGlobalVariables", new Operation() {
View Full Code Here


    public void runTest() throws Throwable {
      final PhpModelAccess modelAccess = PhpModelAccess.getDefault();
      IProject project = getProject(map.get(PROJECT).toString());

      IScriptProject scriptProject = DLTKCore.create(project);
      final IDLTKSearchScope scope = SearchEngine
          .createSearchScope(scriptProject);
      modelAccess.findIncludes("", MatchRule.PREFIX, scope, null);
      perfMonitor.execute(getProjectNameWithVersion(map)
          + ".testSearchIncludeStatements", new Operation() {
        public void run() throws Exception {
View Full Code Here

    public void runTest() throws Throwable {
      IProject project = getProject(map.get(PROJECT).toString());

      IScriptProject scriptProject = DLTKCore.create(project);
      final IDLTKSearchScope scope = SearchEngine
          .createSearchScope(scriptProject);
      final IType[] exceptionType = PhpModelAccess.getDefault()
          .findTypes(map.get(TYPE).toString(), MatchRule.EXACT, 0, 0,
              scope, null);
View Full Code Here

    public void runTest() throws Throwable {
      IProject project = getProject(map.get(PROJECT).toString());

      IScriptProject scriptProject = DLTKCore.create(project);
      final IDLTKSearchScope scope = SearchEngine
          .createSearchScope(scriptProject);
      final IType[] exceptionType = PhpModelAccess.getDefault()
          .findTypes(map.get(TYPE).toString(), MatchRule.EXACT, 0, 0,
              scope, null);
View Full Code Here

    project = null;
  }

  public void testBcmath() {

    IDLTKSearchScope scope = createScope();

    IMethod[] allFunctions = PhpModelAccess.getDefault().findMethods(
        "bcsqrt", MatchRule.PREFIX, Modifiers.AccGlobal, 0, scope,
        new NullProgressMonitor());
View Full Code Here

  }

  private IDLTKSearchScope createScope() {
    IScriptProject scriptProject = DLTKCore.create(project);

    IDLTKSearchScope scope = SearchEngine.createSearchScope(scriptProject);
    return scope;
  }
View Full Code Here

    return scope;
  }

  public void testBz2() {

    IDLTKSearchScope scope = createScope();

    IMethod[] allFunctions = PhpModelAccess.getDefault().findMethods(
        "bzopen", MatchRule.PREFIX, Modifiers.AccGlobal, 0, scope,
        new NullProgressMonitor());
View Full Code Here

    assert (allFunctions.length > 0);
  }

  public void testCalendar() {

    IDLTKSearchScope scope = createScope();

    IMethod[] allFunctions = PhpModelAccess.getDefault().findMethods(
        "jdtogregorian", MatchRule.PREFIX, Modifiers.AccGlobal, 0,
        scope, new NullProgressMonitor());
View Full Code Here

    assert (allFunctions.length > 0);
  }

  public void testCtype() {

    IDLTKSearchScope scope = createScope();

    IMethod[] allFunctions = PhpModelAccess.getDefault().findMethods(
        "ctype_alnum", MatchRule.PREFIX, Modifiers.AccGlobal, 0, scope,
        new NullProgressMonitor());
View Full Code Here

    assert (allFunctions.length > 0);
  }

  public void testCurl() {

    IDLTKSearchScope scope = createScope();

    IMethod[] allFunctions = PhpModelAccess.getDefault().findMethods(
        "curl_init", MatchRule.PREFIX, Modifiers.AccGlobal, 0, scope,
        new NullProgressMonitor());
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.core.search.IDLTKSearchScope

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.