org.aspectj.org.eclipse.jdt.internal.core
Class SetClasspathOperation

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation
      extended by org.aspectj.org.eclipse.jdt.internal.core.ChangeClasspathOperation
          extended by org.aspectj.org.eclipse.jdt.internal.core.SetClasspathOperation

public class SetClasspathOperation
extends ChangeClasspathOperation

This operation sets an IJavaProject's classpath.

See Also:
IJavaProject

Nested Class Summary
 
Nested classes/interfaces inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation
JavaModelOperation.IPostAction
 
Field Summary
 
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.ChangeClasspathOperation
canChangeResources
 
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation
actions, actionsEnd, actionsStart, APPEND, attributes, elementsToProcess, force, HAS_MODIFIED_RESOURCE_ATTR, isNested, KEEP_EXISTING, NO_ELEMENTS, OPERATION_STACKS, parentElements, POST_ACTION_VERBOSE, progressMonitor, REMOVEALL_APPEND, resultElements, TRUE
 
Constructor Summary
SetClasspathOperation(JavaProject project, IClasspathEntry[] newRawClasspath, IClasspathEntry[] referencedEntries, IPath newOutputLocation, boolean canChangeResource)
          When executed, this operation sets the raw classpath and output location of the given project.
SetClasspathOperation(JavaProject project, IClasspathEntry[] newRawClasspath, IPath newOutputLocation, boolean canChangeResource)
           
 
Method Summary
protected  void executeOperation()
          Sets the classpath of the pre-specified project.
protected  ISchedulingRule getSchedulingRule()
           
 java.lang.String toString()
           
 IJavaModelStatus verify()
          Returns a status indicating if there is any known reason this operation will fail.
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.ChangeClasspathOperation
canModifyRoots, classpathChanged, isReadOnly
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation
addAction, addDelta, addReconcileDelta, applyTextEdit, beginTask, checkCanceled, commonVerify, copyResources, createFile, createFolder, deleteEmptyPackageFragment, deleteResource, deleteResources, done, equalsOneOf, executeNestedOperation, firstActionWithID, getAttribute, getCompilationUnitFor, getCurrentOperationStack, getDocument, getElementToProcess, getJavaModel, getNestedFolders, getParentElement, getParentElements, getResultElements, getSubProgressMonitor, hasModifiedResource, internalWorked, isCanceled, isTopLevelOperation, moveResources, newJavaElementDelta, popOperation, postAction, prefixesOneOf, pushOperation, removeAllPostAction, removeReconcileDelta, run, runOperation, runPostActions, setAttribute, setCanceled, setNested, setTaskName, subTask, worked
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetClasspathOperation

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

SetClasspathOperation

public SetClasspathOperation(JavaProject project,
                             IClasspathEntry[] newRawClasspath,
                             IClasspathEntry[] referencedEntries,
                             IPath newOutputLocation,
                             boolean canChangeResource)
When executed, this operation sets the raw classpath and output location of the given project.

Method Detail

executeOperation

protected void executeOperation()
                         throws JavaModelException
Sets the classpath of the pre-specified project.

Specified by:
executeOperation in class JavaModelOperation
Throws:
JavaModelException

getSchedulingRule

protected ISchedulingRule getSchedulingRule()
Overrides:
getSchedulingRule in class ChangeClasspathOperation

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

verify

public IJavaModelStatus verify()
Description copied from class: JavaModelOperation
Returns a status indicating if there is any known reason this operation will fail. Operations are verified before they are run. Subclasses must override if they have any conditions to verify before this operation executes.

Overrides:
verify in class JavaModelOperation
See Also:
IJavaModelStatus