Changeset 4459
- Timestamp:
- 2003-06-03T14:05:34+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/LockFileDialog.java
r4448 r4459 14 14 import org.w3c.dom.*; 15 15 16 /** A lock file dialog is shown whenever GLI detects an existing lock on a collection it is trying to open. The user can look at the details provided with the dialog, and decide whether to 'steal' the lock or to cancel the loading. While I would have loved to make this one of the modal-but-not-really-modal dialog boxes, it turns out this doesn't work as there is theoretically no parent frame if this dialog is created during GLI startup. So instead I'll use a boring old JDialog and hope that nobody ever asks for a help item to be added to this dialog.*/16 /** A lock file dialog is shown whenever GLI detects an existing lock on a collection it is trying to open. The user can look at the details provided with the dialog, and decide whether to 'steal' the lock or to cancel the loading. */ 17 17 public class LockFileDialog 18 extends JDialog { 19 // extends ModalDialog { 18 extends ModalDialog { 20 19 21 20 private int choice; … … 127 126 128 127 public int getChoice() { 129 show(); 130 ///ystem.err.println("Get choice... blocks here."); 131 ///setVisible(true); 132 ///ystem.err.println("Dispose recieved, return."); 128 setVisible(true); 133 129 return choice; 134 130 } … … 159 155 choice = NO_OPTION; 160 156 } 161 ///ystem.err.println("setVisible(false)");162 ///self.setVisible(false);163 ///ystem.err.println("dispose()");164 157 self.dispose(); 165 158 }
Note:
See TracChangeset
for help on using the changeset viewer.