MCPcopy Index your code
hub / github.com/antlr/codebuff / waitForClose

Method waitForClose

output/java8/1.4.14/STViz.java:262–290  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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