Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.ide.view
Interface IDEDialogs  view IDEDialogs download IDEDialogs.java


public interface IDEDialogs

The IDEDialogs provides the interface through which extension writers can invoke standard IDE dialogs, such as: information, warning, error, file and directory selection dialogs.


Field Summary
static int CANCEL_ID
          Button id for a "Cancel" button.
static int NO_ID
          Button id for a "No" button.
static int OK_CANCEL_OPTION
          Requests an option dialog with a OK and Cancel buttons.
static int OK_ID
          Button id for an "Ok" button.
static int YES_ID
          Button id for a "Yes" button.
static int YES_NO_CANCEL_OPTION
          Requests an option dialog with a Yes, No, and Cancel buttons.
static int YES_NO_OPTION
          Requests an option dialog with a Yes and No buttons.
 
Method Summary
 URISelectionDialog getDirectorySelectionDialog(java.lang.String title, java.net.URI location, javax.ide.command.Context context, GUIPanel parent)
          Creates a "directory selection" dialog.
 URISelectionDialog getFileSelectionDialog(java.lang.String title, java.net.URI location, javax.ide.command.Context context, GUIPanel parent)
          Creates a "file selection" dialog.
 void showErrorDialog(java.lang.String title, java.lang.String message, GUIPanel parent)
          Show an error message box with title and message as specified
 void showInformationDialog(java.lang.String title, java.lang.String message, GUIPanel parent)
          Show an informational message box with title and message as specified.
 int showOptionDialog(java.lang.String title, java.lang.String message, int option, GUIPanel parent)
          Show an options dialog with title and message as specified.
 void showWarningDialog(java.lang.String title, java.lang.String message, GUIPanel parent)
          Show a warning type dialog with title and message as specified.
 

Field Detail

OK_ID

public static final int OK_ID
Button id for an "Ok" button.

See Also:
Constant Field Values

YES_ID

public static final int YES_ID
Button id for a "Yes" button.

See Also:
Constant Field Values

NO_ID

public static final int NO_ID
Button id for a "No" button.

See Also:
Constant Field Values

CANCEL_ID

public static final int CANCEL_ID
Button id for a "Cancel" button.

See Also:
Constant Field Values

OK_CANCEL_OPTION

public static final int OK_CANCEL_OPTION
Requests an option dialog with a OK and Cancel buttons.

See Also:
Constant Field Values

YES_NO_OPTION

public static final int YES_NO_OPTION
Requests an option dialog with a Yes and No buttons.

See Also:
Constant Field Values

YES_NO_CANCEL_OPTION

public static final int YES_NO_CANCEL_OPTION
Requests an option dialog with a Yes, No, and Cancel buttons.

See Also:
Constant Field Values
Method Detail

getFileSelectionDialog

public URISelectionDialog getFileSelectionDialog(java.lang.String title,
                                                 java.net.URI location,
                                                 javax.ide.command.Context context,
                                                 GUIPanel parent)
Creates a "file selection" dialog.


getDirectorySelectionDialog

public URISelectionDialog getDirectorySelectionDialog(java.lang.String title,
                                                      java.net.URI location,
                                                      javax.ide.command.Context context,
                                                      GUIPanel parent)
Creates a "directory selection" dialog.


showErrorDialog

public void showErrorDialog(java.lang.String title,
                            java.lang.String message,
                            GUIPanel parent)
Show an error message box with title and message as specified


showInformationDialog

public void showInformationDialog(java.lang.String title,
                                  java.lang.String message,
                                  GUIPanel parent)
Show an informational message box with title and message as specified.


showWarningDialog

public void showWarningDialog(java.lang.String title,
                              java.lang.String message,
                              GUIPanel parent)
Show a warning type dialog with title and message as specified.


showOptionDialog

public int showOptionDialog(java.lang.String title,
                            java.lang.String message,
                            int option,
                            GUIPanel parent)
Show an options dialog with title and message as specified. An option dialog can have OK, Cancel buttons; Yes, No buttons; and Yes, No, Cancel buttons. The button option is controlled by the constants: OK_CANCEL_OPTION, YES_NO_OPTION, and YES_NO_CANCEL_OPTION.