|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.aspectj.org.eclipse.jdt.internal.core.ModelUpdater
public class ModelUpdater
This class is used by JavaModelManager to update the JavaModel
based on some IJavaElementDeltas.
| Constructor Summary | |
|---|---|
ModelUpdater()
|
|
| Method Summary | |
|---|---|
protected void |
addToParentInfo(Openable child)
Adds the given child handle to its parent's cache of children. |
protected static void |
close(Openable element)
Closes the given element, which removes it from the cache of open elements. |
protected void |
elementAdded(Openable element)
Processing for an element that has been added: If the element is a project, do nothing, and do not process children, as when a project is created it does not yet have any natures - specifically a java nature. |
protected void |
elementChanged(Openable element)
Generic processing for elements with changed contents: The element is closed such that any subsequent accesses will re-open the element reflecting its new structure. |
protected void |
elementRemoved(Openable element)
Generic processing for a removed element: Close the element, removing its structure from the cache Remove the element from its parent's cache of children Add a REMOVED entry in the delta |
void |
processJavaDelta(IJavaElementDelta delta)
Converts a IResourceDelta rooted in a Workspace into
the corresponding set of IJavaElementDelta, rooted in the
relevant JavaModels. |
protected void |
removeFromParentInfo(Openable child)
Removes the given element from its parents cache of children. |
protected void |
traverseDelta(IJavaElementDelta delta,
IPackageFragmentRoot root,
IJavaProject project)
Converts an IResourceDelta and its children into
the corresponding IJavaElementDeltas. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModelUpdater()
| Method Detail |
|---|
protected void addToParentInfo(Openable child)
protected static void close(Openable element)
protected void elementAdded(Openable element)
basicElementAdded.
protected void elementChanged(Openable element)
protected void elementRemoved(Openable element)
public void processJavaDelta(IJavaElementDelta delta)
IResourceDelta rooted in a Workspace into
the corresponding set of IJavaElementDelta, rooted in the
relevant JavaModels.
protected void removeFromParentInfo(Openable child)
protected void traverseDelta(IJavaElementDelta delta,
IPackageFragmentRoot root,
IJavaProject project)
IResourceDelta and its children into
the corresponding IJavaElementDeltas.
Return whether the delta corresponds to a resource on the classpath.
If it is not a resource on the classpath, it will be added as a non-java
resource by the sender of this method.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||