public class SetClasspathOperation extends ChangeClasspathOperation
IJavaProject's classpath.IJavaProjectJavaModelOperation.IPostActioncanChangeResourcesactions, 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 and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
canModifyRoots, classpathChanged, isReadOnlyaddAction, 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, workedpublic SetClasspathOperation(JavaProject project, IClasspathEntry[] newRawClasspath, IPath newOutputLocation, boolean canChangeResource)
public SetClasspathOperation(JavaProject project, IClasspathEntry[] newRawClasspath, IClasspathEntry[] referencedEntries, IPath newOutputLocation, boolean canChangeResource)
protected void executeOperation()
throws JavaModelException
executeOperation in class JavaModelOperationJavaModelExceptionprotected ISchedulingRule getSchedulingRule()
getSchedulingRule in class ChangeClasspathOperationpublic java.lang.String toString()
toString in class java.lang.Objectpublic IJavaModelStatus verify()
JavaModelOperationverify in class JavaModelOperationIJavaModelStatus