Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2000, 2006 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2007 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 19-63
Link Here
|
19 |
* changed, and any children that have changed. |
19 |
* changed, and any children that have changed. |
20 |
* <p> |
20 |
* <p> |
21 |
* Deltas have a different status depending on the kind of change they represent. |
21 |
* Deltas have a different status depending on the kind of change they represent. |
22 |
* The list below summarizes each status (as returned by <code>getKind</code>) |
22 |
* The list below summarizes each status (as returned by {@link #getKind}) |
23 |
* and its meaning (see individual constants for a more detailled description): |
23 |
* and its meaning (see individual constants for a more detailled description): |
24 |
* <ul> |
24 |
* <ul> |
25 |
* <li><code>ADDED</code> - The element described by the delta has been added.</li> |
25 |
* <li>{@link #ADDED} - The element described by the delta has been added.</li> |
26 |
* <li><code>REMOVED</code> - The element described by the delta has been removed.</li> |
26 |
* <li>{@link #REMOVED} - The element described by the delta has been removed.</li> |
27 |
* <li><code>CHANGED</code> - The element described by the delta has been changed in some way. |
27 |
* <li>{@link #CHANGED} - The element described by the delta has been changed in some way. |
28 |
* Specification of the type of change is provided by <code>getFlags</code> which returns the following values: |
28 |
* Specification of the type of change is provided by {@link #getFlags} which returns the following values: |
29 |
* <ul> |
29 |
* <ul> |
30 |
* <li><code>F_ADDED_TO_CLASSPATH</code> - A classpath entry corresponding to the element |
30 |
* <li>{@link #F_ADDED_TO_CLASSPATH} - A classpath entry corresponding to the element |
31 |
* has been added to the project's classpath. This flag is only valid if the element is an |
31 |
* has been added to the project's classpath. This flag is only valid if the element is an |
32 |
* <code>IPackageFragmentRoot</code>.</li> |
32 |
* {@link IPackageFragmentRoot}.</li> |
33 |
* <li><code>F_ARCHIVE_CONTENT_CHANGED</code> - The contents of an archive |
33 |
* <li>{@link #F_ARCHIVE_CONTENT_CHANGED} - The contents of an archive |
34 |
* has changed in some way. This flag is only valid if the element is an <code>IPackageFragmentRoot</code> |
34 |
* has changed in some way. This flag is only valid if the element is an {@link IPackageFragmentRoot} |
35 |
* which is an archive.</li> |
35 |
* which is an archive.</li> |
36 |
* <li><code>F_CHILDREN</code> - A child of the element has changed in some way. This flag |
36 |
* <li>{@link #F_CHILDREN} - A child of the element has changed in some way. This flag |
37 |
* is only valid if the element is an <code>IParent</code>.</li> |
37 |
* is only valid if the element is an {@link IParent}.</li> |
38 |
* <li><code>F_CLASSPATH_REORDER</code> - A classpath entry corresponding to the element |
38 |
* <li>{@link #F_CLASSPATH_REORDER} - A classpath entry corresponding to the element |
39 |
* has changed position in the project's classpath. This flag is only valid if the element is an |
39 |
* has changed position in the project's classpath. This flag is only valid if the element is an |
40 |
* <code>IPackageFragmentRoot</code>.</li> |
40 |
* {@link IPackageFragmentRoot}.</li> |
41 |
* <li><code>F_CLOSED</code> - The underlying <code>IProject</code> |
41 |
* <li>{@link #F_CLOSED} - The underlying {@link org.eclipse.core.resources.IProject} |
42 |
* has been closed. This flag is only valid if the element is an <code>IJavaProject</code>.</li> |
42 |
* has been closed. This flag is only valid if the element is an {@link IJavaProject}.</li> |
43 |
* <li><code>F_CONTENT</code> - The contents of the element have been altered. This flag |
43 |
* <li>{@link #F_CONTENT} - The contents of the element have been altered. This flag |
44 |
* is only valid for elements which correspond to files.</li> |
44 |
* is only valid for elements which correspond to files.</li> |
45 |
*<li><code>F_FINE_GRAINED</code> - The delta is a fine-grained delta, that is, an analysis down |
45 |
*<li>{@link #F_FINE_GRAINED} - The delta is a fine-grained delta, that is, an analysis down |
46 |
* to the members level was done to determine if there were structural changes to members of the element.</li> |
46 |
* to the members level was done to determine if there were structural changes to members of the element.</li> |
47 |
* <li><code>F_MODIFIERS</code> - The modifiers on the element have changed in some way. |
47 |
* <li>{@link #F_MODIFIERS} - The modifiers on the element have changed in some way. |
48 |
* This flag is only valid if the element is an <code>IMember</code>.</li> |
48 |
* This flag is only valid if the element is an {@link IMember}.</li> |
49 |
* <li><code>F_OPENED</code> - The underlying <code>IProject</code> |
49 |
* <li>{@link #F_OPENED} - The underlying {@link org.eclipse.core.resources.IProject} |
50 |
* has been opened. This flag is only valid if the element is an <code>IJavaProject</code>.</li> |
50 |
* has been opened. This flag is only valid if the element is an {@link IJavaProject}.</li> |
51 |
* <li><code>F_REMOVED_FROM_CLASSPATH</code> - A classpath entry corresponding to the element |
51 |
* <li>{@link #F_REMOVED_FROM_CLASSPATH} - A classpath entry corresponding to the element |
52 |
* has been removed from the project's classpath. This flag is only valid if the element is an |
52 |
* has been removed from the project's classpath. This flag is only valid if the element is an |
53 |
* <code>IPackageFragmentRoot</code>.</li> |
53 |
* {@link IPackageFragmentRoot}.</li> |
54 |
* <li><code>F_SOURCEATTACHED</code> - The source attachment path or the source attachment root path |
54 |
* <li>{@link #F_SOURCEATTACHED} - The source attachment path or the source attachment root path |
55 |
* of a classpath entry corresponding to the element was added. This flag is only valid if the element is an |
55 |
* of a classpath entry corresponding to the element was added. This flag is only valid if the element is an |
56 |
* <code>IPackageFragmentRoot</code>.</li> |
56 |
* {@link IPackageFragmentRoot}.</li> |
57 |
* <li><code>F_SOURCEDETACHED</code> - The source attachment path or the source attachment root path |
57 |
* <li>{@link #F_SOURCEDETACHED} - The source attachment path or the source attachment root path |
58 |
* of a classpath entry corresponding to the element was removed. This flag is only valid if the element is an |
58 |
* of a classpath entry corresponding to the element was removed. This flag is only valid if the element is an |
59 |
* <code>IPackageFragmentRoot</code>.</li> |
59 |
* {@link IPackageFragmentRoot}.</li> |
60 |
* <li><code>F_SUPER_TYPES</code> - One of the supertypes of an <code>IType</code> has changed</li>. |
60 |
* <li>{@link #F_SUPER_TYPES} - One of the supertypes of an {@link IType} has changed</li>. |
61 |
* </ul> |
61 |
* </ul> |
62 |
* </li> |
62 |
* </li> |
63 |
* </ul> |
63 |
* </ul> |
Lines 65-75
Link Here
|
65 |
* <p> |
65 |
* <p> |
66 |
* Move operations are indicated by other change flags, layered on top |
66 |
* Move operations are indicated by other change flags, layered on top |
67 |
* of the change flags described above. If element A is moved to become B, |
67 |
* of the change flags described above. If element A is moved to become B, |
68 |
* the delta for the change in A will have status <code>REMOVED</code>, |
68 |
* the delta for the change in A will have status {@link #REMOVED}, |
69 |
* with change flag <code>F_MOVED_TO</code>. In this case, |
69 |
* with change flag {@link #F_MOVED_TO}. In this case, |
70 |
* <code>getMovedToElement</code> on delta A will return the handle for B. |
70 |
* {@link #getMovedToElement} on delta A will return the handle for B. |
71 |
* The delta for B will have status <code>ADDED</code>, with change flag |
71 |
* The delta for B will have status {@link #ADDED}, with change flag |
72 |
* <code>F_MOVED_FROM</code>, and <code>getMovedFromElement</code> on delta |
72 |
* {@link #F_MOVED_FROM}, and {@link #getMovedFromElement} on delta |
73 |
* B will return the handle for A. (Note, the handle to A in this case represents |
73 |
* B will return the handle for A. (Note, the handle to A in this case represents |
74 |
* an element that no longer exists). |
74 |
* an element that no longer exists). |
75 |
* </p> |
75 |
* </p> |
Lines 78-102
Link Here
|
78 |
* do not imply anything about the parent or children of the element. |
78 |
* do not imply anything about the parent or children of the element. |
79 |
* </p> |
79 |
* </p> |
80 |
* <p> |
80 |
* <p> |
81 |
* The <code>F_ADDED_TO_CLASSPATH</code>, <code>F_REMOVED_FROM_CLASSPATH</code> and |
81 |
* The {@link #F_ADDED_TO_CLASSPATH}, {@link #F_REMOVED_FROM_CLASSPATH} and |
82 |
* <code>F_CLASSPATH_REORDER</code> flags are triggered by changes to a project's classpath. They do not mean that |
82 |
* {@link #F_CLASSPATH_REORDER} flags are triggered by changes to a project's classpath. They do not mean that |
83 |
* the underlying resource was added, removed or changed. For example, if a project P already contains a folder src, then |
83 |
* the underlying resource was added, removed or changed. For example, if a project P already contains a folder src, then |
84 |
* adding a classpath entry with the 'P/src' path to the project's classpath will result in an <code>IJavaElementDelta</code> |
84 |
* adding a classpath entry with the 'P/src' path to the project's classpath will result in an {@link IJavaElementDelta} |
85 |
* with the <code>F_ADDED_TO_CLASSPATH</code> flag for the <code>IPackageFragmentRoot</code> P/src. |
85 |
* with the {@link #F_ADDED_TO_CLASSPATH} flag for the {@link IPackageFragmentRoot} P/src. |
86 |
* On the contrary, if a resource is physically added, removed or changed and this resource corresponds to a classpath |
86 |
* On the contrary, if a resource is physically added, removed or changed and this resource corresponds to a classpath |
87 |
* entry of the project, then an <code>IJavaElementDelta</code> with the <code>ADDED</code>, |
87 |
* entry of the project, then an {@link IJavaElementDelta} with the {@link #ADDED}, |
88 |
* <code>REMOVED</code>, or <code>CHANGED</code> kind will be fired. |
88 |
* {@link #REMOVED}, or {@link #CHANGED} kind will be fired. |
89 |
* </p> |
89 |
* </p> |
90 |
* <p> |
90 |
* <p> |
91 |
* Note that when a source attachment path or a source attachment root path is changed, then the flags of the delta contain |
91 |
* Note that when a source attachment path or a source attachment root path is changed, then the flags of the delta contain |
92 |
* both <code>F_SOURCEATTACHED</code> and <code>F_SOURCEDETTACHED</code>. |
92 |
* both {@link #F_SOURCEATTACHED} and {@link #F_SOURCEDETACHED}. |
93 |
* </p> |
93 |
* </p> |
94 |
* <p> |
94 |
* <p> |
95 |
* No assumptions should be made on whether the java element delta tree is rooted at the <code>IJavaModel</code> |
95 |
* No assumptions should be made on whether the java element delta tree is rooted at the {@link IJavaModel} |
96 |
* level or not. |
96 |
* level or not. |
97 |
* </p> |
97 |
* </p> |
98 |
* <p> |
98 |
* <p> |
99 |
* <code>IJavaElementDelta</code> object are not valid outside the dynamic scope |
99 |
* {@link IJavaElementDelta} object are not valid outside the dynamic scope |
100 |
* of the notification. |
100 |
* of the notification. |
101 |
* </p> |
101 |
* </p> |
102 |
* <p> |
102 |
* <p> |
Lines 133-181
Link Here
|
133 |
|
133 |
|
134 |
/** |
134 |
/** |
135 |
* Change flag indicating that the modifiers of the element have changed. |
135 |
* Change flag indicating that the modifiers of the element have changed. |
136 |
* This flag is only valid if the element is an <code>IMember</code>. |
136 |
* This flag is only valid if the element is an {@link IMember}. |
137 |
*/ |
137 |
*/ |
138 |
public int F_MODIFIERS = 0x000002; |
138 |
public int F_MODIFIERS = 0x000002; |
139 |
|
139 |
|
140 |
/** |
140 |
/** |
141 |
* Change flag indicating that there are changes to the children of the element. |
141 |
* Change flag indicating that there are changes to the children of the element. |
142 |
* This flag is only valid if the element is an <code>IParent</code>. |
142 |
* This flag is only valid if the element is an {@link IParent}. |
143 |
*/ |
143 |
*/ |
144 |
public int F_CHILDREN = 0x000008; |
144 |
public int F_CHILDREN = 0x000008; |
145 |
|
145 |
|
146 |
/** |
146 |
/** |
147 |
* Change flag indicating that the element was moved from another location. |
147 |
* Change flag indicating that the element was moved from another location. |
148 |
* The location of the old element can be retrieved using <code>getMovedFromElement</code>. |
148 |
* The location of the old element can be retrieved using {@link #getMovedFromElement}. |
149 |
*/ |
149 |
*/ |
150 |
public int F_MOVED_FROM = 0x000010; |
150 |
public int F_MOVED_FROM = 0x000010; |
151 |
|
151 |
|
152 |
/** |
152 |
/** |
153 |
* Change flag indicating that the element was moved to another location. |
153 |
* Change flag indicating that the element was moved to another location. |
154 |
* The location of the new element can be retrieved using <code>getMovedToElement</code>. |
154 |
* The location of the new element can be retrieved using {@link #getMovedToElement}. |
155 |
*/ |
155 |
*/ |
156 |
public int F_MOVED_TO = 0x000020; |
156 |
public int F_MOVED_TO = 0x000020; |
157 |
|
157 |
|
158 |
/** |
158 |
/** |
159 |
* Change flag indicating that a classpath entry corresponding to the element has been added to the project's classpath. |
159 |
* Change flag indicating that a classpath entry corresponding to the element has been added to the project's classpath. |
160 |
* This flag is only valid if the element is an <code>IPackageFragmentRoot</code>. |
160 |
* This flag is only valid if the element is an {@link IPackageFragmentRoot}. |
161 |
*/ |
161 |
*/ |
162 |
public int F_ADDED_TO_CLASSPATH = 0x000040; |
162 |
public int F_ADDED_TO_CLASSPATH = 0x000040; |
163 |
|
163 |
|
164 |
/** |
164 |
/** |
165 |
* Change flag indicating that a classpath entry corresponding to the element has been removed from the project's |
165 |
* Change flag indicating that a classpath entry corresponding to the element has been removed from the project's |
166 |
* classpath. This flag is only valid if the element is an <code>IPackageFragmentRoot</code>. |
166 |
* classpath. This flag is only valid if the element is an {@link IPackageFragmentRoot}. |
167 |
*/ |
167 |
*/ |
168 |
public int F_REMOVED_FROM_CLASSPATH = 0x000080; |
168 |
public int F_REMOVED_FROM_CLASSPATH = 0x000080; |
169 |
|
169 |
|
170 |
/** |
170 |
/** |
171 |
* Change flag indicating that a classpath entry corresponding to the element has changed position in the project's |
171 |
* Change flag indicating that a classpath entry corresponding to the element has changed position in the project's |
172 |
* classpath. This flag is only valid if the element is an <code>IPackageFragmentRoot</code>. |
172 |
* classpath. This flag is only valid if the element is an {@link IPackageFragmentRoot}. |
173 |
* @deprecated Use {@link #F_REORDER} instead. |
173 |
* @deprecated Use {@link #F_REORDER} instead. |
174 |
*/ |
174 |
*/ |
175 |
public int F_CLASSPATH_REORDER = 0x000100; |
175 |
public int F_CLASSPATH_REORDER = 0x000100; |
176 |
/** |
176 |
/** |
177 |
* Change flag indicating that the element has changed position relatively to its siblings. |
177 |
* Change flag indicating that the element has changed position relatively to its siblings. |
178 |
* If the element is an <code>IPackageFragmentRoot</code>, a classpath entry corresponding |
178 |
* If the element is an {@link IPackageFragmentRoot}, a classpath entry corresponding |
179 |
* to the element has changed position in the project's classpath. |
179 |
* to the element has changed position in the project's classpath. |
180 |
* |
180 |
* |
181 |
* @since 2.1 |
181 |
* @since 2.1 |
Lines 183-201
Link Here
|
183 |
public int F_REORDER = 0x000100; |
183 |
public int F_REORDER = 0x000100; |
184 |
|
184 |
|
185 |
/** |
185 |
/** |
186 |
* Change flag indicating that the underlying <code>IProject</code> has been |
186 |
* Change flag indicating that the underlying {@link org.eclipse.core.resources.IProject} has been |
187 |
* opened. This flag is only valid if the element is an <code>IJavaProject</code>. |
187 |
* opened. This flag is only valid if the element is an {@link IJavaProject}. |
188 |
*/ |
188 |
*/ |
189 |
public int F_OPENED = 0x000200; |
189 |
public int F_OPENED = 0x000200; |
190 |
|
190 |
|
191 |
/** |
191 |
/** |
192 |
* Change flag indicating that the underlying <code>IProject</code> has been |
192 |
* Change flag indicating that the underlying {@link org.eclipse.core.resources.IProject} has been |
193 |
* closed. This flag is only valid if the element is an <code>IJavaProject</code>. |
193 |
* closed. This flag is only valid if the element is an {@link IJavaProject}. |
194 |
*/ |
194 |
*/ |
195 |
public int F_CLOSED = 0x000400; |
195 |
public int F_CLOSED = 0x000400; |
196 |
|
196 |
|
197 |
/** |
197 |
/** |
198 |
* Change flag indicating that one of the supertypes of an <code>IType</code> |
198 |
* Change flag indicating that one of the supertypes of an {@link IType} |
199 |
* has changed. |
199 |
* has changed. |
200 |
*/ |
200 |
*/ |
201 |
public int F_SUPER_TYPES = 0x000800; |
201 |
public int F_SUPER_TYPES = 0x000800; |
Lines 203-216
Link Here
|
203 |
/** |
203 |
/** |
204 |
* Change flag indicating that the source attachment path or the source attachment root path of a classpath entry |
204 |
* Change flag indicating that the source attachment path or the source attachment root path of a classpath entry |
205 |
* corresponding to the element was added. This flag is only valid if the element is an |
205 |
* corresponding to the element was added. This flag is only valid if the element is an |
206 |
* <code>IPackageFragmentRoot</code>. |
206 |
* {@link IPackageFragmentRoot}. |
207 |
*/ |
207 |
*/ |
208 |
public int F_SOURCEATTACHED = 0x001000; |
208 |
public int F_SOURCEATTACHED = 0x001000; |
209 |
|
209 |
|
210 |
/** |
210 |
/** |
211 |
* Change flag indicating that the source attachment path or the source attachment root path of a classpath entry |
211 |
* Change flag indicating that the source attachment path or the source attachment root path of a classpath entry |
212 |
* corresponding to the element was removed. This flag is only valid if the element is an |
212 |
* corresponding to the element was removed. This flag is only valid if the element is an |
213 |
* <code>IPackageFragmentRoot</code>. |
213 |
* {@link IPackageFragmentRoot}. |
214 |
*/ |
214 |
*/ |
215 |
public int F_SOURCEDETACHED = 0x002000; |
215 |
public int F_SOURCEDETACHED = 0x002000; |
216 |
|
216 |
|
Lines 220-228
Link Here
|
220 |
* members. |
220 |
* members. |
221 |
* <p> |
221 |
* <p> |
222 |
* Clients can use this flag to find out if a compilation unit |
222 |
* Clients can use this flag to find out if a compilation unit |
223 |
* that have a <code>F_CONTENT</code> change should assume that there are |
223 |
* that have a {@link #F_CONTENT} change should assume that there are |
224 |
* no finer grained changes (<code>F_FINE_GRAINED</code> is set) or if |
224 |
* no finer grained changes ({@link #F_FINE_GRAINED} is set) or if |
225 |
* finer grained changes were not considered (<code>F_FINE_GRAINED</code> |
225 |
* finer grained changes were not considered ({@link #F_FINE_GRAINED} |
226 |
* is not set). |
226 |
* is not set). |
227 |
* |
227 |
* |
228 |
* @since 2.0 |
228 |
* @since 2.0 |
Lines 231-237
Link Here
|
231 |
|
231 |
|
232 |
/** |
232 |
/** |
233 |
* Change flag indicating that the element's archive content on the classpath has changed. |
233 |
* Change flag indicating that the element's archive content on the classpath has changed. |
234 |
* This flag is only valid if the element is an <code>IPackageFragmentRoot</code> |
234 |
* This flag is only valid if the element is an {@link IPackageFragmentRoot} |
235 |
* which is an archive. |
235 |
* which is an archive. |
236 |
* |
236 |
* |
237 |
* @see IPackageFragmentRoot#isArchive() |
237 |
* @see IPackageFragmentRoot#isArchive() |
Lines 242-248
Link Here
|
242 |
/** |
242 |
/** |
243 |
* Change flag indicating that a compilation unit has become a primary working copy, or that a |
243 |
* Change flag indicating that a compilation unit has become a primary working copy, or that a |
244 |
* primary working copy has reverted to a compilation unit. |
244 |
* primary working copy has reverted to a compilation unit. |
245 |
* This flag is only valid if the element is an <code>ICompilationUnit</code>. |
245 |
* This flag is only valid if the element is an {@link ICompilationUnit}. |
246 |
* |
246 |
* |
247 |
* @since 3.0 |
247 |
* @since 3.0 |
248 |
*/ |
248 |
*/ |
Lines 250-256
Link Here
|
250 |
|
250 |
|
251 |
/** |
251 |
/** |
252 |
* Change flag indicating that the raw classpath (or the output folder) of a project has changed. |
252 |
* Change flag indicating that the raw classpath (or the output folder) of a project has changed. |
253 |
* This flag is only valid if the element is an <code>IJavaProject</code>. |
253 |
* This flag is only valid if the element is an {@link IJavaProject}. |
254 |
* |
254 |
* |
255 |
* @since 3.0 |
255 |
* @since 3.0 |
256 |
*/ |
256 |
*/ |
Lines 258-264
Link Here
|
258 |
|
258 |
|
259 |
/** |
259 |
/** |
260 |
* Change flag indicating that the resource of a primary compilation unit has changed. |
260 |
* Change flag indicating that the resource of a primary compilation unit has changed. |
261 |
* This flag is only valid if the element is a primary <code>ICompilationUnit</code>. |
261 |
* This flag is only valid if the element is a primary {@link ICompilationUnit}. |
262 |
* |
262 |
* |
263 |
* @since 3.0 |
263 |
* @since 3.0 |
264 |
*/ |
264 |
*/ |
Lines 267-273
Link Here
|
267 |
/** |
267 |
/** |
268 |
* Change flag indicating that a reconcile operation has affected the compilation unit AST created in a |
268 |
* Change flag indicating that a reconcile operation has affected the compilation unit AST created in a |
269 |
* previous reconcile operation. Use {@link #getCompilationUnitAST()} to retrieve the AST (if any is available). |
269 |
* previous reconcile operation. Use {@link #getCompilationUnitAST()} to retrieve the AST (if any is available). |
270 |
* This flag is only valid if the element is an <code>ICompilationUnit</code> in working copy mode. |
270 |
* This flag is only valid if the element is an {@link ICompilationUnit} in working copy mode. |
271 |
* |
271 |
* |
272 |
* @since 3.2 |
272 |
* @since 3.2 |
273 |
*/ |
273 |
*/ |
Lines 275-281
Link Here
|
275 |
|
275 |
|
276 |
/** |
276 |
/** |
277 |
* Change flag indicating that the categories of the element have changed. |
277 |
* Change flag indicating that the categories of the element have changed. |
278 |
* This flag is only valid if the element is an <code>IMember</code>. |
278 |
* This flag is only valid if the element is an {@link IMember}. |
279 |
* |
279 |
* |
280 |
* @since 3.2 |
280 |
* @since 3.2 |
281 |
*/ |
281 |
*/ |
Lines 298-306
Link Here
|
298 |
* This returns a non-null value if and only if: |
298 |
* This returns a non-null value if and only if: |
299 |
* <ul> |
299 |
* <ul> |
300 |
* <li>the last reconcile operation on this working copy requested an AST</li> |
300 |
* <li>the last reconcile operation on this working copy requested an AST</li> |
301 |
* <li>this delta's element is an <code>ICompilationUnit</code> in working copy mode</li> |
301 |
* <li>this delta's element is an {@link ICompilationUnit} in working copy mode</li> |
302 |
* <li>the delta comes from a <code>POST_RECONCILE</code> event |
302 |
* <li>the delta comes from a {@link ElementChangedEvent#POST_RECONCILE} event |
303 |
* </ul> |
303 |
* </ul> |
|
|
304 |
* |
304 |
* @return the AST created during the last reconcile operation |
305 |
* @return the AST created during the last reconcile operation |
305 |
* @see ICompilationUnit#reconcile(int, boolean, WorkingCopyOwner, org.eclipse.core.runtime.IProgressMonitor) |
306 |
* @see ICompilationUnit#reconcile(int, boolean, WorkingCopyOwner, org.eclipse.core.runtime.IProgressMonitor) |
306 |
* @see #F_AST_AFFECTED |
307 |
* @see #F_AST_AFFECTED |
Lines 334-341
Link Here
|
334 |
public int getFlags(); |
335 |
public int getFlags(); |
335 |
|
336 |
|
336 |
/** |
337 |
/** |
337 |
* Returns the kind of this delta - one of <code>ADDED</code>, <code>REMOVED</code>, |
338 |
* Returns the kind of this delta - one of {@link #ADDED}, {@link #REMOVED}, |
338 |
* or <code>CHANGED</code>. |
339 |
* or {@link #CHANGED}. |
339 |
* |
340 |
* |
340 |
* @return the kind of this delta |
341 |
* @return the kind of this delta |
341 |
*/ |
342 |
*/ |
Lines 344-364
Link Here
|
344 |
/** |
345 |
/** |
345 |
* Returns an element describing this element before it was moved |
346 |
* Returns an element describing this element before it was moved |
346 |
* to its current location, or <code>null</code> if the |
347 |
* to its current location, or <code>null</code> if the |
347 |
* <code>F_MOVED_FROM</code> change flag is not set. |
348 |
* {@link #F_MOVED_FROM} change flag is not set. |
348 |
* |
349 |
* |
349 |
* @return an element describing this element before it was moved |
350 |
* @return an element describing this element before it was moved |
350 |
* to its current location, or <code>null</code> if the |
351 |
* to its current location, or <code>null</code> if the |
351 |
* <code>F_MOVED_FROM</code> change flag is not set |
352 |
* {@link #F_MOVED_FROM} change flag is not set |
352 |
*/ |
353 |
*/ |
353 |
public IJavaElement getMovedFromElement(); |
354 |
public IJavaElement getMovedFromElement(); |
354 |
|
355 |
|
355 |
/** |
356 |
/** |
356 |
* Returns an element describing this element in its new location, |
357 |
* Returns an element describing this element in its new location, |
357 |
* or <code>null</code> if the <code>F_MOVED_TO</code> change |
358 |
* or <code>null</code> if the {@link #F_MOVED_TO} change |
358 |
* flag is not set. |
359 |
* flag is not set. |
359 |
* |
360 |
* |
360 |
* @return an element describing this element in its new location, |
361 |
* @return an element describing this element in its new location, |
361 |
* or <code>null</code> if the <code>F_MOVED_TO</code> change |
362 |
* or <code>null</code> if the {@link #F_MOVED_TO} change |
362 |
* flag is not set |
363 |
* flag is not set |
363 |
*/ |
364 |
*/ |
364 |
public IJavaElement getMovedToElement(); |
365 |
public IJavaElement getMovedToElement(); |