org.eclipse.xtext.common.types.xtext.ui
Class IntersectingJavaSearchScope

java.lang.Object
  extended by org.eclipse.xtext.common.types.xtext.ui.IntersectingJavaSearchScope
All Implemented Interfaces:
org.eclipse.jdt.core.search.IJavaSearchScope

public class IntersectingJavaSearchScope
extends java.lang.Object
implements org.eclipse.jdt.core.search.IJavaSearchScope

Author:
Sebastian Zarnekow - Initial contribution and API

Field Summary
 
Fields inherited from interface org.eclipse.jdt.core.search.IJavaSearchScope
APPLICATION_LIBRARIES, JAR_FILE_ENTRY_SEPARATOR, REFERENCED_PROJECTS, SOURCES, SYSTEM_LIBRARIES
 
Constructor Summary
IntersectingJavaSearchScope(org.eclipse.jdt.core.search.IJavaSearchScope... scopes)
           
 
Method Summary
 boolean encloses(org.eclipse.jdt.core.IJavaElement element)
          Checks whether this scope encloses the given element.
 boolean encloses(java.lang.String resourcePath)
          Checks whether the resource at the given path is enclosed by this scope.
 org.eclipse.core.runtime.IPath[] enclosingProjectsAndJars()
          Returns the paths to the enclosing projects and JARs for this search scope.
 boolean includesBinaries()
          Deprecated. 
 boolean includesClasspaths()
          Deprecated. 
 void setIncludesBinaries(boolean includesBinaries)
          Deprecated. 
 void setIncludesClasspaths(boolean includesClasspaths)
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntersectingJavaSearchScope

public IntersectingJavaSearchScope(org.eclipse.jdt.core.search.IJavaSearchScope... scopes)
Method Detail

encloses

public boolean encloses(java.lang.String resourcePath)
Description copied from interface: org.eclipse.jdt.core.search.IJavaSearchScope
Checks whether the resource at the given path is enclosed by this scope.

Specified by:
encloses in interface org.eclipse.jdt.core.search.IJavaSearchScope
Parameters:
resourcePath - if the resource is contained in a JAR file, the path is composed of 2 paths separated by JAR_FILE_ENTRY_SEPARATOR: the first path is the full OS path to the JAR (if it is an external JAR), or the workspace relative IPath to the JAR (if it is an internal JAR), the second path is the path to the resource inside the JAR.
Returns:
whether the resource is enclosed by this scope

encloses

public boolean encloses(org.eclipse.jdt.core.IJavaElement element)
Description copied from interface: org.eclipse.jdt.core.search.IJavaSearchScope
Checks whether this scope encloses the given element.

Specified by:
encloses in interface org.eclipse.jdt.core.search.IJavaSearchScope
Parameters:
element - the given element
Returns:
true if the element is in this scope

enclosingProjectsAndJars

public org.eclipse.core.runtime.IPath[] enclosingProjectsAndJars()
Description copied from interface: org.eclipse.jdt.core.search.IJavaSearchScope
Returns the paths to the enclosing projects and JARs for this search scope.

Specified by:
enclosingProjectsAndJars in interface org.eclipse.jdt.core.search.IJavaSearchScope
Returns:
an array of paths to the enclosing projects and JARS.

includesBinaries

@Deprecated
public boolean includesBinaries()
Deprecated. 

Description copied from interface: org.eclipse.jdt.core.search.IJavaSearchScope
Returns whether this scope contains any .class files (either in folders or within JARs).

Specified by:
includesBinaries in interface org.eclipse.jdt.core.search.IJavaSearchScope
Returns:
whether this scope contains any .class files

includesClasspaths

@Deprecated
public boolean includesClasspaths()
Deprecated. 

Description copied from interface: org.eclipse.jdt.core.search.IJavaSearchScope
Returns whether this scope includes classpaths defined by the projects of the resources of this search scope.

Specified by:
includesClasspaths in interface org.eclipse.jdt.core.search.IJavaSearchScope
Returns:
whether this scope includes classpaths

setIncludesBinaries

@Deprecated
public void setIncludesBinaries(boolean includesBinaries)
Deprecated. 

Description copied from interface: org.eclipse.jdt.core.search.IJavaSearchScope
Sets whether this scope contains any .class files (either in folders or within JARs).

Specified by:
setIncludesBinaries in interface org.eclipse.jdt.core.search.IJavaSearchScope
Parameters:
includesBinaries - whether this scope contains any .class files

setIncludesClasspaths

@Deprecated
public void setIncludesClasspaths(boolean includesClasspaths)
Deprecated. 

Description copied from interface: org.eclipse.jdt.core.search.IJavaSearchScope
Sets whether this scope includes the classpaths defined by the projects of the resources of this search scope.

Specified by:
setIncludesClasspaths in interface org.eclipse.jdt.core.search.IJavaSearchScope
Parameters:
includesClasspaths - whether this scope includes classpaths