### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core 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 21 Jul 2009 10:28:26 -0000 @@ -89,7 +89,12 @@ *
  • There is no element to process (NO_ELEMENTS_TO_PROCESS). The given elements is null or empty
  • *
  • A specified element, container, or sibling does not exist (ELEMENT_DOES_NOT_EXIST)
  • *
  • A CoreException occurred while updating an underlying resource
  • - *
  • A container is of an incompatible type (INVALID_DESTINATION)
  • + *
  • INVALID_DESTINATION - A destination container specified is of an incompatible type. + * 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.
  • *
  • A sibling is not a child of it associated container (INVALID_SIBLING)
  • *
  • A new name is invalid (INVALID_NAME)
  • *
  • A child in its associated container already exists with the same @@ -201,6 +206,8 @@ * * * @exception IllegalArgumentException any element or container is null + * @see IJavaModel#copy(IJavaElement[], IJavaElement[], IJavaElement[], String[], boolean, IProgressMonitor) + * */ void move(IJavaElement[] elements, IJavaElement[] containers, IJavaElement[] siblings, String[] renamings, boolean replace, IProgressMonitor monitor) throws JavaModelException;