|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.model.repl.DummyInteractionsListener
edu.rice.cs.drjava.model.DummyGlobalModelListener
public class DummyGlobalModelListener
A dummy GlobalModelListener that does nothing. Useful for listening to only a small number of events. Not currently used.
| Constructor Summary | |
|---|---|
DummyGlobalModelListener()
|
|
| Method Summary | ||
|---|---|---|
void |
activeCompilerChanged()
Called after the active compiler has been changed. |
|
void |
activeDocumentChanged(OpenDefinitionsDocument active)
Called when a new active document is selected |
|
void |
activeDocumentRefreshed(OpenDefinitionsDocument active)
Called when the active document is refreshed |
|
void |
browserChanged()
Called when the a region is added to the browswing history. |
|
boolean |
canAbandonFile(OpenDefinitionsDocument doc)
Called to ask the listener if it is OK to abandon the current document. |
|
void |
classFileError(ClassFileError e)
Called when trying to test an illegal class file. |
|
void |
compileAborted(Exception e)
Called if a compile is aborted. |
|
void |
compileBeforeJUnit(CompilerListener l)
Called to demand that all class file must be in sync before running unit tests. |
|
void |
compileEnded(File workDir,
List<? extends File> excludedFiles)
Called when a compile has finished running. |
|
void |
compileStarted()
Called after a compile is started by the GlobalModel. |
|
void |
consoleReset()
Called when the console window is reset. |
|
void |
currentDirectoryChanged(File dir)
Called when the navigator selection changes the current directory without changing the active document. |
|
void |
documentNotFound(OpenDefinitionsDocument d,
File f)
Called when the a document, already opened, is brought back into the cache, and it no longer exists on disk or cannot be accessed. |
|
|
executeAsyncTask(AsyncTask<P,R> task,
P param,
boolean showProgress,
boolean lockUI)
Called when an asynchronous task must be run in the model |
|
void |
fileClosed(OpenDefinitionsDocument doc)
Called after a document is closed. |
|
void |
fileOpened(OpenDefinitionsDocument doc)
Called after a file is opened and read into the current document. |
|
void |
filePathContainsPound()
Called when saving a file whose path contains a '#' symbol. |
|
void |
fileReverted(OpenDefinitionsDocument doc)
Called after a document is reverted. |
|
void |
fileSaved(OpenDefinitionsDocument doc)
Called after the current document is saved. |
|
void |
filesNotFound(File... f)
Called when trying to open one or more files that do not exist. |
|
File[] |
filesReadOnly(File... f)
Called when trying to write one or more files that are read-only. |
|
void |
focusOnDefinitionsPane()
Called when the focus must be changed to the active document in the definitions pane |
|
void |
focusOnLastFocusOwner()
Restores the focus in the main frame to the last focus owner. |
|
void |
handleAlreadyOpenDocument(OpenDefinitionsDocument doc)
Performs any UI related steps to handle the case in which a file is being opened that is already open and modified. |
|
void |
javadocEnded(boolean success,
File destDir,
boolean allDocs)
Called after Javadoc is finished. |
|
void |
javadocStarted()
Called after Javadoc is started by the GlobalModel. |
|
void |
junitClassesStarted()
Called when testing all files. |
|
void |
junitEnded()
Called after JUnit is finished running tests. |
|
void |
junitStarted()
Called after JUnit is started by the GlobalModel. |
|
void |
junitSuiteStarted(int numTests)
Called to indicate that a suite of tests has started running. |
|
void |
junitTestEnded(String name,
boolean wasSuccessful,
boolean causedError)
Called when a particular test has ended. |
|
void |
junitTestStarted(String name)
Called when a particular test is started. |
|
void |
newFileCreated(OpenDefinitionsDocument doc)
Called after a new document is created. |
|
void |
nonTestCase(boolean isTestAll)
Called when trying to test a non-TestCase class. |
|
void |
openProject(File pfile,
FileOpenSelector files)
Called when the project is being opened and the model needs the gui to do some stuff for it. |
|
void |
prepareForRun(OpenDefinitionsDocument doc)
Called when a file's main method is about to be run. |
|
void |
projectBuildDirChanged()
Called when the project's build directory has changed. |
|
void |
projectClosed()
Called when the project is being closed. |
|
void |
projectModified()
Called when the projects modified state has changed. |
|
void |
projectRunnableChanged()
Called when a project's main class has been set/unset. |
|
void |
projectWorkDirChanged()
Called when the project's build directory has changed. |
|
boolean |
quitFile(OpenDefinitionsDocument doc)
Called to ask the listener if the document should be saved before quitting. |
|
void |
saveBeforeCompile()
Called to demand that all files be saved before compiling. |
|
void |
saveBeforeJavadoc()
Called to demand that all files be saved before generating Javadoc. |
|
void |
saveUntitled()
Called to demand that the active document, which is untitled, be saved before compiling. |
|
boolean |
shouldRevertFile(OpenDefinitionsDocument doc)
Called to ask the listener if it is OK to replace the current document by a newer version on disk. |
|
void |
undoableEditHappened()
Called when an undoable edit occurs. |
|
| Methods inherited from class edu.rice.cs.drjava.model.repl.DummyInteractionsListener |
|---|
interactionEnded, interactionErrorOccurred, interactionIncomplete, interactionStarted, interpreterChanged, interpreterExited, interpreterReady, interpreterResetFailed, interpreterResetting, slaveJVMUsed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface edu.rice.cs.drjava.model.repl.InteractionsListener |
|---|
interactionEnded, interactionErrorOccurred, interactionIncomplete, interactionStarted, interpreterChanged, interpreterExited, interpreterReady, interpreterResetFailed, interpreterResetting, slaveJVMUsed |
| Constructor Detail |
|---|
public DummyGlobalModelListener()
| Method Detail |
|---|
public <P,R> void executeAsyncTask(AsyncTask<P,R> task,
P param,
boolean showProgress,
boolean lockUI)
executeAsyncTask in interface GlobalModelListenerpublic void handleAlreadyOpenDocument(OpenDefinitionsDocument doc)
GlobalModelListener
handleAlreadyOpenDocument in interface GlobalModelListenerdoc - true if the user wishes to revert the document, false to ignorepublic void filesNotFound(File... f)
filesNotFound in interface GlobalModelListenerpublic File[] filesReadOnly(File... f)
filesReadOnly in interface GlobalModelListenerf - files that are read-only
public void newFileCreated(OpenDefinitionsDocument doc)
newFileCreated in interface GlobalModelListenerpublic void fileSaved(OpenDefinitionsDocument doc)
fileSaved in interface GlobalModelListenerpublic void fileOpened(OpenDefinitionsDocument doc)
fileOpened in interface GlobalModelListenerpublic void fileClosed(OpenDefinitionsDocument doc)
fileClosed in interface GlobalModelListenerpublic void fileReverted(OpenDefinitionsDocument doc)
fileReverted in interface GlobalModelListenerpublic void undoableEditHappened()
undoableEditHappened in interface GlobalModelListenerpublic void compileStarted()
compileStarted in interface CompilerListener
public void compileEnded(File workDir,
List<? extends File> excludedFiles)
compileEnded in interface CompilerListenerpublic void compileAborted(Exception e)
compileAborted in interface CompilerListenerpublic void activeCompilerChanged()
activeCompilerChanged in interface CompilerListenerpublic void prepareForRun(OpenDefinitionsDocument doc)
prepareForRun in interface GlobalModelListenerpublic void filePathContainsPound()
filePathContainsPound in interface GlobalModelListenerpublic void compileBeforeJUnit(CompilerListener l)
compileBeforeJUnit in interface JUnitListenerpublic void junitStarted()
junitStarted in interface JUnitListenerpublic void junitClassesStarted()
junitClassesStarted in interface JUnitListenerpublic void junitSuiteStarted(int numTests)
junitSuiteStarted in interface JUnitListenernumTests - The number of tests in the suite to be run.public void junitTestStarted(String name)
junitTestStarted in interface JUnitListenername - The name of the test being started.
public void junitTestEnded(String name,
boolean wasSuccessful,
boolean causedError)
junitTestEnded in interface JUnitListenername - The name of the test that has ended.wasSuccessful - Whether the test passed or not.causedError - If not successful, whether the test caused an error or simply failed.public void junitEnded()
junitEnded in interface JUnitListenerpublic void consoleReset()
consoleReset in interface GlobalModelListenerpublic void saveBeforeCompile()
saveBeforeCompile in interface CompilerListenerpublic void saveUntitled()
CompilerListener
saveUntitled in interface CompilerListenerpublic void saveBeforeJavadoc()
saveBeforeJavadoc in interface JavadocListenerpublic void currentDirectoryChanged(File dir)
currentDirectoryChanged in interface GlobalModelListenerpublic void nonTestCase(boolean isTestAll)
nonTestCase in interface JUnitListenerisTestAll - whether or not it was a use of the test all buttonpublic void classFileError(ClassFileError e)
classFileError in interface JUnitListenere - the ClassFileError thrown when DrJava attempted to load the offending class.public boolean canAbandonFile(OpenDefinitionsDocument doc)
canAbandonFile in interface GlobalModelListenerpublic boolean quitFile(OpenDefinitionsDocument doc)
quitFile in interface GlobalModelListenerpublic boolean shouldRevertFile(OpenDefinitionsDocument doc)
shouldRevertFile in interface GlobalModelListenerpublic void javadocStarted()
javadocStarted in interface JavadocListener
public void javadocEnded(boolean success,
File destDir,
boolean allDocs)
javadocEnded in interface JavadocListenersuccess - whether the Javadoc operation generated proper outputdestDir - if (success == true) the location where the output was placed, otherwise undefinedallDocs - Whether we are running over all open documentspublic void activeDocumentChanged(OpenDefinitionsDocument active)
GlobalModelListener
activeDocumentChanged in interface GlobalModelListenerpublic void activeDocumentRefreshed(OpenDefinitionsDocument active)
GlobalModelListener
activeDocumentRefreshed in interface GlobalModelListenerpublic void focusOnLastFocusOwner()
GlobalModelListener
focusOnLastFocusOwner in interface GlobalModelListenerpublic void focusOnDefinitionsPane()
GlobalModelListener
focusOnDefinitionsPane in interface GlobalModelListener
public void documentNotFound(OpenDefinitionsDocument d,
File f)
GlobalModelListener
documentNotFound in interface GlobalModelListenerpublic void projectBuildDirChanged()
projectBuildDirChanged in interface GlobalModelListenerpublic void projectWorkDirChanged()
projectWorkDirChanged in interface GlobalModelListener
public void openProject(File pfile,
FileOpenSelector files)
openProject in interface GlobalModelListenerpfile - the location of the project filefiles - The files the gui should open for the modelpublic void projectClosed()
projectClosed in interface GlobalModelListenerpublic void projectModified()
projectModified in interface GlobalModelListenerpublic void projectRunnableChanged()
projectRunnableChanged in interface GlobalModelListenerpublic void browserChanged()
browserChanged in interface GlobalModelListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||