Ignore:
Timestamp:
2014-08-30T12:58:39+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #10441 - wrong parsing of changesets list in API URL test task + fix EDT violations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/HelpAwareOptionPane.java

    r7005 r7466  
    211211     * @return the index of the selected option or {@link JOptionPane#CLOSED_OPTION}
    212212     */
    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)  {
    214215        final List<JButton> buttons = createOptionButtons(options, helpTopic);
    215216        if (helpTopic != null) {
     
    318319     * @see #showOptionDialog(Component, Object, String, int, Icon, ButtonSpec[], ButtonSpec, String)
    319320     */
    320     public static int showOptionDialog(Component parentComponent, Object msg, String title, int messageType,final String 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);
    322323    }
    323324
    324325    /**
    325326     * 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}.
    327328     *
    328329     * 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.
    330337     */
    331338    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.