public void showOneTimeAlertDialog(
     String dialogId, Component parent, String title, JComponent message) {
   if (!PreferencesManager.getPreferences(AlertDialog.class)
       .node(dialogId)
       .getBoolean("show", true)) return;
   AlertDialog dialog = new AlertDialog(message);
   dialog.setDontShowAgainVisible(true);
   dialog.setDontShowAgain(false);
   JOptionPane.showMessageDialog(parent, dialog, title, JOptionPane.INFORMATION_MESSAGE);
   if (dialog.getDontShowAgain()) {
     PreferencesManager.getPreferences(AlertDialog.class).node(dialogId).putBoolean("show", false);
   }
 }
 public void showAlertDialog(String title, String message) {
   showAlertDialog(getProjectExplorer(), title, AlertDialog.createMessage(message));
 }
 public void showOneTimeAlertDialog(
     String dialogId, Component parent, String title, String message) {
   showOneTimeAlertDialog(dialogId, parent, title, AlertDialog.createMessage(message));
 }
 public void showAlertDialog(Component parent, String title, String message) {
   showAlertDialog(parent, title, AlertDialog.createMessage(message));
 }