Example usage for org.eclipse.jdt.internal.core SetClasspathOperation SetClasspathOperation

List of usage examples for org.eclipse.jdt.internal.core SetClasspathOperation SetClasspathOperation

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.core SetClasspathOperation SetClasspathOperation.

Prototype

public SetClasspathOperation(JavaProject project, IClasspathEntry[] newRawClasspath,
        IClasspathEntry[] referencedEntries, IPath newOutputLocation, boolean canChangeResource) 

Source Link

Document

When executed, this operation sets the raw classpath and output location of the given project.

Usage

From source file:org.eclipse.jdt.internal.core.JavaProject.java

License:Open Source License

protected void setRawClasspath(IClasspathEntry[] newRawClasspath, IClasspathEntry[] referencedEntries,
        IPath newOutputLocation, boolean canModifyResources, IProgressMonitor monitor)
        throws JavaModelException {

    try {//from w  w  w  . j  ava  2 s.c om
        if (newRawClasspath == null) //are we already with the default classpath
            newRawClasspath = defaultClasspath();

        SetClasspathOperation op = new SetClasspathOperation(this, newRawClasspath, referencedEntries,
                newOutputLocation, canModifyResources);
        op.runOperation(monitor);
    } catch (JavaModelException e) {
        JavaModelManager.getJavaModelManager().getDeltaProcessor().flush();
        throw e;
    }
}