1 33 34 package edu.rice.cs.drjava.model.compiler; 35 36 import java.io.File ; 37 import java.util.List ; 38 39 import edu.rice.cs.drjava.model.EventNotifier; 40 41 73 class CompilerEventNotifier extends EventNotifier<CompilerListener> implements CompilerListener { 74 75 76 public void compileStarted() { 77 _lock.startRead(); 79 try { for (CompilerListener cl : _listeners) { cl.compileStarted(); } } 80 finally { _lock.endRead(); } 81 } 82 83 84 public void compileEnded(File workDir, List <? extends File > excludedFiles) { 85 _lock.startRead(); 86 try { for (CompilerListener cl : _listeners) { cl.compileEnded(workDir, excludedFiles); } } 87 finally { _lock.endRead(); } 88 } 89 90 93 public void saveBeforeCompile() { 94 _lock.startRead(); 95 try { for (CompilerListener cl : _listeners) { cl.saveBeforeCompile(); } } 96 finally { _lock.endRead(); } 97 } 98 99 102 public void saveUntitled() { 103 _lock.startRead(); 104 try { for (CompilerListener cl : _listeners) { cl.saveUntitled(); } } 105 finally { _lock.endRead(); } 106 } 107 } 108 | Popular Tags |