1 33 34 package edu.rice.cs.drjava.model; 35 36 import java.io.File ; 37 import edu.rice.cs.drjava.model.repl.InteractionsListener; 38 import edu.rice.cs.drjava.model.compiler.CompilerListener; 39 import edu.rice.cs.drjava.model.junit.JUnitListener; 40 41 import edu.rice.cs.util.FileOpenSelector; 42 import edu.rice.cs.util.swing.AsyncTask; 43 44 50 public interface GlobalModelListener extends InteractionsListener, JavadocListener, CompilerListener, JUnitListener { 51 52 53 public <P,R> void executeAsyncTask(AsyncTask<P,R> task, P param, boolean showProgress, boolean lockUI); 54 55 61 public void handleAlreadyOpenDocument(OpenDefinitionsDocument doc); 62 63 64 public void fileNotFound(File f); 65 66 67 public void newFileCreated(OpenDefinitionsDocument doc); 68 69 70 public void fileSaved(OpenDefinitionsDocument doc); 71 72 73 public void fileOpened(OpenDefinitionsDocument doc); 74 75 76 public void fileClosed(OpenDefinitionsDocument doc); 77 78 79 public void fileReverted(OpenDefinitionsDocument doc); 80 81 82 public boolean canAbandonFile(OpenDefinitionsDocument doc); 83 84 86 public boolean quitFile(OpenDefinitionsDocument doc); 87 88 89 public boolean shouldRevertFile(OpenDefinitionsDocument doc); 90 91 92 public void runStarted(OpenDefinitionsDocument doc); 93 94 95 public void consoleReset(); 96 97 98 public void undoableEditHappened(); 99 100 101 public void filePathContainsPound(); 102 103 104 public void activeDocumentChanged(OpenDefinitionsDocument active); 105 106 107 public void focusOnDefinitionsPane(); 108 109 110 public void currentDirectoryChanged(File dir); 111 112 113 public void projectBuildDirChanged(); 114 115 116 public void projectWorkDirChanged(); 117 118 122 public void projectOpened(File projectFile, FileOpenSelector files); 123 124 125 public void projectClosed(); 126 127 128 public void projectModified(); 129 130 131 public void projectRunnableChanged(); 132 133 135 public void documentNotFound(OpenDefinitionsDocument d, File f); 136 } 137 138 | Popular Tags |