/[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

revision 604 by alfonx, Wed Dec 9 14:15:53 2009 UTC revision 615 by alfonx, Mon Dec 14 17:31:41 2009 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.604  
changed lines
  Added in v.615

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26