public class DeletePackageFragmentRootOperation extends JavaModelOperation
JavaModelOperation.IPostActionactions, 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 |
|---|
DeletePackageFragmentRootOperation(IPackageFragmentRoot root,
int updateResourceFlags,
int updateModelFlags) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deleteResource(IPackageFragmentRoot root,
IClasspathEntry rootEntry) |
protected void |
executeOperation()
Performs the operation specific behavior.
|
protected void |
updateProjectClasspath(IPath rootPath,
IJavaProject project,
java.util.Map oldRoots) |
protected void |
updateReferringProjectClasspaths(IPath rootPath,
IJavaProject projectOfRoot,
java.util.Map oldRoots) |
protected IJavaModelStatus |
verify()
Returns a status indicating if there is any known reason
this operation will fail.
|
addAction, addDelta, addReconcileDelta, applyTextEdit, beginTask, canModifyRoots, checkCanceled, commonVerify, copyResources, createFile, createFolder, deleteEmptyPackageFragment, deleteResource, deleteResources, done, equalsOneOf, executeNestedOperation, firstActionWithID, getAttribute, getCompilationUnitFor, getCurrentOperationStack, getDocument, getElementToProcess, getJavaModel, getNestedFolders, getParentElement, getParentElements, getResultElements, getSchedulingRule, getSubProgressMonitor, hasModifiedResource, internalWorked, isCanceled, isReadOnly, isTopLevelOperation, moveResources, newJavaElementDelta, popOperation, postAction, prefixesOneOf, pushOperation, removeAllPostAction, removeReconcileDelta, run, runOperation, runPostActions, setAttribute, setCanceled, setNested, setTaskName, subTask, workedpublic DeletePackageFragmentRootOperation(IPackageFragmentRoot root, int updateResourceFlags, int updateModelFlags)
protected void executeOperation()
throws JavaModelException
JavaModelOperationexecuteOperation in class JavaModelOperationJavaModelExceptionprotected void deleteResource(IPackageFragmentRoot root, IClasspathEntry rootEntry) throws JavaModelException
JavaModelExceptionprotected void updateReferringProjectClasspaths(IPath rootPath,
IJavaProject projectOfRoot,
java.util.Map oldRoots)
throws JavaModelException
JavaModelExceptionprotected void updateProjectClasspath(IPath rootPath,
IJavaProject project,
java.util.Map oldRoots)
throws JavaModelException
JavaModelExceptionprotected IJavaModelStatus verify()
JavaModelOperationverify in class JavaModelOperationIJavaModelStatus