|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GlobalModelListener
An interface for responding to events generated by the GlobalModel. TODO: Refactor to remove component listeners from Global level.
Method Summary | ||
---|---|---|
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 |
consoleReset()
Called when the console window is reset. |
|
void |
currentDirectoryChanged(File dir)
Called when the selection in the navigator 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 |
newFileCreated(OpenDefinitionsDocument doc)
Called after a new document is created. |
|
void |
openProject(File projectFile,
FileOpenSelector files)
Called while the project is being opened. |
|
void |
prepareForRun(OpenDefinitionsDocument doc)
Called when a file's main method is about to be run. |
|
void |
projectBuildDirChanged()
Called when the build directory is modified in the model. |
|
void |
projectClosed()
Called when the project is being closed. |
|
void |
projectModified()
Called if the project's modified state has changed. |
|
void |
projectRunnableChanged()
Called when the project runnability changed (ie, when the main file is set/unset). |
|
void |
projectWorkDirChanged()
Called when the working directory is modified in the model. |
|
boolean |
quitFile(OpenDefinitionsDocument doc)
Called to ask the listener if this document should be saved before quitting. |
|
boolean |
shouldRevertFile(OpenDefinitionsDocument doc)
Called to ask the listener if it is OK to revert the current document to the version saved on disk. |
|
void |
undoableEditHappened()
Called when an undoable edit occurs. |
Methods inherited from interface edu.rice.cs.drjava.model.repl.InteractionsListener |
---|
interactionEnded, interactionErrorOccurred, interactionIncomplete, interactionStarted, interpreterChanged, interpreterExited, interpreterReady, interpreterResetFailed, interpreterResetting, slaveJVMUsed |
Methods inherited from interface edu.rice.cs.drjava.model.javadoc.JavadocListener |
---|
javadocEnded, javadocStarted, saveBeforeJavadoc |
Methods inherited from interface edu.rice.cs.drjava.model.compiler.CompilerListener |
---|
activeCompilerChanged, compileAborted, compileEnded, compileStarted, saveBeforeCompile, saveUntitled |
Methods inherited from interface edu.rice.cs.drjava.model.junit.JUnitListener |
---|
classFileError, compileBeforeJUnit, junitClassesStarted, junitEnded, junitStarted, junitSuiteStarted, junitTestEnded, junitTestStarted, nonTestCase |
Method Detail |
---|
<P,R> void executeAsyncTask(AsyncTask<P,R> task, P param, boolean showProgress, boolean lockUI)
void handleAlreadyOpenDocument(OpenDefinitionsDocument doc)
doc
- true
if the user wishes to revert the document, false
to ignorevoid filesNotFound(File... f)
File[] filesReadOnly(File... f)
f
- files that are read-only
void newFileCreated(OpenDefinitionsDocument doc)
void fileSaved(OpenDefinitionsDocument doc)
void fileOpened(OpenDefinitionsDocument doc)
void fileClosed(OpenDefinitionsDocument doc)
void fileReverted(OpenDefinitionsDocument doc)
boolean canAbandonFile(OpenDefinitionsDocument doc)
boolean quitFile(OpenDefinitionsDocument doc)
boolean shouldRevertFile(OpenDefinitionsDocument doc)
void prepareForRun(OpenDefinitionsDocument doc)
void consoleReset()
void undoableEditHappened()
void filePathContainsPound()
void activeDocumentChanged(OpenDefinitionsDocument active)
void activeDocumentRefreshed(OpenDefinitionsDocument active)
void focusOnDefinitionsPane()
void focusOnLastFocusOwner()
void currentDirectoryChanged(File dir)
void projectBuildDirChanged()
void projectWorkDirChanged()
void openProject(File projectFile, FileOpenSelector files)
projectFile
- the location of the project filefiles
- The files the gui should open for the modelvoid projectClosed()
void projectModified()
void projectRunnableChanged()
void documentNotFound(OpenDefinitionsDocument d, File f)
void browserChanged()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |