Changeset 4448
- Timestamp:
- 2003-06-03T12:16:05+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/LockFileDialog.java
r4427 r4448 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 17 public class LockFileDialog 17 extends ModalDialog { 18 extends JDialog { 19 // extends ModalDialog { 18 20 19 21 private int choice; … … 125 127 126 128 public int getChoice() { 127 setVisible(true); 129 show(); 130 ///ystem.err.println("Get choice... blocks here."); 131 ///setVisible(true); 132 ///ystem.err.println("Dispose recieved, return."); 128 133 return choice; 129 134 } … … 154 159 choice = NO_OPTION; 155 160 } 156 self.setVisible(false); 161 ///ystem.err.println("setVisible(false)"); 162 ///self.setVisible(false); 163 ///ystem.err.println("dispose()"); 157 164 self.dispose(); 158 165 }
Note:
See TracChangeset
for help on using the changeset viewer.