blob: 953874f74e63ab7c38a6548f4523c8bc105c3edf [file] [log] [blame]
package org.eclipse.jst.common.jdt.internal.javalite;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.IPath;
import org.eclipse.jdt.core.IClasspathEntry;
import org.eclipse.jdt.core.IJavaModel;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.JavaCore;
/**
* <p>
* Represents a scaled down version of an {@link IJavaProject}. This subset of
* methods is guaranteed to not force a load of the underlying
* {@link IJavaModel}. This enables safe access to a limited set of
* {@link IJavaProject} API for multi-threaded clients to call during times of
* extreme concurrency, e.g. workbench startup.
* </p>
* <p>
* An instance of one of these handles can be created via
* <code>JavaCoreLite.create(project)</code>.
* </p>
*
* @see JavaCore#create(org.eclipse.core.resources.IProject)
* @see IJavaProject
* @see IClasspathEntry
*/
public interface IJavaProjectLite {
/**
* @see IJavaProject#readRawClasspath()
*
* @return
*/
IClasspathEntry[] readRawClasspath();
/**
* @see IJavaProject#readOutputLocation()
*
* @return
*/
IPath readOutputLocation();
/**
* @see IJavaProject#getProject()
*
* @return
*/
IProject getProject();
/**
* @see IJavaProject#isOpen()
* @return
*/
boolean isOpen();
/**
* @see IJavaProject#hasBuildState()
* @return
*/
public boolean hasBuildState();
}