Package org.eclipse.dltk.core.search

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


    assert (allFunctions.length > 0);
  }

  public void testTokenizer() {

    IDLTKSearchScope scope = createScope();

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


    assert (allFunctions.length > 0);
  }

  public void testXml() {

    IDLTKSearchScope scope = createScope();

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

    assert (allFunctions.length > 0);
  }

  public void testXmlreader() {

    IDLTKSearchScope scope = createScope();

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

    assert (allFunctions.length > 0);
  }

  public void testXmlwriter() {

    IDLTKSearchScope scope = createScope();

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

    assert (allFunctions.length > 0);
  }

  public void testXsl() {

    IDLTKSearchScope scope = createScope();

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

    assert (allFunctions.length > 0);
  }

  public void testZip() {

    IDLTKSearchScope scope = createScope();

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

    assert (allFunctions.length > 0);
  }

  public void testZlib() {

    IDLTKSearchScope scope = createScope();

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

  protected static List<String> getSelection(String data) throws Exception {
    createFile(data);
    ISourceModule sourceModule = DLTKCore.createSourceModuleFrom(testFile);

    IDLTKSearchScope scope = SearchEngine.createSearchScope(sourceModule,
        getSearchFlags(false));
    ISearchEngine searchEngine = ModelAccess.getSearchEngine(scope
        .getLanguageToolkit());
    final List<String> paths = new ArrayList<String>();
    if (searchEngine != null) {
      ISearchRequestor requestor = new ISearchRequestor() {
        public void match(int elementType, int flags, int offset,
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.findTypes("", MatchRule.PREFIX, 0, 0, scope, null);
      perfMonitor.execute(getProjectNameWithVersion(map)
          + ".testSearchAllTypes", new Operation() {
        public void run() throws Exception {
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.findMethods("", MatchRule.PREFIX, Modifiers.AccGlobal,
          0, scope, null);
      perfMonitor.execute(getProjectNameWithVersion(map)
          + ".testSearchAllFunctions", new Operation() {
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.