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


Field Summary
private  File _file
           
private  File _file2
           
 
Constructor Summary
GlobalModelTestCase.FileSelector(File f)
           
GlobalModelTestCase.FileSelector(File f1, File f2)
           
 
Method Summary
 File getFile()
           
 File[] getFiles()
           
 boolean verifyOverwrite()
           
 void warnFileOpen()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

_file

private File _file

_file2

private File _file2
Constructor Detail

GlobalModelTestCase.FileSelector

public GlobalModelTestCase.FileSelector(File f)

GlobalModelTestCase.FileSelector

public GlobalModelTestCase.FileSelector(File f1,
                                        File f2)
Method Detail

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