/[schmitzm]/trunk/src/skrueger/swing/CancellableDialogManager.java
ViewVC logotype

Diff of /trunk/src/skrueger/swing/CancellableDialogManager.java

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

branches/1.0-gt2-2.6/src/skrueger/swing/CancellableDialogManager.java revision 509 by alfonx, Thu Nov 5 08:51:33 2009 UTC branches/2.0-RC2/src/skrueger/swing/CancellableDialogManager.java revision 621 by alfonx, Thu Jan 28 10:06:05 2010 UTC
# Line 12  public abstract class CancellableDialogM Line 12  public abstract class CancellableDialogM
12                  for (DIALOG d : getAllInstances()) {                  for (DIALOG d : getAllInstances()) {
13                          d.forceClose();                          d.forceClose();
14                  }                  }
15                    dialogCache.clear();
16          }          }
17    
18          /**          /**
# Line 23  public abstract class CancellableDialogM Line 24  public abstract class CancellableDialogM
24                          if (!d.close())                          if (!d.close())
25                                  return false;                                  return false;
26                  }                  }
27                    
28                    dialogCache.clear();
29                  return true;                  return true;
30          }          }
31    
# Line 33  public abstract class CancellableDialogM Line 36  public abstract class CancellableDialogM
36           */           */
37          public boolean close(KEY key) {          public boolean close(KEY key) {
38                  if (isVisibleFor(key)) {                  if (isVisibleFor(key)) {
39                          return getInstanceFor(key, null).close();                          boolean closeResult =  getInstanceFor(key, null).close();
40                            if (closeResult) dialogCache.remove(key);
41                            return closeResult;
42                  }                  }
43                                    dialogCache.remove(key);
44                  return true;                  return true;
45          }          }
46    

Legend:
Removed from v.509  
changed lines
  Added in v.621

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26