- Timestamp:
- 2004-01-27T16:35:34+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/ModalDialog.java
r6539 r6622 49 49 public ModalDialog() { 50 50 super((Frame)null, "", false); 51 Gatherer.current_modal = this;52 51 } 53 52 … … 57 56 public ModalDialog(Dialog parent) { 58 57 super(parent, "", false); 59 Gatherer.current_modal = this;60 58 } 61 59 … … 67 65 super(parent, "", false); 68 66 this.modal = modal; 69 Gatherer.current_modal = this;70 67 } 71 68 … … 77 74 super (parent, title, false); 78 75 this.modal = false; 79 Gatherer.current_modal = this;80 76 } 81 77 … … 88 84 super (parent, title, false); 89 85 this.modal = modal; 90 Gatherer.current_modal = this;91 86 } 92 87 … … 96 91 public ModalDialog(Frame parent) { 97 92 super(parent, "", false); 98 Gatherer.current_modal = this;99 93 } 100 94 … … 106 100 super(parent, "", false); 107 101 this.modal = modal; 108 Gatherer.current_modal = this;109 102 } 110 103 … … 115 108 public ModalDialog(Frame parent, String title) { 116 109 super (parent, title, false); 117 Gatherer.current_modal = this;118 110 } 119 111 … … 126 118 super (parent, title, false); 127 119 this.modal = modal; 128 Gatherer.current_modal = this;129 120 } 130 121 131 122 public void dispose() { 132 Gatherer.current_modal = null;133 123 super.dispose(); 124 } 125 126 /** Ensures the current dialog is visible. */ 127 public void makeVisible() { 128 super.setVisible(true); 134 129 } 135 130 … … 142 137 super.setVisible (visible); 143 138 if (modal && visible) { 139 Gatherer.current_modal = this; 144 140 try { 145 141 if (SwingUtilities.isEventDispatchThread ()) { … … 180 176 } 181 177 else if(modal && !visible && waiting) { 178 Gatherer.current_modal = null; 182 179 ///ystem.err.println("Hiding dialog. Tree lock is: " + getTreeLock()); 183 180 synchronized(getTreeLock()) { … … 187 184 } 188 185 else if(modal && !waiting) { 186 Gatherer.current_modal = null; 189 187 ///ystem.err.println("Modal Dialog is not currently waiting."); 190 188 }
Note:
See TracChangeset
for help on using the changeset viewer.