|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.model.GlobalModelTestCase.WarningFileSelector
public static class GlobalModelTestCase.WarningFileSelector
| Constructor Summary | |
|---|---|
GlobalModelTestCase.WarningFileSelector(File f)
|
|
| 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.WarningFileSelector(File f)
| Method Detail |
|---|
public File getFile()
throws OperationCanceledException
FileSaveSelector
getFile in interface FileSaveSelectorOperationCanceledException - if the save request is cancelled
public File[] getFiles()
throws OperationCanceledException
getFiles in interface FileOpenSelectorOperationCanceledExceptionpublic boolean warnFileOpen(File f)
FileSaveSelector
warnFileOpen in interface FileSaveSelectorf - the file being saved
public boolean verifyOverwrite()
FileSaveSelector
verifyOverwrite in interface FileSaveSelector
public boolean shouldSaveAfterFileMoved(OpenDefinitionsDocument doc,
File oldFile)
FileSaveSelector
shouldSaveAfterFileMoved in interface FileSaveSelectoroldFile - The file that was moved or deleted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||