Examples of IDLTKSearchScope


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

    DLTKSearchScopeFactory factory= DLTKSearchScopeFactory.getInstance();
    ScriptEditor editor= deeEditor;
   
    IScriptProject scriptProject = deeEditor.getInputModelElement().getScriptProject();
   
    IDLTKSearchScope scope;
    String description;
    boolean isInsideInterpreterEnvironment = isInsideInterpreterEnv(defunit, factory);
    if (editor != null) {
      scope= factory.createProjectSearchScope(editor.getEditorInput(), isInsideInterpreterEnvironment);
      description= factory.getProjectScopeDescription(editor.getEditorInput(), isInsideInterpreterEnvironment);
View Full Code Here

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

    IType type = (IType) DeeModelEngine.findCorrespondingModelElement(defunit, sourceModule);
    if (type == null) {
      return super.createQuery(defunit);
    }
    DLTKSearchScopeFactory factory = DLTKSearchScopeFactory.getInstance();
    IDLTKSearchScope scope = SearchEngine.createHierarchyScope(type);
    String description = factory.getHierarchyScopeDescription(type);
   
    DeeDefPatternLocator.GLOBAL_param_defunit = defunit;
    return new PatternQuerySpecification(
        defunit.getName(), 0, true, getLimitTo(), scope, description);
View Full Code Here

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

  protected QuerySpecification createQuery(INamedElement defunit) throws ModelException {
    DLTKSearchScopeFactory factory = DLTKSearchScopeFactory.getInstance();
   
    boolean isInsideInterpreterEnvironment = isInsideInterpreterEnv(defunit, factory);
   
    IDLTKSearchScope scope = factory.createWorkspaceScope(isInsideInterpreterEnvironment, getLanguageToolkit());
    String description = factory.getWorkspaceScopeDescription(isInsideInterpreterEnvironment);
   
    DeeDefPatternLocator.GLOBAL_param_defunit = defunit;
    return new PatternQuerySpecification(
        defunit.getName(), 0, true, getLimitTo(), scope, description);
View Full Code Here

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

      workingSets= factory.queryWorkingSets();
      if (workingSets == null)
        return null;
    }
    SearchUtil.updateLRUWorkingSets(workingSets);
    IDLTKSearchScope scope= factory.createSearchScope(workingSets, true, getLanguageToolkit());
    String description= factory.getWorkingSetScopeDescription(workingSets, true);

    DeeDefPatternLocator.GLOBAL_param_defunit = defunit;
    return new PatternQuerySpecification(
        defunit.getName(), 0, true, getLimitTo(), scope, description);
View Full Code Here

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

    }
  }

  protected QuerySpecification createQuery(INamedElement defunit) throws ModelException {
    DLTKSearchScopeFactory factory= DLTKSearchScopeFactory.getInstance();
    IDLTKSearchScope scope= factory.createWorkspaceScope(true, getLanguageToolkit());
    String description= factory.getWorkspaceScopeDescription(true);
   
    DeeDefPatternLocator.GLOBAL_param_defunit = defunit;
    return new PatternQuerySpecification(
        defunit.getName(), 0, true, getLimitTo(), scope, description);
View Full Code Here

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

      SearchRequestorResultCollector requestor) throws CoreException {
    assertNotNull(searchPattern);
   
    SearchEngine engine = new SearchEngine();
    SearchParticipant defaultSearchParticipant = SearchEngine.getDefaultSearchParticipant();
    IDLTKSearchScope scope = SearchEngine.createSearchScope(searchProj);
   
    engine.search(searchPattern, array(defaultSearchParticipant), scope, requestor, new NullProgressMonitor());
    return requestor;
  }
View Full Code Here

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

  }

  protected IType[] getSuperTypes() {
    if (superTypes == null) {
      if (elements != null && elements.length > 0) {
        IDLTKSearchScope scope = SearchEngine
            .createSearchScope(elements[0].getScriptProject());

        Set<String> superTypeNames = new HashSet<String>();
        for (IModelElement element : elements) {
          IType type = (IType) element;
View Full Code Here

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

        fileName = ((DBGpStackFrame) object).getQualifiedFile();
      }

      if (fileName != null) {
        HandleFactory fac = new HandleFactory();
        IDLTKSearchScope scope = SearchEngine
            .createWorkspaceScope(PHPLanguageToolkit.getDefault());
        IPath localPath = EnvironmentPathUtils.getFile(
            LocalEnvironment.getInstance(), new Path(fileName))
            .getFullPath();
        Openable openable = fac.createOpenable(localPath.toString(),
View Full Code Here

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

    return version.isGreaterThan(PHPVersion.PHP5);
  }

  protected Object[] getAllNamespaces(final IScriptProject project)
      throws ModelException {
    IDLTKSearchScope scope = SearchEngine.createSearchScope(project,
        IDLTKSearchScope.SOURCES);
    IType[] namespaces = PhpModelAccess.getDefault().findTypes(null,
        MatchRule.PREFIX, Modifiers.AccNameSpace, 0, scope, null);
    Map<String, List<IType>> aggregated = new HashMap<String, List<IType>>();
    for (IType ns : namespaces) {
View Full Code Here

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

  }

  protected List<IType> collectNamespaces(IModelElement create)
      throws ModelException {

    IDLTKSearchScope scope = SearchEngine.createSearchScope(create,
        IDLTKSearchScope.SOURCES);
    IType[] namespaces = PhpModelAccess.getDefault().findTypes(null,
        MatchRule.PREFIX, Modifiers.AccNameSpace, 0, scope, null);
    Map<String, List<IType>> aggregated = new HashMap<String, List<IType>>();
    for (IType ns : namespaces) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.