* @return <code>true</code> if the user presses the OK button,
* <code>false</code> otherwise
*/
- public static boolean openConfirm(Shell parent, String title,
- String message, String preferenceKey, String toggleMessage,
- IPreferenceStore store) {
- MessageDialogWithToggle dialog = new MessageDialogWithToggle(parent,
- title, null, // accept the default window icon
- message, QUESTION, new String[] { IDialogConstants.OK_LABEL,
- IDialogConstants.CANCEL_LABEL }, 0, // OK is the default
- preferenceKey, toggleMessage, store);
- return dialog.open() == 0;
- }
+// public static boolean openConfirm(Shell parent, String title,
+// String message, String preferenceKey, String toggleMessage,
+// IPreferenceStore store) {
+// MessageDialogWithToggle dialog = new MessageDialogWithToggle(parent,
+// title, null, // accept the default window icon
+// message, QUESTION, new String[] { IDialogConstants.OK_LABEL,
+// IDialogConstants.CANCEL_LABEL }, 0, // OK is the default
+// preferenceKey, toggleMessage, store);
+// return dialog.open() == 0;
+// }
/**
* Convenience method to open a standard error dialog.
* @param message
* the message
*/
- public static void openError(Shell parent, String title, String message,
- String preferenceKey, String toggleMessage, IPreferenceStore store) {
- MessageDialogWithToggle dialog = new MessageDialogWithToggle(parent,
- title, null, // accept the default window icon
- message, ERROR, new String[] { IDialogConstants.OK_LABEL }, 0, // ok
- // is
- // the
- // default
- preferenceKey, toggleMessage, store);
- dialog.open();
- }
+// public static void openError(Shell parent, String title, String message,
+// String preferenceKey, String toggleMessage, IPreferenceStore store) {
+// MessageDialogWithToggle dialog = new MessageDialogWithToggle(parent,
+// title, null, // accept the default window icon
+// message, ERROR, new String[] { IDialogConstants.OK_LABEL }, 0, // ok
+// // is
+// // the
+// // default
+// preferenceKey, toggleMessage, store);
+// dialog.open();
+// }
/**
* Convenience method to open a standard information dialog.
* @param message
* the message
*/
- public static void openInformation(Shell parent, String title,
- String message, String preferenceKey, String toggleMessage,
- IPreferenceStore store) {
- MessageDialogWithToggle dialog = new MessageDialogWithToggle(parent,
- title,
- null, // accept the default window icon
- message, INFORMATION,
- new String[] { IDialogConstants.OK_LABEL }, 0, // ok is the
- // default
- preferenceKey, toggleMessage, store);
- dialog.open();
- }
+// public static void openInformation(Shell parent, String title,
+// String message, String preferenceKey, String toggleMessage,
+// IPreferenceStore store) {
+// MessageDialogWithToggle dialog = new MessageDialogWithToggle(parent,
+// title,
+// null, // accept the default window icon
+// message, INFORMATION,
+// new String[] { IDialogConstants.OK_LABEL }, 0, // ok is the
+// // default
+// preferenceKey, toggleMessage, store);
+// dialog.open();
+// }
/**
* Convenience method to open a simple Yes/No question dialog.
* @return <code>true</code> if the user presses the OK button,
* <code>false</code> otherwise
*/
- public static boolean openQuestion(Shell parent, String title,
- String message, String preferenceKey, String toggleMessage,
- IPreferenceStore store) {
- MessageDialogWithToggle dialog = new MessageDialogWithToggle(parent,
- title, null, // accept the default window icon
- message, QUESTION, new String[] { IDialogConstants.YES_LABEL,
- IDialogConstants.NO_LABEL }, 0, // yes is the default
- preferenceKey, toggleMessage, store);
- return dialog.open() == 0;
- }
+// public static boolean openQuestion(Shell parent, String title,
+// String message, String preferenceKey, String toggleMessage,
+// IPreferenceStore store) {
+// MessageDialogWithToggle dialog = new MessageDialogWithToggle(parent,
+// title, null, // accept the default window icon
+// message, QUESTION, new String[] { IDialogConstants.YES_LABEL,
+// IDialogConstants.NO_LABEL }, 0, // yes is the default
+// preferenceKey, toggleMessage, store);
+// return dialog.open() == 0;
+// }
/**
* Convenience method to open a standard warning dialog.
* @param message
* the message
*/
- public static void openWarning(Shell parent, String title, String message,
- String preferenceKey, String toggleMessage, IPreferenceStore store) {
- MessageDialogWithToggle dialog = new MessageDialogWithToggle(parent,
- title,
- null, // accept the default window icon
- message, WARNING, new String[] { IDialogConstants.OK_LABEL },
- 0, // ok is the default
- preferenceKey, toggleMessage, store);
- dialog.open();
- }
+// public static void openWarning(Shell parent, String title, String message,
+// String preferenceKey, String toggleMessage, IPreferenceStore store) {
+// MessageDialogWithToggle dialog = new MessageDialogWithToggle(parent,
+// title,
+// null, // accept the default window icon
+// message, WARNING, new String[] { IDialogConstants.OK_LABEL },
+// 0, // ok is the default
+// preferenceKey, toggleMessage, store);
+// dialog.open();
+// }
}