Changeset 7466 in josm for trunk/src/org/openstreetmap/josm/gui/HelpAwareOptionPane.java
- Timestamp:
- 2014-08-30T12:58:39+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/HelpAwareOptionPane.java
r7005 r7466 211 211 * @return the index of the selected option or {@link JOptionPane#CLOSED_OPTION} 212 212 */ 213 public static int showOptionDialog(Component parentComponent, Object msg, String title, int messageType, Icon icon, final ButtonSpec[] options, final ButtonSpec defaultOption, final String helpTopic) { 213 public static int showOptionDialog(Component parentComponent, Object msg, String title, int messageType, 214 Icon icon, final ButtonSpec[] options, final ButtonSpec defaultOption, final String helpTopic) { 214 215 final List<JButton> buttons = createOptionButtons(options, helpTopic); 215 216 if (helpTopic != null) { … … 318 319 * @see #showOptionDialog(Component, Object, String, int, Icon, ButtonSpec[], ButtonSpec, String) 319 320 */ 320 public static int showOptionDialog(Component parentComponent, Object msg, String title, int messageType, finalString helpTopic) {321 return showOptionDialog(parentComponent, msg, title, messageType, null, null,null, helpTopic);321 public static int showOptionDialog(Component parentComponent, Object msg, String title, int messageType, String helpTopic) { 322 return showOptionDialog(parentComponent, msg, title, messageType, null, null, null, helpTopic); 322 323 } 323 324 324 325 /** 325 326 * Run it in Event Dispatch Thread. 326 * This version does not return anything, so it is more like showMessageDialog.327 * This version does not return anything, so it is more like {@code showMessageDialog}. 327 328 * 328 329 * It can be used, when you need to show a message dialog from a worker thread, 329 * e.g. from PleaseWaitRunnable 330 * e.g. from {@code PleaseWaitRunnable}. 331 * 332 * @param parentComponent the parent component 333 * @param msg the message 334 * @param title the title 335 * @param messageType the message type (see {@link JOptionPane}) 336 * @param helpTopic the help topic. Can be null. 330 337 */ 331 338 public static void showMessageDialogInEDT(final Component parentComponent, final Object msg, final String title, final int messageType, final String helpTopic) {
Note:
See TracChangeset
for help on using the changeset viewer.