|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rice.cs.drjava.model.GlobalModelTestCase.CancelingSelector
public static class GlobalModelTestCase.CancelingSelector
Constructor Summary | |
---|---|
GlobalModelTestCase.CancelingSelector()
|
Method Summary | |
---|---|
File |
getFile()
Returns the file to save. |
File[] |
getFiles()
|
boolean |
shouldSaveAfterFileMoved(OpenDefinitionsDocument doc,
File oldFile)
Confirms whether a new file should be selected since the previously chosen file has been deleted or moved. |
boolean |
verifyOverwrite()
Confirms whether the existing chosen file should be overwritten. |
boolean |
warnFileOpen(File f)
Informs the user that the chosen file is already open and prompts them asking whether to continue with the save |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlobalModelTestCase.CancelingSelector()
Method Detail |
---|
public File getFile() throws OperationCanceledException
FileSaveSelector
getFile
in interface FileSaveSelector
OperationCanceledException
- if the save request is cancelledpublic File[] getFiles() throws OperationCanceledException
getFiles
in interface FileOpenSelector
OperationCanceledException
public boolean warnFileOpen(File f)
FileSaveSelector
warnFileOpen
in interface FileSaveSelector
f
- the file being saved
public boolean verifyOverwrite()
FileSaveSelector
verifyOverwrite
in interface FileSaveSelector
public boolean shouldSaveAfterFileMoved(OpenDefinitionsDocument doc, File oldFile)
FileSaveSelector
shouldSaveAfterFileMoved
in interface FileSaveSelector
oldFile
- The file that was moved or deleted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |