Ignore:
Timestamp:
2014-09-23T19:57:25+02:00 (10 years ago)
Author:
donvip
Message:

[josm_ext_tools] fix EDT violation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/ext_tools/src/ext_tools/ExtTool.java

    r30034 r30685  
    143143    }
    144144
    145     protected void showErrorMessage(String message, String details) {
    146         final JPanel p = new JPanel(new GridBagLayout());
    147         p.add(new JMultilineLabel(message),GBC.eol());
    148         if (details != null) {
    149             JTextArea info = new JTextArea(details, 20, 60);
    150             info.setCaretPosition(0);
    151             info.setEditable(false);
    152             p.add(new JScrollPane(info), GBC.eop());
    153         }
     145    protected void showErrorMessage(final String message, final String details) {
    154146        SwingUtilities.invokeLater(new Runnable() {
    155147            public void run() {
     148                final JPanel p = new JPanel(new GridBagLayout());
     149                p.add(new JMultilineLabel(message),GBC.eol());
     150                if (details != null) {
     151                    JTextArea info = new JTextArea(details, 20, 60);
     152                    info.setCaretPosition(0);
     153                    info.setEditable(false);
     154                    p.add(new JScrollPane(info), GBC.eop());
     155                }
    156156                JOptionPane.showMessageDialog(Main.parent, p, tr("External tool error"), JOptionPane.ERROR_MESSAGE);
    157157            }
Note: See TracChangeset for help on using the changeset viewer.