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

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

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

revision 461 by alfonx, Tue Oct 13 09:22:23 2009 UTC revision 470 by alfonx, Wed Oct 14 16:20:26 2009 UTC
# Line 78  public abstract class DialogManager<KEY, Line 78  public abstract class DialogManager<KEY,
78                  }                  }
79          }          }
80    
81          public boolean disposeInstanceFor(KEY chartId) {          public boolean disposeInstanceFor(KEY key) {
82                  synchronized (dialogCache) {                  synchronized (dialogCache) {
83    
84                          final DIALOG dialog = dialogCache.get(chartId);                          final DIALOG dialog = dialogCache.get(key);
85                          if (dialog != null) {                          if (dialog != null) {
86                                  dialog.dispose();                                  dialog.dispose();
87                                  dialogCache.remove(chartId);                                  dialogCache.remove(key);
88                                  return true;                                  return true;
89                          }                          }
90                          return false;                          return false;

Legend:
Removed from v.461  
changed lines
  Added in v.470

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26