### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: model/org/eclipse/jdt/internal/core/CopyElementsOperation.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CopyElementsOperation.java,v retrieving revision 1.38 diff -u -r1.38 CopyElementsOperation.java --- model/org/eclipse/jdt/internal/core/CopyElementsOperation.java 27 Jun 2008 16:03:50 -0000 1.38 +++ model/org/eclipse/jdt/internal/core/CopyElementsOperation.java 23 Jul 2009 05:55:02 -0000 @@ -242,7 +242,7 @@ *
  • INVALID_DESTINATION - The destination parent specified for element * is of an incompatible type. The destination for a package declaration or import declaration must * be a compilation unit; the destination for a type must be a type or compilation - * unit; the destinaion for any type member (other than a type) must be a type. When + * unit; the destination for any type member (other than a type) must be a type. When * this error occurs, the element provided in the operation status is the element. *
  • INVALID_NAME - the new name for element does not have valid syntax. * In this case the element and name are provided in the status. Index: model/org/eclipse/jdt/core/IJavaModelStatusConstants.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/IJavaModelStatusConstants.java,v retrieving revision 1.42 diff -u -r1.42 IJavaModelStatusConstants.java --- model/org/eclipse/jdt/core/IJavaModelStatusConstants.java 27 Jun 2008 16:04:01 -0000 1.42 +++ model/org/eclipse/jdt/core/IJavaModelStatusConstants.java 23 Jul 2009 05:55:01 -0000 @@ -132,7 +132,12 @@ /** * Status constant indicating that a destination provided for a copy/move/rename operation - * is invalid. + * is invalid. The destination for a package fragment must be a package fragment root; the + * destination for a compilation unit must be a package fragment; the destination for + * a package declaration or import declaration must be a compilation unit; the + * destination for a type must be a type or compilation unit; the destination for any + * type member (other than a type) must be a type.
    + * * The destination element can be retrieved using getElements on the status object. */ public static final int INVALID_DESTINATION = 978; Index: model/org/eclipse/jdt/core/ISourceManipulation.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/ISourceManipulation.java,v retrieving revision 1.12 diff -u -r1.12 ISourceManipulation.java --- model/org/eclipse/jdt/core/ISourceManipulation.java 27 Jun 2008 16:04:01 -0000 1.12 +++ model/org/eclipse/jdt/core/ISourceManipulation.java 23 Jul 2009 05:55:02 -0000 @@ -45,6 +45,7 @@ * * * @exception IllegalArgumentException if container is null + * @see org.eclipse.jdt.core.IJavaModelStatusConstants#INVALID_DESTINATION */ void copy(IJavaElement container, IJavaElement sibling, String rename, boolean replace, IProgressMonitor monitor) throws JavaModelException; /** @@ -88,6 +89,7 @@ * * * @exception IllegalArgumentException if container is null + * @see org.eclipse.jdt.core.IJavaModelStatusConstants#INVALID_DESTINATION */ void move(IJavaElement container, IJavaElement sibling, String rename, boolean replace, IProgressMonitor monitor) throws JavaModelException; /** Index: model/org/eclipse/jdt/core/IJavaModel.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/IJavaModel.java,v retrieving revision 1.28 diff -u -r1.28 IJavaModel.java --- model/org/eclipse/jdt/core/IJavaModel.java 27 Jun 2008 16:04:01 -0000 1.28 +++ model/org/eclipse/jdt/core/IJavaModel.java 23 Jul 2009 05:55:01 -0000 @@ -96,6 +96,7 @@ * name and replace has been specified as false (NAME_COLLISION)
  • *
  • A container or element is read-only (READ_ONLY)
  • * + * @see org.eclipse.jdt.core.IJavaModelStatusConstants#INVALID_DESTINATION */ void copy(IJavaElement[] elements, IJavaElement[] containers, IJavaElement[] siblings, String[] renamings, boolean replace, IProgressMonitor monitor) throws JavaModelException; /** @@ -201,6 +202,7 @@ * * * @exception IllegalArgumentException any element or container is null + * @see org.eclipse.jdt.core.IJavaModelStatusConstants#INVALID_DESTINATION */ void move(IJavaElement[] elements, IJavaElement[] containers, IJavaElement[] siblings, String[] renamings, boolean replace, IProgressMonitor monitor) throws JavaModelException;