net.sf.tm.plugin
Class AutoUpdate

java.lang.Object
  extended bynet.sf.tm.plugin.AutoUpdate

public class AutoUpdate
extends Object

Class provides background update of a IUpdatable object. The update thread is running every seconds and checks if a new update must be fired. The thread is running as a UI Thread to enable display updates.

The updater is listening to changes of the following preference values:

If a change occurs the timer is reseted.

Version:
$Id: AutoUpdate.java,v 1.2 2003/09/12 08:34:31 apataki Exp $
Author:
Andreas Pataki

Constructor Summary
AutoUpdate(IPreferenceStore newStore)
          Constructor
 
Method Summary
 void start(IUpdatable updatable, Display display)
          Starts a new update timer.
 void stop()
          Stops the current timer by calling the stop method of the runner.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoUpdate

public AutoUpdate(IPreferenceStore newStore)
Constructor

Parameters:
newStore - The plugins preference store
Method Detail

start

public void start(IUpdatable updatable,
                  Display display)
Starts a new update timer. If the timer is currently running it will be stopped.

Parameters:
updatable - The object which must be updated
display - The display object for thread creation

stop

public void stop()
Stops the current timer by calling the stop method of the runner.



Copyright © 2003-2004 Andreas Pataki. All Rights Reserved.