/** {@inheritDoc} */ @Override public void popupYesNoCancel( JComponent sourceComponent, String title, String iconImageUrl, String message, IAction yesAction, IAction noAction, IAction cancelAction, Map<String, Object> context) { int selectedOption = JOptionPane.showConfirmDialog( SwingUtil.getWindowOrInternalFrame(sourceComponent), message, title, JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, getIconFactory().getIcon(iconImageUrl, getIconFactory().getLargeIconSize())); IAction nextAction; if (selectedOption == JOptionPane.YES_OPTION) { nextAction = yesAction; } else if (selectedOption == JOptionPane.NO_OPTION) { nextAction = noAction; } else { nextAction = cancelAction; } if (nextAction != null) { execute(nextAction, context); } }
/** {@inheritDoc} */ @Override public void popupInfo( JComponent sourceComponent, String title, String iconImageUrl, String message) { JOptionPane.showMessageDialog( SwingUtil.getWindowOrInternalFrame(sourceComponent), message, title, JOptionPane.INFORMATION_MESSAGE, getIconFactory().getIcon(iconImageUrl, getIconFactory().getLargeIconSize())); }