This time I decided to post it here so that the next time I won't waste time.
All the methods needed are statically available in the org.eclipse.jface.dialogs.MessageDialog class:
- MessageDialog.openConfirm, for a confirmation dialog with an Ok/Cancel button set.
- MessageDialog.openError, for an error dialog with an Ok button.
- MessageDialog.openInformation, for an information dialog with an Ok button.
- MessageDialog.openQuestion, for a question dialog with and Yes/No button set.
- MessageDialog.openWarning, for warning dialog with an Ok button.
You can use org.eclipse.jface.dialogs.DialogSettings for a dialog setting, supporting loading and saving of properties in an XML file.
You can use org.eclipse.jface.dialogs.ProgressMonitorDialog to display progress during a long running operation.
And you can design your own dialog windows, just extend the org.eclipse.jface.dialogs.IconAndMessageDialog class.
Note: in RCP, you can get the shell using PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();.
./M6