public class Messages
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Messages.InputDialog |
static class |
Messages.MultilineInputDialog |
static interface |
Messages.OkCancelResult |
static interface |
Messages.YesNoCancelResult |
static interface |
Messages.YesNoResult |
Modifier and Type | Field and Description |
---|---|
static int |
CANCEL |
static java.lang.String |
CANCEL_BUTTON
Deprecated.
Use
getCancelButton() instead |
static int |
NO |
static java.lang.String |
NO_BUTTON
Deprecated.
Use
getNoButton() instead |
static int |
OK |
static java.lang.String |
OK_BUTTON
Deprecated.
Use
getOkButton() instead |
static int |
YES |
static java.lang.String |
YES_BUTTON
Deprecated.
Use
getYesButton() instead |
Constructor and Description |
---|
Messages() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canShowMacSheetPanel() |
static javax.swing.JTextPane |
configureMessagePaneUi(javax.swing.JTextPane messageComponent,
java.lang.String message) |
static javax.swing.JTextPane |
configureMessagePaneUi(javax.swing.JTextPane messageComponent,
java.lang.String message,
UIUtil.FontSize fontSize) |
static java.lang.Runnable |
createMessageDialogRemover(Project project) |
static java.lang.String |
getCancelButton() |
static javax.swing.Icon |
getErrorIcon() |
static javax.swing.Icon |
getInformationIcon() |
static java.lang.String |
getNoButton() |
static java.lang.String |
getOkButton() |
static javax.swing.Icon |
getQuestionIcon() |
static TestDialog |
getTestImplementation() |
static TestInputDialog |
getTestInputImplementation() |
static javax.swing.Icon |
getWarningIcon() |
static java.lang.String |
getYesButton() |
static void |
installHyperlinkSupport(javax.swing.JTextPane messageComponent) |
static boolean |
isApplicationInUnitTestOrHeadless() |
static boolean |
isMacSheetEmulation() |
static TestDialog |
setTestDialog(TestDialog newValue) |
static TestInputDialog |
setTestInputDialog(TestInputDialog newValue) |
static int |
showCheckboxMessageDialog(java.lang.String message,
java.lang.String title,
java.lang.String [] options,
java.lang.String checkboxText,
boolean checked,
int defaultOptionIndex,
int focusedOptionIndex,
javax.swing.Icon icon,
PairFunction<? super java.lang.Integer,? super javax.swing.JCheckBox,java.lang.Integer> exitFunc) |
static int |
showCheckboxOkCancelDialog(java.lang.String message,
java.lang.String title,
java.lang.String checkboxText,
boolean checked,
int defaultOptionIndex,
int focusedOptionIndex,
javax.swing.Icon icon) |
static int |
showChooseDialog(java.awt.Component parent,
java.lang.String message,
java.lang.String title,
java.lang.String[] values,
java.lang.String initialValue,
javax.swing.Icon icon)
Deprecated.
It looks awful!
|
static int |
showChooseDialog(Project project,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String[] values,
java.lang.String initialValue)
Deprecated.
It looks awful!
|
static int |
showChooseDialog(java.lang.String message,
java.lang.String title,
java.lang.String[] values,
java.lang.String initialValue,
javax.swing.Icon icon)
Deprecated.
It looks awful!
|
static int |
showConfirmationDialog(javax.swing.JComponent parent,
java.lang.String message,
java.lang.String title,
java.lang.String yesText,
java.lang.String noText)
Shows confirmation dialog with specified confirmation options.
|
static int |
showDialog(java.awt.Component parent,
java.lang.String message,
java.lang.String title,
java.lang.String [] options,
int defaultOptionIndex,
javax.swing.Icon icon) |
static int |
showDialog(Project project,
java.lang.String message,
java.lang.String title,
java.lang.String [] options,
int defaultOptionIndex,
javax.swing.Icon icon)
Please, use
showOkCancelDialog(com.intellij.openapi.project.Project, java.lang.String, java.lang.String, java.lang.String, java.lang.String, javax.swing.Icon, com.intellij.openapi.ui.DialogWrapper.DoNotAskOption) or showYesNoCancelDialog(com.intellij.openapi.project.Project, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, javax.swing.Icon) if possible (these dialogs implements native OS behavior)! |
static int |
showDialog(Project project,
java.lang.String message,
java.lang.String title,
java.lang.String [] options,
int defaultOptionIndex,
javax.swing.Icon icon,
DialogWrapper.DoNotAskOption doNotAskOption)
Please, use
showOkCancelDialog(com.intellij.openapi.project.Project, java.lang.String, java.lang.String, java.lang.String, java.lang.String, javax.swing.Icon, com.intellij.openapi.ui.DialogWrapper.DoNotAskOption) or showYesNoCancelDialog(com.intellij.openapi.project.Project, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, javax.swing.Icon) if possible (these dialogs implements native OS behavior)! |
static int |
showDialog(Project project,
java.lang.String message,
java.lang.String title,
java.lang.String moreInfo,
java.lang.String [] options,
int defaultOptionIndex,
int focusedOptionIndex,
javax.swing.Icon icon) |
static int |
showDialog(java.lang.String message,
java.lang.String title,
java.lang.String [] options,
int defaultOptionIndex,
javax.swing.Icon icon)
Use this method only if you do not know project or component
|
static int |
showDialog(java.lang.String message,
java.lang.String title,
java.lang.String [] options,
int defaultOptionIndex,
javax.swing.Icon icon,
DialogWrapper.DoNotAskOption doNotAskOption)
Use this method only if you do not know project or component
|
static int |
showDialog(java.lang.String message,
java.lang.String title,
java.lang.String [] options,
int defaultOptionIndex,
int focusedOptionIndex,
javax.swing.Icon icon,
DialogWrapper.DoNotAskOption doNotAskOption)
Use this method only if you do not know project or component
|
static java.lang.String |
showEditableChooseDialog(java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String[] values,
java.lang.String initialValue,
InputValidator validator) |
static void |
showErrorDialog(java.awt.Component component,
java.lang.String message) |
static void |
showErrorDialog(java.awt.Component component,
java.lang.String message,
java.lang.String title) |
static void |
showErrorDialog(Project project,
java.lang.String message,
java.lang.String title) |
static void |
showErrorDialog(java.lang.String message,
java.lang.String title)
Use this method only if you do not know project or component
|
static int |
showIdeaMessageDialog(Project project,
java.lang.String message,
java.lang.String title,
java.lang.String [] options,
int defaultOptionIndex,
javax.swing.Icon icon,
DialogWrapper.DoNotAskOption doNotAskOption) |
static void |
showInfoMessage(java.awt.Component component,
java.lang.String message,
java.lang.String title)
Shows dialog with given message and title, information icon
getInformationIcon() and OK button |
static void |
showInfoMessage(Project project,
java.lang.String message,
java.lang.String title)
Shows dialog with given message and title, information icon
getInformationIcon() and OK button |
static void |
showInfoMessage(java.lang.String message,
java.lang.String title)
Shows dialog with given message and title, information icon
getInformationIcon() and OK button
Use this method only if you do not know project or component |
static java.lang.String |
showInputDialog(java.awt.Component parent,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon) |
static java.lang.String |
showInputDialog(java.awt.Component parent,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String initialValue,
InputValidator validator) |
static java.lang.String |
showInputDialog(Project project,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon) |
static java.lang.String |
showInputDialog(Project project,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String initialValue,
InputValidator validator) |
static java.lang.String |
showInputDialog(Project project,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String initialValue,
InputValidator validator,
TextRange selection) |
static java.lang.String |
showInputDialog(Project project,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String initialValue,
InputValidator validator,
TextRange selection,
java.lang.String comment) |
static java.lang.String |
showInputDialog(java.lang.String message,
java.lang.String title,
javax.swing.Icon icon)
Use this method only if you do not know project or component
|
static java.lang.String |
showInputDialog(java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String initialValue,
InputValidator validator)
Use this method only if you do not know project or component
|
static Pair<java.lang.String,java.lang.Boolean> |
showInputDialogWithCheckBox(java.lang.String message,
java.lang.String title,
java.lang.String checkboxText,
boolean checked,
boolean checkboxEnabled,
javax.swing.Icon icon,
java.lang.String initialValue,
InputValidator validator) |
static void |
showMessageDialog(java.awt.Component parent,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon) |
static void |
showMessageDialog(Project project,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon) |
static void |
showMessageDialog(java.lang.String message,
java.lang.String title,
javax.swing.Icon icon)
Use this method only if you do not know project or component
|
static java.lang.String |
showMultilineInputDialog(Project project,
java.lang.String message,
java.lang.String title,
java.lang.String initialValue,
javax.swing.Icon icon,
InputValidator validator) |
static int |
showOkCancelDialog(java.awt.Component parent,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon)
Deprecated.
Please provide meaningful action names via
showOkCancelDialog(Component, String, String, String, String, Icon) instead |
static int |
showOkCancelDialog(java.awt.Component parent,
java.lang.String message,
java.lang.String title,
java.lang.String okText,
java.lang.String cancelText,
javax.swing.Icon icon) |
static int |
showOkCancelDialog(Project project,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon)
Deprecated.
Please provide meaningful action names via
showOkCancelDialog(Project, String, String, String, String, Icon) instead |
static int |
showOkCancelDialog(Project project,
java.lang.String message,
java.lang.String title,
java.lang.String okText,
java.lang.String cancelText,
javax.swing.Icon icon) |
static int |
showOkCancelDialog(Project project,
java.lang.String message,
java.lang.String title,
java.lang.String okText,
java.lang.String cancelText,
javax.swing.Icon icon,
DialogWrapper.DoNotAskOption doNotAskOption) |
static int |
showOkCancelDialog(java.lang.String message,
java.lang.String title,
javax.swing.Icon icon)
Deprecated.
Please provide meaningful action names via
showOkCancelDialog(String, String, String, String, Icon) instead |
static int |
showOkCancelDialog(java.lang.String message,
java.lang.String title,
java.lang.String okText,
java.lang.String cancelText,
javax.swing.Icon icon)
Use this method only if you do not know project or component
|
static int |
showOkCancelDialog(java.lang.String message,
java.lang.String title,
java.lang.String okText,
java.lang.String cancelText,
javax.swing.Icon icon,
DialogWrapper.DoNotAskOption doNotAskOption)
Use this method only if you do not know project or component
|
static java.lang.String |
showPasswordDialog(Project project,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon) |
static java.lang.String |
showPasswordDialog(Project project,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
InputValidator validator) |
static java.lang.String |
showPasswordDialog(java.lang.String message,
java.lang.String title) |
static void |
showTextAreaDialog(javax.swing.JTextField textField,
java.lang.String title,
java.lang.String dimensionServiceKey) |
static void |
showTextAreaDialog(javax.swing.JTextField textField,
java.lang.String title,
java.lang.String dimensionServiceKey,
Function<? super java.lang.String,? extends java.util.List<java.lang.String>> parser,
Function<? super java.util.List<java.lang.String>,java.lang.String> lineJoiner)
Shows dialog with text area to edit long strings that don't fit in text field.
|
static int |
showTwoStepConfirmationDialog(java.lang.String message,
java.lang.String title,
java.lang.String checkboxText,
javax.swing.Icon icon) |
static void |
showWarningDialog(java.awt.Component component,
java.lang.String message,
java.lang.String title) |
static void |
showWarningDialog(Project project,
java.lang.String message,
java.lang.String title) |
static void |
showWarningDialog(java.lang.String message,
java.lang.String title)
Use this method only if you do not know project or component
|
static int |
showYesNoCancelDialog(java.awt.Component parent,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon) |
static int |
showYesNoCancelDialog(java.awt.Component parent,
java.lang.String message,
java.lang.String title,
java.lang.String yes,
java.lang.String no,
java.lang.String cancel,
javax.swing.Icon icon) |
static int |
showYesNoCancelDialog(Project project,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon) |
static int |
showYesNoCancelDialog(Project project,
java.lang.String message,
java.lang.String title,
java.lang.String yes,
java.lang.String no,
java.lang.String cancel,
javax.swing.Icon icon) |
static int |
showYesNoCancelDialog(java.lang.String message,
java.lang.String title,
javax.swing.Icon icon)
Use this method only if you do not know project or component
|
static int |
showYesNoCancelDialog(java.lang.String message,
java.lang.String title,
java.lang.String yes,
java.lang.String no,
java.lang.String cancel,
javax.swing.Icon icon)
Use this method only if you do not know project or component
|
static int |
showYesNoCancelDialog(java.lang.String message,
java.lang.String title,
java.lang.String yes,
java.lang.String no,
java.lang.String cancel,
javax.swing.Icon icon,
DialogWrapper.DoNotAskOption doNotAskOption)
Use this method only if you do not know project or component
|
static int |
showYesNoDialog(java.awt.Component parent,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon) |
static int |
showYesNoDialog(Project project,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon) |
static int |
showYesNoDialog(Project project,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
DialogWrapper.DoNotAskOption doNotAskOption) |
static int |
showYesNoDialog(Project project,
java.lang.String message,
java.lang.String title,
java.lang.String yesText,
java.lang.String noText,
javax.swing.Icon icon) |
static int |
showYesNoDialog(Project project,
java.lang.String message,
java.lang.String title,
java.lang.String yesText,
java.lang.String noText,
javax.swing.Icon icon,
DialogWrapper.DoNotAskOption doNotAskOption) |
static int |
showYesNoDialog(java.lang.String message,
java.lang.String title,
javax.swing.Icon icon)
Use this method only if you do not know project or component
|
static int |
showYesNoDialog(java.lang.String message,
java.lang.String title,
java.lang.String yesText,
java.lang.String noText,
javax.swing.Icon icon)
Use this method only if you do not know project or component
|
static int |
showYesNoDialog(java.lang.String message,
java.lang.String title,
java.lang.String yesText,
java.lang.String noText,
javax.swing.Icon icon,
DialogWrapper.DoNotAskOption doNotAskOption)
Use this method only if you do not know project or component
|
static javax.swing.JComponent |
wrapToScrollPaneIfNeeded(javax.swing.JComponent comp,
int columns,
int lines) |
public static final int OK
public static final int YES
public static final int NO
public static final int CANCEL
@Deprecated public static final java.lang.String OK_BUTTON
getOkButton()
instead@Deprecated public static final java.lang.String YES_BUTTON
getYesButton()
instead@Deprecated public static final java.lang.String NO_BUTTON
getNoButton()
instead@Deprecated public static final java.lang.String CANCEL_BUTTON
getCancelButton()
insteadpublic static java.lang.String getOkButton()
public static java.lang.String getYesButton()
public static java.lang.String getNoButton()
public static java.lang.String getCancelButton()
public static TestDialog setTestDialog(TestDialog newValue)
public static TestInputDialog setTestInputDialog(TestInputDialog newValue)
public static TestDialog getTestImplementation()
public static TestInputDialog getTestInputImplementation()
public static javax.swing.Icon getErrorIcon()
public static javax.swing.Icon getInformationIcon()
public static javax.swing.Icon getWarningIcon()
public static javax.swing.Icon getQuestionIcon()
public static void installHyperlinkSupport(javax.swing.JTextPane messageComponent)
public static javax.swing.JComponent wrapToScrollPaneIfNeeded(javax.swing.JComponent comp, int columns, int lines)
public static javax.swing.JTextPane configureMessagePaneUi(javax.swing.JTextPane messageComponent, java.lang.String message)
public static javax.swing.JTextPane configureMessagePaneUi(javax.swing.JTextPane messageComponent, java.lang.String message, UIUtil.FontSize fontSize)
public static int showDialog(Project project, java.lang.String message, java.lang.String title, java.lang.String [] options, int defaultOptionIndex, javax.swing.Icon icon)
showOkCancelDialog(com.intellij.openapi.project.Project, java.lang.String, java.lang.String, java.lang.String, java.lang.String, javax.swing.Icon, com.intellij.openapi.ui.DialogWrapper.DoNotAskOption)
or showYesNoCancelDialog(com.intellij.openapi.project.Project, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, javax.swing.Icon)
if possible (these dialogs implements native OS behavior)!public static boolean isApplicationInUnitTestOrHeadless()
public static java.lang.Runnable createMessageDialogRemover(Project project)
public static int showDialog(Project project, java.lang.String message, java.lang.String title, java.lang.String [] options, int defaultOptionIndex, javax.swing.Icon icon, DialogWrapper.DoNotAskOption doNotAskOption)
showOkCancelDialog(com.intellij.openapi.project.Project, java.lang.String, java.lang.String, java.lang.String, java.lang.String, javax.swing.Icon, com.intellij.openapi.ui.DialogWrapper.DoNotAskOption)
or showYesNoCancelDialog(com.intellij.openapi.project.Project, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, javax.swing.Icon)
if possible (these dialogs implements native OS behavior)!public static int showIdeaMessageDialog(Project project, java.lang.String message, java.lang.String title, java.lang.String [] options, int defaultOptionIndex, javax.swing.Icon icon, DialogWrapper.DoNotAskOption doNotAskOption)
public static boolean canShowMacSheetPanel()
public static boolean isMacSheetEmulation()
public static int showDialog(Project project, java.lang.String message, java.lang.String title, java.lang.String moreInfo, java.lang.String [] options, int defaultOptionIndex, int focusedOptionIndex, javax.swing.Icon icon)
public static int showDialog(java.awt.Component parent, java.lang.String message, java.lang.String title, java.lang.String [] options, int defaultOptionIndex, javax.swing.Icon icon)
public static int showDialog(java.lang.String message, java.lang.String title, java.lang.String [] options, int defaultOptionIndex, int focusedOptionIndex, javax.swing.Icon icon, DialogWrapper.DoNotAskOption doNotAskOption)
showDialog(Project, String, String, String[], int, Icon, DialogWrapper.DoNotAskOption)
,
showDialog(Component, String, String, String[], int, Icon)
public static int showDialog(java.lang.String message, java.lang.String title, java.lang.String [] options, int defaultOptionIndex, javax.swing.Icon icon, DialogWrapper.DoNotAskOption doNotAskOption)
showDialog(Project, String, String, String[], int, Icon)
,
showDialog(Component, String, String, String[], int, Icon)
public static int showDialog(java.lang.String message, java.lang.String title, java.lang.String [] options, int defaultOptionIndex, javax.swing.Icon icon)
showDialog(Project, String, String, String[], int, Icon)
,
showDialog(Component, String, String, String[], int, Icon)
public static void showMessageDialog(Project project, java.lang.String message, java.lang.String title, javax.swing.Icon icon)
DialogWrapper(Project, boolean)
public static void showMessageDialog(java.awt.Component parent, java.lang.String message, java.lang.String title, javax.swing.Icon icon)
public static void showMessageDialog(java.lang.String message, java.lang.String title, javax.swing.Icon icon)
public static int showConfirmationDialog(javax.swing.JComponent parent, java.lang.String message, java.lang.String title, java.lang.String yesText, java.lang.String noText)
public static int showYesNoDialog(Project project, java.lang.String message, java.lang.String title, java.lang.String yesText, java.lang.String noText, javax.swing.Icon icon)
public static int showYesNoDialog(Project project, java.lang.String message, java.lang.String title, java.lang.String yesText, java.lang.String noText, javax.swing.Icon icon, DialogWrapper.DoNotAskOption doNotAskOption)
public static int showYesNoDialog(Project project, java.lang.String message, java.lang.String title, javax.swing.Icon icon)
public static int showYesNoDialog(Project project, java.lang.String message, java.lang.String title, javax.swing.Icon icon, DialogWrapper.DoNotAskOption doNotAskOption)
public static int showYesNoDialog(java.awt.Component parent, java.lang.String message, java.lang.String title, javax.swing.Icon icon)
public static int showYesNoDialog(java.lang.String message, java.lang.String title, java.lang.String yesText, java.lang.String noText, javax.swing.Icon icon, DialogWrapper.DoNotAskOption doNotAskOption)
YES
if user pressed "Yes" or NO
if user pressed "No" button.showYesNoDialog(Project, String, String, Icon)
,
showYesNoCancelDialog(Component, String, String, Icon)
public static int showYesNoDialog(java.lang.String message, java.lang.String title, java.lang.String yesText, java.lang.String noText, javax.swing.Icon icon)
YES
if user pressed "Yes" or NO
if user pressed "No" button.showYesNoDialog(Project, String, String, String, String, Icon)
,
showYesNoDialog(Component, String, String, Icon)
public static int showYesNoDialog(java.lang.String message, java.lang.String title, javax.swing.Icon icon)
YES
if user pressed "Yes" or NO
if user pressed "No" button.showYesNoDialog(Project, String, String, Icon)
,
showYesNoDialog(Component, String, String, Icon)
public static int showOkCancelDialog(Project project, java.lang.String message, java.lang.String title, java.lang.String okText, java.lang.String cancelText, javax.swing.Icon icon, DialogWrapper.DoNotAskOption doNotAskOption)
public static int showOkCancelDialog(Project project, java.lang.String message, java.lang.String title, java.lang.String okText, java.lang.String cancelText, javax.swing.Icon icon)
@Deprecated public static int showOkCancelDialog(Project project, java.lang.String message, java.lang.String title, javax.swing.Icon icon)
showOkCancelDialog(Project, String, String, String, String, Icon)
insteadpublic static int showOkCancelDialog(java.awt.Component parent, java.lang.String message, java.lang.String title, java.lang.String okText, java.lang.String cancelText, javax.swing.Icon icon)
@Deprecated public static int showOkCancelDialog(java.awt.Component parent, java.lang.String message, java.lang.String title, javax.swing.Icon icon)
showOkCancelDialog(Component, String, String, String, String, Icon)
instead@Deprecated public static int showOkCancelDialog(java.lang.String message, java.lang.String title, javax.swing.Icon icon)
showOkCancelDialog(String, String, String, String, Icon)
insteadpublic static int showOkCancelDialog(java.lang.String message, java.lang.String title, java.lang.String okText, java.lang.String cancelText, javax.swing.Icon icon)
OK
if user pressed "Ok" or CANCEL
if user pressed "Cancel" button.showOkCancelDialog(Project, String, String, String, String, Icon)
,
showOkCancelDialog(Component, String, String, String, String, Icon)
public static int showOkCancelDialog(java.lang.String message, java.lang.String title, java.lang.String okText, java.lang.String cancelText, javax.swing.Icon icon, DialogWrapper.DoNotAskOption doNotAskOption)
OK
if user pressed "Ok" or CANCEL
if user pressed "Cancel" button.showOkCancelDialog(Project, String, String, String, String, Icon, DialogWrapper.DoNotAskOption)
,
showOkCancelDialog(Component, String, String, String, String, Icon)
public static int showCheckboxOkCancelDialog(java.lang.String message, java.lang.String title, java.lang.String checkboxText, boolean checked, int defaultOptionIndex, int focusedOptionIndex, javax.swing.Icon icon)
public static int showCheckboxMessageDialog(java.lang.String message, java.lang.String title, java.lang.String [] options, java.lang.String checkboxText, boolean checked, int defaultOptionIndex, int focusedOptionIndex, javax.swing.Icon icon, PairFunction<? super java.lang.Integer,? super javax.swing.JCheckBox,java.lang.Integer> exitFunc)
public static int showTwoStepConfirmationDialog(java.lang.String message, java.lang.String title, java.lang.String checkboxText, javax.swing.Icon icon)
public static void showErrorDialog(Project project, java.lang.String message, java.lang.String title)
public static void showErrorDialog(java.awt.Component component, java.lang.String message, java.lang.String title)
public static void showErrorDialog(java.awt.Component component, java.lang.String message)
public static void showErrorDialog(java.lang.String message, java.lang.String title)
public static void showWarningDialog(Project project, java.lang.String message, java.lang.String title)
public static void showWarningDialog(java.awt.Component component, java.lang.String message, java.lang.String title)
public static void showWarningDialog(java.lang.String message, java.lang.String title)
public static int showYesNoCancelDialog(Project project, java.lang.String message, java.lang.String title, java.lang.String yes, java.lang.String no, java.lang.String cancel, javax.swing.Icon icon)
public static int showYesNoCancelDialog(Project project, java.lang.String message, java.lang.String title, javax.swing.Icon icon)
public static int showYesNoCancelDialog(java.awt.Component parent, java.lang.String message, java.lang.String title, java.lang.String yes, java.lang.String no, java.lang.String cancel, javax.swing.Icon icon)
public static int showYesNoCancelDialog(java.awt.Component parent, java.lang.String message, java.lang.String title, javax.swing.Icon icon)
public static int showYesNoCancelDialog(java.lang.String message, java.lang.String title, java.lang.String yes, java.lang.String no, java.lang.String cancel, javax.swing.Icon icon, DialogWrapper.DoNotAskOption doNotAskOption)
YES
if user pressed "Yes" or NO
if user pressed "No", or CANCEL
if user pressed "Cancel" button.showYesNoCancelDialog(Project, String, String, String, String, String, Icon)
,
showYesNoCancelDialog(Component, String, String, String, String, String, Icon)
public static int showYesNoCancelDialog(java.lang.String message, java.lang.String title, java.lang.String yes, java.lang.String no, java.lang.String cancel, javax.swing.Icon icon)
YES
if user pressed "Yes" or NO
if user pressed "No", or CANCEL
if user pressed "Cancel" button.showYesNoCancelDialog(Project, String, String, String, String, String, Icon)
,
showYesNoCancelDialog(Component, String, String, String, String, String, Icon)
public static int showYesNoCancelDialog(java.lang.String message, java.lang.String title, javax.swing.Icon icon)
YES
if user pressed "Yes" or NO
if user pressed "No", or CANCEL
if user pressed "Cancel" button.showYesNoCancelDialog(Project, String, String, Icon)
,
showYesNoCancelDialog(Component, String, String, Icon)
public static java.lang.String showPasswordDialog(java.lang.String message, java.lang.String title)
null
if user cancelled dialog.public static java.lang.String showPasswordDialog(Project project, java.lang.String message, java.lang.String title, javax.swing.Icon icon)
null
if user cancelled dialog.public static java.lang.String showPasswordDialog(Project project, java.lang.String message, java.lang.String title, javax.swing.Icon icon, InputValidator validator)
null
if user cancelled dialog.public static java.lang.String showInputDialog(Project project, java.lang.String message, java.lang.String title, javax.swing.Icon icon)
null
if user cancelled dialog.public static java.lang.String showInputDialog(java.awt.Component parent, java.lang.String message, java.lang.String title, javax.swing.Icon icon)
null
if user cancelled dialog.public static java.lang.String showInputDialog(java.lang.String message, java.lang.String title, javax.swing.Icon icon)
public static java.lang.String showInputDialog(Project project, java.lang.String message, java.lang.String title, javax.swing.Icon icon, java.lang.String initialValue, InputValidator validator)
public static java.lang.String showInputDialog(Project project, java.lang.String message, java.lang.String title, javax.swing.Icon icon, java.lang.String initialValue, InputValidator validator, TextRange selection)
public static java.lang.String showInputDialog(Project project, java.lang.String message, java.lang.String title, javax.swing.Icon icon, java.lang.String initialValue, InputValidator validator, TextRange selection, java.lang.String comment)
public static java.lang.String showInputDialog(java.awt.Component parent, java.lang.String message, java.lang.String title, javax.swing.Icon icon, java.lang.String initialValue, InputValidator validator)
public static java.lang.String showInputDialog(java.lang.String message, java.lang.String title, javax.swing.Icon icon, java.lang.String initialValue, InputValidator validator)
public static java.lang.String showMultilineInputDialog(Project project, java.lang.String message, java.lang.String title, java.lang.String initialValue, javax.swing.Icon icon, InputValidator validator)
public static Pair<java.lang.String,java.lang.Boolean> showInputDialogWithCheckBox(java.lang.String message, java.lang.String title, java.lang.String checkboxText, boolean checked, boolean checkboxEnabled, javax.swing.Icon icon, java.lang.String initialValue, InputValidator validator)
public static java.lang.String showEditableChooseDialog(java.lang.String message, java.lang.String title, javax.swing.Icon icon, java.lang.String[] values, java.lang.String initialValue, InputValidator validator)
@Deprecated public static int showChooseDialog(java.lang.String message, java.lang.String title, java.lang.String[] values, java.lang.String initialValue, javax.swing.Icon icon)
@Deprecated public static int showChooseDialog(java.awt.Component parent, java.lang.String message, java.lang.String title, java.lang.String[] values, java.lang.String initialValue, javax.swing.Icon icon)
@Deprecated public static int showChooseDialog(Project project, java.lang.String message, java.lang.String title, javax.swing.Icon icon, java.lang.String[] values, java.lang.String initialValue)
DialogWrapper(Project, boolean)
public static void showInfoMessage(java.awt.Component component, java.lang.String message, java.lang.String title)
getInformationIcon()
and OK buttonpublic static void showInfoMessage(Project project, java.lang.String message, java.lang.String title)
getInformationIcon()
and OK buttonpublic static void showInfoMessage(java.lang.String message, java.lang.String title)
getInformationIcon()
and OK button
Use this method only if you do not know project or componentpublic static void showTextAreaDialog(javax.swing.JTextField textField, java.lang.String title, java.lang.String dimensionServiceKey, Function<? super java.lang.String,? extends java.util.List<java.lang.String>> parser, Function<? super java.util.List<java.lang.String>,java.lang.String> lineJoiner)
public static void showTextAreaDialog(javax.swing.JTextField textField, java.lang.String title, java.lang.String dimensionServiceKey)