View | Details | Raw Unified | Return to bug 133911 | Differences between
and this patch

Collapse All | Expand All

(-)model/org/eclipse/jdt/internal/core/CopyElementsOperation.java (-1 / +1 lines)
Lines 242-248 Link Here
242
 *	<li>INVALID_DESTINATION - The destination parent specified for <code>element</code>
242
 *	<li>INVALID_DESTINATION - The destination parent specified for <code>element</code>
243
 *		is of an incompatible type. The destination for a package declaration or import declaration must
243
 *		is of an incompatible type. The destination for a package declaration or import declaration must
244
 *		be a compilation unit; the destination for a type must be a type or compilation
244
 *		be a compilation unit; the destination for a type must be a type or compilation
245
 *		unit; the destinaion for any type member (other than a type) must be a type. When
245
 *		unit; the destination for any type member (other than a type) must be a type. When
246
 *		this error occurs, the element provided in the operation status is the <code>element</code>.
246
 *		this error occurs, the element provided in the operation status is the <code>element</code>.
247
 *	<li>INVALID_NAME - the new name for <code>element</code> does not have valid syntax.
247
 *	<li>INVALID_NAME - the new name for <code>element</code> does not have valid syntax.
248
 *      In this case the element and name are provided in the status.
248
 *      In this case the element and name are provided in the status.
(-)model/org/eclipse/jdt/core/IJavaModelStatusConstants.java (-1 / +6 lines)
Lines 132-138 Link Here
132
132
133
	/**
133
	/**
134
	 * Status constant indicating that a destination provided for a copy/move/rename operation
134
	 * Status constant indicating that a destination provided for a copy/move/rename operation
135
	 * is invalid.
135
	 * is invalid. The destination for a package fragment must be a package fragment root; the 
136
	 * destination for a compilation unit must be a package fragment; the destination for 
137
	 * a package declaration or import declaration must be a compilation unit; the 
138
	 * destination for a type must be a type or compilation unit; the destination for any 
139
	 * type member (other than a type) must be a type. <br>
140
	 * 
136
	 * The destination element can be retrieved using <code>getElements</code> on the status object.
141
	 * The destination element can be retrieved using <code>getElements</code> on the status object.
137
	 */
142
	 */
138
	public static final int INVALID_DESTINATION = 978;
143
	public static final int INVALID_DESTINATION = 978;
(-)model/org/eclipse/jdt/core/ISourceManipulation.java (+2 lines)
Lines 45-50 Link Here
45
 * </ul>
45
 * </ul>
46
 *
46
 *
47
 * @exception IllegalArgumentException if container is <code>null</code>
47
 * @exception IllegalArgumentException if container is <code>null</code>
48
 * @see org.eclipse.jdt.core.IJavaModelStatusConstants#INVALID_DESTINATION
48
 */
49
 */
49
void copy(IJavaElement container, IJavaElement sibling, String rename, boolean replace, IProgressMonitor monitor) throws JavaModelException;
50
void copy(IJavaElement container, IJavaElement sibling, String rename, boolean replace, IProgressMonitor monitor) throws JavaModelException;
50
/**
51
/**
Lines 88-93 Link Here
88
 * </ul>
89
 * </ul>
89
 *
90
 *
90
 * @exception IllegalArgumentException if container is <code>null</code>
91
 * @exception IllegalArgumentException if container is <code>null</code>
92
 * @see org.eclipse.jdt.core.IJavaModelStatusConstants#INVALID_DESTINATION
91
 */
93
 */
92
void move(IJavaElement container, IJavaElement sibling, String rename, boolean replace, IProgressMonitor monitor) throws JavaModelException;
94
void move(IJavaElement container, IJavaElement sibling, String rename, boolean replace, IProgressMonitor monitor) throws JavaModelException;
93
/**
95
/**
(-)model/org/eclipse/jdt/core/IJavaModel.java (+2 lines)
Lines 96-101 Link Here
96
 * 		name and <code>replace</code> has been specified as <code>false</code> (<code>NAME_COLLISION</code>)</li>
96
 * 		name and <code>replace</code> has been specified as <code>false</code> (<code>NAME_COLLISION</code>)</li>
97
 * <li> A container or element is read-only (<code>READ_ONLY</code>) </li>
97
 * <li> A container or element is read-only (<code>READ_ONLY</code>) </li>
98
 * </ul>
98
 * </ul>
99
 * @see org.eclipse.jdt.core.IJavaModelStatusConstants#INVALID_DESTINATION
99
 */
100
 */
100
void copy(IJavaElement[] elements, IJavaElement[] containers, IJavaElement[] siblings, String[] renamings, boolean replace, IProgressMonitor monitor) throws JavaModelException;
101
void copy(IJavaElement[] elements, IJavaElement[] containers, IJavaElement[] siblings, String[] renamings, boolean replace, IProgressMonitor monitor) throws JavaModelException;
101
/**
102
/**
Lines 201-206 Link Here
201
 * </ul>
202
 * </ul>
202
 *
203
 *
203
 * @exception IllegalArgumentException any element or container is <code>null</code>
204
 * @exception IllegalArgumentException any element or container is <code>null</code>
205
 * @see org.eclipse.jdt.core.IJavaModelStatusConstants#INVALID_DESTINATION
204
 */
206
 */
205
void move(IJavaElement[] elements, IJavaElement[] containers, IJavaElement[] siblings, String[] renamings, boolean replace, IProgressMonitor monitor) throws JavaModelException;
207
void move(IJavaElement[] elements, IJavaElement[] containers, IJavaElement[] siblings, String[] renamings, boolean replace, IProgressMonitor monitor) throws JavaModelException;
206
208

Return to bug 133911