MCPcopy Create free account
hub / github.com/antlr/codebuff / waitForClose

Method waitForClose

output/java/1.4.17/STViz.java:263–291  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

261 }
262
263 public void waitForClose() throws InterruptedException
264 {
265 final Object lock = new Object();
266 Thread t = new Thread() {
267 @Override
268 public void run() {
269 synchronized ( lock ) {
270 while ( viewFrame.isVisible() ) {
271 try {
272 lock.wait();
273 }
274 catch (InterruptedException e) {
275 }
276 }
277 }
278 }
279 };
280 t.start();
281 viewFrame.addWindowListener(new WindowAdapter() {
282 @Override
283 public void windowClosing(WindowEvent arg0) {
284 synchronized ( lock ) {
285 viewFrame.setVisible(false);
286 lock.notify();
287 }
288 }
289 });
290 t.join();
291 }
292
293 private void updateCurrentST(STViewFrame m) {
294// System.out.println("updateCurrentST(): currentScope.st="+currentScope.st);

Callers

nothing calls this directly

Calls 2

startMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected