|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.ui.MainFrameStatics
public class MainFrameStatics
Utilities for DrJava's main window.
| Nested Class Summary | |
|---|---|
static class |
MainFrameStatics.AutoCompletePopupEntry
|
static class |
MainFrameStatics.GoToFileListEntry
Wrapper class for the "Go to File" dialog list entries. |
static class |
MainFrameStatics.JavaAPIListEntry
Wrapper class for the "Open Javadoc" and "Auto Import" dialog list entries. |
| Constructor Summary | |
|---|---|
MainFrameStatics()
|
|
| Method Summary | |
|---|---|
static JMenuItem |
newCheckBoxMenuItem(Action action)
Returns a JRadioButtonMenuItem that looks like a JCheckBoxMenuItem. |
static File |
proposeToChangeExtension(Component parent,
File input,
String title,
String message,
String changeButton,
String keepButton,
String newExt)
Propose to the user to change the extension of the file. |
static void |
showClassNotFoundError(Component parent,
ClassNotFoundException cnfe)
|
static void |
showDebugError(Component parent,
DebugException de)
|
static void |
showError(Component parent,
String title,
String message)
|
static void |
showError(Component parent,
Throwable e,
String title,
String message)
|
static void |
showErrorWithMessageIfAvailable(Component parent,
Throwable e,
String title,
String message)
|
static void |
showFileNotFoundError(Component parent,
FileNotFoundException fnf)
|
static void |
showIOError(Component parent,
IOException ioe)
|
static void |
showJUnitInterrupted(Component parent,
String message)
|
static void |
showJUnitInterrupted(Component parent,
UnexpectedException e)
|
static void |
showNoClassDefError(Component parent,
NoClassDefFoundError ncde)
|
static void |
showProjectFileParseError(Component parent,
MalformedProjectFileException mpfe)
|
static void |
showWarning(Component parent,
Throwable e,
String title,
String message)
|
static boolean |
verifyOverwrite(Component parent,
File f)
Confirms with the user that the file should be overwritten. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MainFrameStatics()
| Method Detail |
|---|
public static File proposeToChangeExtension(Component parent,
File input,
String title,
String message,
String changeButton,
String keepButton,
String newExt)
parent - parent GUI componentinput - input filetitle - dialog titlemessage - dialog messagechangeButton - text for the "yes, change it!" buttonkeepButton - text for the "no, leave it!" buttonnewExt - new extension if changed
public static boolean verifyOverwrite(Component parent,
File f)
f - file to overwrite
true iff the user accepts overwriting.
public static void showProjectFileParseError(Component parent,
MalformedProjectFileException mpfe)
public static void showFileNotFoundError(Component parent,
FileNotFoundException fnf)
public static void showIOError(Component parent,
IOException ioe)
public static void showErrorWithMessageIfAvailable(Component parent,
Throwable e,
String title,
String message)
public static void showClassNotFoundError(Component parent,
ClassNotFoundException cnfe)
public static void showNoClassDefError(Component parent,
NoClassDefFoundError ncde)
public static void showDebugError(Component parent,
DebugException de)
public static void showJUnitInterrupted(Component parent,
UnexpectedException e)
public static void showJUnitInterrupted(Component parent,
String message)
public static void showError(Component parent,
Throwable e,
String title,
String message)
public static void showError(Component parent,
String title,
String message)
public static void showWarning(Component parent,
Throwable e,
String title,
String message)
public static JMenuItem newCheckBoxMenuItem(Action action)
action - Action for the menu item
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||