|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for responding to events generated by the GlobalModel.
Inner Class Summary | |
static class |
GlobalModelListener.SaveReason
Reasons provided for demanding a save before proceeding. |
Field Summary | |
static GlobalModelListener.SaveReason |
COMPILE_REASON
This enumeration of save reason means that we want to compile. |
static GlobalModelListener.SaveReason |
DEBUG_REASON
This enumeration of save reason means that we want to debug with JSwat. |
static GlobalModelListener.SaveReason |
JUNIT_REASON
This enumeration of save reason means that we want to run JUnit. |
Method Summary | |
boolean |
canAbandonFile(OpenDefinitionsDocument doc)
Called to ask the listener if it is OK to abandon the current document. |
void |
compileEnded()
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 |
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 |
fileReverted(OpenDefinitionsDocument doc)
Called after a document is reverted. |
void |
fileSaved(OpenDefinitionsDocument doc)
Called after the current document is saved. |
void |
interactionEnded()
Called when an interaction has finished running. |
void |
interactionsExited(int status)
Called when the interactions JVM was closed by System.exit or by being aborted. |
void |
interactionsReset()
Called when the interactions window is reset. |
void |
interactionsResetting()
Called when the interactionsJVM has begun to be resetted |
void |
interactionStarted()
Called after an interaction is started by the GlobalModel. |
void |
junitEnded()
Called after JUnit is finished running tests. |
void |
junitRunning()
Called once JUnit actually starts running the tests. |
void |
junitStarted(OpenDefinitionsDocument doc)
Called after JUnit is started by the GlobalModel. |
void |
newFileCreated(OpenDefinitionsDocument doc)
Called after a new document is created. |
void |
nonTestCase()
Called when trying to test a non-TestCase class. |
void |
saveAllBeforeProceeding(GlobalModelListener.SaveReason reason)
Called to demand that the listeners save all open documents before the GlobalModel can proceed with another action. |
boolean |
shouldRevertFile(OpenDefinitionsDocument doc)
Called to ask the listener if it is OK to revert the current document to a newer version saved on file. |
Field Detail |
public static final GlobalModelListener.SaveReason COMPILE_REASON
public static final GlobalModelListener.SaveReason JUNIT_REASON
public static final GlobalModelListener.SaveReason DEBUG_REASON
Method Detail |
public void newFileCreated(OpenDefinitionsDocument doc)
public void fileSaved(OpenDefinitionsDocument doc)
public void fileOpened(OpenDefinitionsDocument doc)
public void fileClosed(OpenDefinitionsDocument doc)
public void fileReverted(OpenDefinitionsDocument doc)
public void compileStarted()
public void compileEnded()
public void junitStarted(OpenDefinitionsDocument doc)
public void junitRunning()
public void junitEnded()
public void interactionStarted()
public void interactionEnded()
public void interactionsResetting()
public void interactionsReset()
public void interactionsExited(int status)
status
- The exit codepublic void consoleReset()
public void saveAllBeforeProceeding(GlobalModelListener.SaveReason reason)
public void nonTestCase()
public boolean canAbandonFile(OpenDefinitionsDocument doc)
public boolean shouldRevertFile(OpenDefinitionsDocument doc)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |