|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation
org.aspectj.org.eclipse.jdt.internal.core.CreatePackageFragmentOperation
public class CreatePackageFragmentOperation
This operation creates a new package fragment under a given package fragment root. The following must be specified:
Any needed folders/package fragments are created.
If the package fragment already exists, this operation has no effect.
The result elements include the IPackageFragment created and any side effect
package fragments that were created.
NOTE: A default package fragment exists by default for a given root.
Possible exception conditions:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaModelOperation |
|---|
JavaModelOperation.IPostAction |
| Field Summary | |
|---|---|
protected java.lang.String[] |
pkgName
The fully qualified, dot-delimited, package name. |
| 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 | |
|---|---|
CreatePackageFragmentOperation(IPackageFragmentRoot parentElement,
java.lang.String packageName,
boolean force)
When executed, this operation will create a package fragment with the given name under the given package fragment root. |
|
| Method Summary | |
|---|---|
protected void |
executeOperation()
Execute the operation - creates the new package fragment and any side effect package fragments. |
protected ISchedulingRule |
getSchedulingRule()
|
IJavaModelStatus |
verify()
Possible failures: NO_ELEMENTS_TO_PROCESS - the root supplied to the operation is null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String[] pkgName
| Constructor Detail |
|---|
public CreatePackageFragmentOperation(IPackageFragmentRoot parentElement,
java.lang.String packageName,
boolean force)
| Method Detail |
|---|
protected void executeOperation()
throws JavaModelException
executeOperation in class JavaModelOperationJavaModelException - if the operation is unable to completeprotected ISchedulingRule getSchedulingRule()
getSchedulingRule in class JavaModelOperationpublic IJavaModelStatus verify()
null.
null or is not a valid package fragment name.
verify in class JavaModelOperationIJavaModelStatus,
JavaConventions
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||