/[libvob]/libvob/org/nongnu/libvob/AbstractUpdateManager.java
ViewVC logotype

Diff of /libvob/org/nongnu/libvob/AbstractUpdateManager.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by tjl, Wed Apr 9 14:09:25 2003 UTC revision 1.5 by tjl, Tue Jul 22 12:01:50 2003 UTC
# Line 46  import java.awt.image.*; Line 46  import java.awt.image.*;
46  public abstract class AbstractUpdateManager implements Runnable {  public abstract class AbstractUpdateManager implements Runnable {
47  public static final String rcsid = "$Id$";  public static final String rcsid = "$Id$";
48      public static boolean dbg = false;      public static boolean dbg = false;
49      private static void pa(String s) { System.err.println(s); }      private static void pa(String s) {
50            System.err.println("AbstractUpdateManager: "+s); }
51    
52      protected static AbstractUpdateManager instance = null;      protected static AbstractUpdateManager instance = null;
53      protected static void setInstance(AbstractUpdateManager in) {      protected static void setInstance(AbstractUpdateManager in) {
# Line 391  public static final String rcsid = "$Id$ Line 392  public static final String rcsid = "$Id$
392       * Used mainly from tests.       * Used mainly from tests.
393       */       */
394      static public boolean tickIdle() {      static public boolean tickIdle() {
395            if(dbg) pa("TickIdle");
396            if(instance.handleEvents(false)) {
397                if(dbg) pa("TickIdle: HandleEvents true");
398                return true;
399            }
400          return instance.doIdle();          return instance.doIdle();
401      }      }
402    
403        static public boolean waitEvent() {
404            return instance.handleEvents(true);
405        }
406    
407      public void run() {      public void run() {
408          if(initRunnable != null) {          if(initRunnable != null) {
409              initRunnable.run();              initRunnable.run();

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26