Changeset 4684 in josm for trunk/src/org/openstreetmap/josm/gui/progress/PleaseWaitProgressMonitor.java
- Timestamp:
- 2011-12-21T12:58:59+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/progress/PleaseWaitProgressMonitor.java
r3752 r4684 26 26 private PleaseWaitDialog dialog; 27 27 private String windowTitle; 28 29 private boolean cancelable; 28 30 29 31 public PleaseWaitProgressMonitor() { … … 39 41 super(new CancelHandler()); 40 42 this.dialogParent = JOptionPane.getFrameForComponent(dialogParent); 43 this.cancelable = true; 41 44 } 42 45 … … 58 61 }; 59 62 63 public final boolean isCancelable() { 64 return cancelable; 65 } 66 67 public final void setCancelable(boolean cancelable) { 68 this.cancelable = cancelable; 69 } 70 60 71 private void doInEDT(Runnable runnable) { 61 72 EventQueue.invokeLater(runnable); … … 76 87 dialog.setTitle(windowTitle); 77 88 } 78 dialog.setCancelEnabled( true);89 dialog.setCancelEnabled(cancelable); 79 90 dialog.setCancelCallback(cancelListener); 80 91 dialog.setCustomText("");
Note:
See TracChangeset
for help on using the changeset viewer.