edu.rice.cs.util
Interface DirectorySelector

All Known Implementing Classes:
JavadocDialog

public interface DirectorySelector

An interface to give GlobalModel a directory for various operations.

Version:
$Id: DirectorySelector.java 4419 2008-03-27 06:58:07Z rcartwright $

Method Summary
 boolean askUser(String message, String title)
          Asks the user a yes/no question.
 File getDirectory(File start)
          Gets a directory.
 boolean isRecursive()
          Returns true if the user wants the directory to include all subdirectories.
 void warnUser(String message, String title)
          Warns the user about an error condition.
 

Method Detail

getDirectory

File getDirectory(File start)
                  throws OperationCanceledException
Gets a directory.

Parameters:
start - a file to start the search from, or null to allow implementation to determine
Returns:
any valid directory on the file system
Throws:
OperationCanceledException - if the selection request is canceled

askUser

boolean askUser(String message,
                String title)
Asks the user a yes/no question.

Returns:
true if the user responded affirmatively, false if negatively

warnUser

void warnUser(String message,
              String title)
Warns the user about an error condition.


isRecursive

boolean isRecursive()
Returns true if the user wants the directory to include all subdirectories.