Lines 49-55
Link Here
|
49 |
* <p> |
49 |
* <p> |
50 |
* This interface is not intended to be implemented by clients. |
50 |
* This interface is not intended to be implemented by clients. |
51 |
* </p> |
51 |
* </p> |
52 |
* @deprecated Use <code>ICompilationUnit</code>instead |
52 |
* @deprecated Use {@link ICompilationUnit} instead |
53 |
*/ |
53 |
*/ |
54 |
public interface IWorkingCopy { |
54 |
public interface IWorkingCopy { |
55 |
|
55 |
|
Lines 81-86
Link Here
|
81 |
* <li> This element is not a working copy (INVALID_ELEMENT_TYPES) |
81 |
* <li> This element is not a working copy (INVALID_ELEMENT_TYPES) |
82 |
* <li> A update conflict (described above) (UPDATE_CONFLICT) |
82 |
* <li> A update conflict (described above) (UPDATE_CONFLICT) |
83 |
* </ul> |
83 |
* </ul> |
|
|
84 |
* @deprecated Use {@link ICompilationUnit#commitWorkingCopy(boolean, IProgressMonitor)} instead. |
84 |
*/ |
85 |
*/ |
85 |
void commit(boolean force, IProgressMonitor monitor) throws JavaModelException; |
86 |
void commit(boolean force, IProgressMonitor monitor) throws JavaModelException; |
86 |
|
87 |
|
Lines 97-102
Link Here
|
97 |
* When it is destroyed, a REMOVED IJavaElementDelta is reported on this |
98 |
* When it is destroyed, a REMOVED IJavaElementDelta is reported on this |
98 |
* working copy. |
99 |
* working copy. |
99 |
* </p> |
100 |
* </p> |
|
|
101 |
* @deprecated Use {@link ICompilationUnit#discardWorkingCopy()} instead. |
100 |
*/ |
102 |
*/ |
101 |
void destroy(); |
103 |
void destroy(); |
102 |
|
104 |
|
Lines 111-116
Link Here
|
111 |
* @return the found shared working copy for this element, <code>null</code> if none |
113 |
* @return the found shared working copy for this element, <code>null</code> if none |
112 |
* @see IBufferFactory |
114 |
* @see IBufferFactory |
113 |
* @since 2.0 |
115 |
* @since 2.0 |
|
|
116 |
* |
117 |
* @deprecated Use {@link ICompilationUnit#findWorkingCopy(WorkingCopyOwner)} instead. |
114 |
*/ |
118 |
*/ |
115 |
IJavaElement findSharedWorkingCopy(IBufferFactory bufferFactory); |
119 |
IJavaElement findSharedWorkingCopy(IBufferFactory bufferFactory); |
116 |
|
120 |
|
Lines 122-127
Link Here
|
122 |
* @param workingCopyElement the specified working copy element |
126 |
* @param workingCopyElement the specified working copy element |
123 |
* @return the original element the specified working copy element was created from, |
127 |
* @return the original element the specified working copy element was created from, |
124 |
* or <code>null</code> if this is not a working copy element |
128 |
* or <code>null</code> if this is not a working copy element |
|
|
129 |
* |
130 |
* @deprecated Use {@link IJavaElement#getPrimaryElement()} instead. |
125 |
*/ |
131 |
*/ |
126 |
IJavaElement getOriginal(IJavaElement workingCopyElement); |
132 |
IJavaElement getOriginal(IJavaElement workingCopyElement); |
127 |
|
133 |
|
Lines 131-136
Link Here
|
131 |
* |
137 |
* |
132 |
* @return the original element this working copy was created from, |
138 |
* @return the original element this working copy was created from, |
133 |
* or <code>null</code> if this is not a working copy |
139 |
* or <code>null</code> if this is not a working copy |
|
|
140 |
* |
141 |
* @deprecated Use {@link ICompilationUnit#findPrimaryType()} instead. |
134 |
*/ |
142 |
*/ |
135 |
IJavaElement getOriginalElement(); |
143 |
IJavaElement getOriginalElement(); |
136 |
|
144 |
|
Lines 152-157
Link Here
|
152 |
* @param element the given element |
160 |
* @param element the given element |
153 |
* @return the found elements in this compilation unit that correspond to the given element |
161 |
* @return the found elements in this compilation unit that correspond to the given element |
154 |
* @since 2.0 |
162 |
* @since 2.0 |
|
|
163 |
* |
164 |
* @deprecated Use {@link ICompilationUnit#findElements(IJavaElement)} instead. |
155 |
*/ |
165 |
*/ |
156 |
IJavaElement[] findElements(IJavaElement element); |
166 |
IJavaElement[] findElements(IJavaElement element); |
157 |
|
167 |
|
Lines 161-166
Link Here
|
161 |
* |
171 |
* |
162 |
* @return the found primary type of this compilation unit, or <code>null</code> if no such a type exists |
172 |
* @return the found primary type of this compilation unit, or <code>null</code> if no such a type exists |
163 |
* @since 2.0 |
173 |
* @since 2.0 |
|
|
174 |
* |
175 |
* @deprecated Use {@link ICompilationUnit#findPrimaryType()} instead. |
164 |
*/ |
176 |
*/ |
165 |
IType findPrimaryType(); |
177 |
IType findPrimaryType(); |
166 |
|
178 |
|
Lines 202-207
Link Here
|
202 |
* @see IBufferFactory |
214 |
* @see IBufferFactory |
203 |
* @see IProblemRequestor |
215 |
* @see IProblemRequestor |
204 |
* @since 2.0 |
216 |
* @since 2.0 |
|
|
217 |
* |
218 |
* @deprecated Use {@link ICompilationUnit#getWorkingCopy(WorkingCopyOwner, IProblemRequestor, IProgressMonitor)} instead. |
205 |
*/ |
219 |
*/ |
206 |
IJavaElement getSharedWorkingCopy( |
220 |
IJavaElement getSharedWorkingCopy( |
207 |
IProgressMonitor monitor, |
221 |
IProgressMonitor monitor, |
Lines 227-232
Link Here
|
227 |
* not be determined. |
241 |
* not be determined. |
228 |
* @return a new working copy of this element if this element is not |
242 |
* @return a new working copy of this element if this element is not |
229 |
* a working copy, or this element if this element is already a working copy |
243 |
* a working copy, or this element if this element is already a working copy |
|
|
244 |
* |
245 |
* @deprecated Use {@link ICompilationUnit#getWorkingCopy(IProgressMonitor)} instead. |
230 |
*/ |
246 |
*/ |
231 |
IJavaElement getWorkingCopy() throws JavaModelException; |
247 |
IJavaElement getWorkingCopy() throws JavaModelException; |
232 |
|
248 |
|
Lines 260-265
Link Here
|
260 |
* @return a new working copy of this element using the given factory to create |
276 |
* @return a new working copy of this element using the given factory to create |
261 |
* the buffer, or this element if this element is already a working copy |
277 |
* the buffer, or this element if this element is already a working copy |
262 |
* @since 2.0 |
278 |
* @since 2.0 |
|
|
279 |
* |
280 |
* @deprecated Use {@link ICompilationUnit#getWorkingCopy(WorkingCopyOwner, IProblemRequestor, IProgressMonitor)} instead. |
263 |
*/ |
281 |
*/ |
264 |
IJavaElement getWorkingCopy( |
282 |
IJavaElement getWorkingCopy( |
265 |
IProgressMonitor monitor, |
283 |
IProgressMonitor monitor, |
Lines 274-279
Link Here
|
274 |
* @param resource this working copy's resource |
292 |
* @param resource this working copy's resource |
275 |
* @return true if this working copy's original element's content |
293 |
* @return true if this working copy's original element's content |
276 |
* has not changed since the inception of this working copy, false otherwise |
294 |
* has not changed since the inception of this working copy, false otherwise |
|
|
295 |
* |
296 |
* @deprecated Use {@link ICompilationUnit#hasResourceChanged()} instead. |
277 |
*/ |
297 |
*/ |
278 |
boolean isBasedOn(IResource resource); |
298 |
boolean isBasedOn(IResource resource); |
279 |
|
299 |
|
Lines 281-286
Link Here
|
281 |
* Returns whether this element is a working copy. |
301 |
* Returns whether this element is a working copy. |
282 |
* |
302 |
* |
283 |
* @return true if this element is a working copy, false otherwise |
303 |
* @return true if this element is a working copy, false otherwise |
|
|
304 |
* |
305 |
* @deprecated Use {@link ICompilationUnit#isWorkingCopy()} instead. |
284 |
*/ |
306 |
*/ |
285 |
boolean isWorkingCopy(); |
307 |
boolean isWorkingCopy(); |
286 |
|
308 |
|
Lines 307-312
Link Here
|
307 |
* <li> The original Java element does not exist (ELEMENT_DOES_NOT_EXIST)</li> |
329 |
* <li> The original Java element does not exist (ELEMENT_DOES_NOT_EXIST)</li> |
308 |
* </ul> |
330 |
* </ul> |
309 |
* @return <code>null</code> |
331 |
* @return <code>null</code> |
|
|
332 |
* |
333 |
* @deprecated Use {@link ICompilationUnit#reconcile(int, boolean, WorkingCopyOwner, IProgressMonitor)} instead. |
310 |
*/ |
334 |
*/ |
311 |
IMarker[] reconcile() throws JavaModelException; |
335 |
IMarker[] reconcile() throws JavaModelException; |
312 |
|
336 |
|
Lines 336-341
Link Here
|
336 |
* <li> The original Java element does not exist (ELEMENT_DOES_NOT_EXIST)</li> |
360 |
* <li> The original Java element does not exist (ELEMENT_DOES_NOT_EXIST)</li> |
337 |
* </ul> |
361 |
* </ul> |
338 |
* @since 2.0 |
362 |
* @since 2.0 |
|
|
363 |
* |
364 |
* @deprecated Use {@link ICompilationUnit#reconcile(int, boolean, WorkingCopyOwner, IProgressMonitor)} instead. |
339 |
*/ |
365 |
*/ |
340 |
void reconcile(boolean forceProblemDetection, IProgressMonitor monitor) throws JavaModelException; |
366 |
void reconcile(boolean forceProblemDetection, IProgressMonitor monitor) throws JavaModelException; |
341 |
|
367 |
|
Lines 352-357
Link Here
|
352 |
* <ul> |
378 |
* <ul> |
353 |
* <li> The original Java element does not exist (ELEMENT_DOES_NOT_EXIST)</li> |
379 |
* <li> The original Java element does not exist (ELEMENT_DOES_NOT_EXIST)</li> |
354 |
* </ul> |
380 |
* </ul> |
|
|
381 |
* @deprecated Use {@link ICompilationUnit#restore()} instead. |
355 |
*/ |
382 |
*/ |
356 |
void restore() throws JavaModelException; |
383 |
void restore() throws JavaModelException; |
357 |
} |
384 |
} |