Klasse DeltaProcessor

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.DeltaProcessor

public class DeltaProcessor extends Object
This class is used by JavaModelManager to convert IResourceDeltas into IJavaElementDeltas. It also does some processing on the JavaElements involved (e.g. closing them or updating classpaths).

High level summary of what the delta processor does:

  • reacts to resource deltas
  • fires corresponding Java element deltas
  • deltas also contain non-Java resources changes
  • updates the model to reflect the Java element changes
  • notifies type hierarchies of the changes
  • triggers indexing of the changed elements
  • refresh external archives (delta, model update, indexing)
  • is thread safe (one delta processor instance per thread, see DeltaProcessingState#resourceChanged(...))
  • handles .classpath changes (updates package fragment roots, update project references, validate classpath (.classpath format, resolved classpath, cycles))
  • Felddetails

  • Konstruktordetails

  • Methodendetails

    • getTimeStamp

      public static long getTimeStamp(File file)
    • checkExternalArchiveChanges

      public void checkExternalArchiveChanges(IJavaElement[] elementsScope, org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException
      Löst aus:
      JavaModelException
    • flush

      public void flush()
    • fire

      public void fire(IJavaElementDelta customDelta, int eventType)
    • resetProjectCaches

      public void resetProjectCaches()
    • registerJavaModelDelta

      public void registerJavaModelDelta(IJavaElementDelta delta)
    • resourceChanged

      public void resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
    • notifyAndFire

      public void notifyAndFire(IJavaElementDelta delta)
    • updateCurrentDeltaAndIndex

      public boolean updateCurrentDeltaAndIndex(org.eclipse.core.resources.IResourceDelta delta, int elementType, DeltaProcessor.RootInfo rootInfo)
    • updateJavaModel

      public void updateJavaModel(IJavaElementDelta customDelta)