org.eclipse.jpt.common.utility.synchronizers
Class CallbackSynchronizer.Null

java.lang.Object
  extended by org.eclipse.jpt.common.utility.synchronizers.CallbackSynchronizer.Null
All Implemented Interfaces:
java.io.Serializable, CallbackSynchronizer, Synchronizer
Enclosing interface:
CallbackSynchronizer

public static final class CallbackSynchronizer.Null
extends java.lang.Object
implements CallbackSynchronizer, java.io.Serializable

Singleton implementation of the CallbackSynchronizer interface that will do nothing.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.utility.synchronizers.CallbackSynchronizer
CallbackSynchronizer.Listener, CallbackSynchronizer.Null
 
Field Summary
static CallbackSynchronizer INSTANCE
           
 
Method Summary
 void addListener(CallbackSynchronizer.Listener listener)
          Add the specified listener to be notified whenever the synchronizer has quiesced.
static CallbackSynchronizer instance()
           
 void removeListener(CallbackSynchronizer.Listener listener)
          Remove the specified listener.
 void start()
          Enable the synchronizer to allow future synchronizations as requested by calls to Synchronizer.synchronize().
 void stop()
          Stop the synchronizer immediately or, if a synchronization is currently in progress, when it completes.
 void synchronize()
          Synchronize the dependent model with the primary model.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final CallbackSynchronizer INSTANCE
Method Detail

instance

public static CallbackSynchronizer instance()

start

public void start()
Description copied from interface: Synchronizer
Enable the synchronizer to allow future synchronizations as requested by calls to Synchronizer.synchronize().

Specified by:
start in interface Synchronizer

synchronize

public void synchronize()
Description copied from interface: Synchronizer
Synchronize the dependent model with the primary model. Do nothing if Synchronizer.start() has not previously been called. Do nothing if Synchronizer.stop() has been called (without any intermediate call to Synchronizer.start().

Specified by:
synchronize in interface Synchronizer

stop

public void stop()
Description copied from interface: Synchronizer
Stop the synchronizer immediately or, if a synchronization is currently in progress, when it completes. Return when the synchronizer is stopped. No further synchonizations will performed until Synchronizer.start() is called.

Specified by:
stop in interface Synchronizer

addListener

public void addListener(CallbackSynchronizer.Listener listener)
Description copied from interface: CallbackSynchronizer
Add the specified listener to be notified whenever the synchronizer has quiesced.

Specified by:
addListener in interface CallbackSynchronizer
See Also:
CallbackSynchronizer.removeListener(Listener)

removeListener

public void removeListener(CallbackSynchronizer.Listener listener)
Description copied from interface: CallbackSynchronizer
Remove the specified listener.

Specified by:
removeListener in interface CallbackSynchronizer
See Also:
CallbackSynchronizer.addListener(Listener)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object