|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.model.GlobalModelTestCase.FileSelector
public static class GlobalModelTestCase.FileSelector
This class is used by several test cases in Compile Tests that expect incorrect behavior concerning the saving of files. This special FileSelector is included to ensure compliance with these test cases, for which the intricacies of saving files are unimportant. The only FileSelector that honest-to-supreme-deity matters is is DefaultGlobalModel.ConcreteOpenDefDoc, which is much more like WarningFileSelector
| Constructor Summary | |
|---|---|
GlobalModelTestCase.FileSelector(File f)
|
|
GlobalModelTestCase.FileSelector(File f1,
File f2)
|
|
| 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.FileSelector(File f)
public GlobalModelTestCase.FileSelector(File f1,
File f2)
| 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 | |||||||||