diff options
Diffstat (limited to 'org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceRefElement.java')
-rw-r--r-- | org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceRefElement.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceRefElement.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceRefElement.java index 21f90e2084..240d906c83 100644 --- a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceRefElement.java +++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceRefElement.java @@ -31,7 +31,7 @@ public abstract class SourceRefElement extends JavaElement implements ISourceRef * that a duplicate named element exists. For example, if * there are two fields in a compilation unit with the * same name, the occurrence count is used to distinguish - * them. The occurrence count starts at 1 (thus the first + * them. The occurrence count starts at 1 (thus the first * occurrence is occurrence 1, not occurrence 0). */ public int occurrenceCount = 1; @@ -56,7 +56,7 @@ protected Object createElementInfo() { */ public void copy(IJavaElement container, IJavaElement sibling, String rename, boolean force, IProgressMonitor monitor) throws JavaModelException { if (container == null) { - throw new IllegalArgumentException(Messages.operation_nullContainer); + throw new IllegalArgumentException(Messages.operation_nullContainer); } IJavaElement[] elements= new IJavaElement[] {this}; IJavaElement[] containers= new IJavaElement[] {container}; @@ -182,7 +182,7 @@ public IOpenable getOpenableParent() { * @see IJavaElement */ public IPath getPath() { - return this.getParent().getPath(); + return getParent().getPath(); } /* * @see IJavaElement @@ -226,7 +226,7 @@ public IResource getUnderlyingResource() throws JavaModelException { return getParent().getUnderlyingResource(); } /** - * @see IParent + * @see IParent */ public boolean hasChildren() throws JavaModelException { return getChildren().length > 0; @@ -243,7 +243,7 @@ public boolean isStructureKnown() throws JavaModelException { */ public void move(IJavaElement container, IJavaElement sibling, String rename, boolean force, IProgressMonitor monitor) throws JavaModelException { if (container == null) { - throw new IllegalArgumentException(Messages.operation_nullContainer); + throw new IllegalArgumentException(Messages.operation_nullContainer); } IJavaElement[] elements= new IJavaElement[] {this}; IJavaElement[] containers= new IJavaElement[] {container}; @@ -262,10 +262,10 @@ public void move(IJavaElement container, IJavaElement sibling, String rename, bo */ public void rename(String newName, boolean force, IProgressMonitor monitor) throws JavaModelException { if (newName == null) { - throw new IllegalArgumentException(Messages.element_nullName); + throw new IllegalArgumentException(Messages.element_nullName); } IJavaElement[] elements= new IJavaElement[] {this}; - IJavaElement[] dests= new IJavaElement[] {this.getParent()}; + IJavaElement[] dests= new IJavaElement[] {getParent()}; String[] renamings= new String[] {newName}; getJavaModel().rename(elements, dests, renamings, force, monitor); } |