org.jupe.synchronisation.sourcechanges.java
Class DeltaVisitor

java.lang.Object
  extended by org.jupe.synchronisation.sourcechanges.java.DeltaVisitor
All Implemented Interfaces:
org.eclipse.core.resources.IResourceDeltaVisitor

public class DeltaVisitor
extends java.lang.Object
implements org.eclipse.core.resources.IResourceDeltaVisitor

This class classifies the incoming deltas in order to use the corresponding handler. No delta will be thrown away (e.g. the change deltas, when creating a subpackage).

Author:
Emanuel Thomas, Michael Pradel

Constructor Summary
DeltaVisitor()
          Default constructor.
 
Method Summary
static Debug getDebug()
          Returns reference to the debug list.
static boolean getUnittest()
           
static void initUnittest()
           
 boolean visit(org.eclipse.core.resources.IResourceDelta delta)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeltaVisitor

public DeltaVisitor()
Default constructor.

Method Detail

getUnittest

public static boolean getUnittest()

visit

public boolean visit(org.eclipse.core.resources.IResourceDelta delta)
              throws org.eclipse.core.runtime.CoreException
Specified by:
visit in interface org.eclipse.core.resources.IResourceDeltaVisitor
Throws:
org.eclipse.core.runtime.CoreException

initUnittest

public static void initUnittest()

getDebug

public static Debug getDebug()
Returns reference to the debug list. Call initUnittest() before.

Returns:
Null, if initUnittest()has not been called before.