edu.rice.cs.drjava.model
Class GlobalModelTestCase.FileSelector
java.lang.Object
|
+--edu.rice.cs.drjava.model.GlobalModelTestCase.FileSelector
- All Implemented Interfaces:
- FileOpenSelector, FileSaveSelector
- Enclosing class:
- GlobalModelTestCase
- public class GlobalModelTestCase.FileSelector
- extends Object
- implements FileOpenSelector, FileSaveSelector
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.DefinitionsDocumentHandler, which is much
more like WarningFileSelector
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
_file
private File _file
_file2
private File _file2
GlobalModelTestCase.FileSelector
public GlobalModelTestCase.FileSelector(File f)
GlobalModelTestCase.FileSelector
public GlobalModelTestCase.FileSelector(File f1,
File f2)
getFile
public File getFile()
throws OperationCanceledException
- Specified by:
getFile
in interface FileSaveSelector
getFiles
public File[] getFiles()
throws OperationCanceledException
- Specified by:
getFiles
in interface FileOpenSelector
warnFileOpen
public void warnFileOpen()
- Specified by:
warnFileOpen
in interface FileSaveSelector
verifyOverwrite
public boolean verifyOverwrite()
- Specified by:
verifyOverwrite
in interface FileSaveSelector