|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rice.cs.drjava.ui.JavadocDialog
public class JavadocDialog
Manages a dialog box that can select a destination directory for generating Javadoc. The getDirectory method should be called to show the dialog, using the suggested location for the Javadoc as the "start" file. If the user modifies the selection once, the user's choice will be remembered and no further suggestions will be used.
Constructor Summary | |
---|---|
JavadocDialog(JFrame frame)
Creates a new JavadocDialog to show from the given frame. |
Method Summary | |
---|---|
boolean |
askUser(String message,
String title)
Asks the user a yes/no question. |
File |
getDirectory(File start)
Shows the dialog prompting the user for a destination directory in which to generate Javadoc. |
boolean |
isRecursive()
Returns true if the user wants the directory to include all subdirectories. |
void |
setSuggestedDir(File dir)
Sets the suggested destination directory for Javadoc generation. |
void |
setUseSuggestion(boolean use)
Sets whether the dialog should use the suggested directory provided to the getDirectory method as the default location. |
void |
warnUser(String message,
String title)
Warns the user about an error condition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavadocDialog(JFrame frame)
frame
- Parent frame of this dialogMethod Detail |
---|
public boolean isRecursive()
DirectorySelector
isRecursive
in interface DirectorySelector
public File getDirectory(File start) throws OperationCanceledException
getDirectory
in interface DirectorySelector
start
- The directory to display in the text box. If null,
the most recent suggested directory (passed in via setSuggestedDir)
is displayed, unless the user has modified a previous suggestion.
OperationCanceledException
- if the selection request is canceledpublic boolean askUser(String message, String title)
askUser
in interface DirectorySelector
public void warnUser(String message, String title)
warnUser
in interface DirectorySelector
public void setSuggestedDir(File dir)
dir
- Suggested destination directorypublic void setUseSuggestion(boolean use)
use
- Whether to use the suggested directory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |