Ignore:
Timestamp:
2016-03-23T22:36:15+01:00 (8 years ago)
Author:
Don-vip
Message:

code refactoring to ease creation of unit tests by avoiding as much as possible HeadlessException

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginPreference.java

    r9621 r10035  
    543543                public void actionPerformed(ActionEvent e) {
    544544                    String s = JOptionPane.showInputDialog(
    545                             JOptionPane.getFrameForComponent(PluginConfigurationSitesPanel.this),
     545                            GuiHelper.getFrameForComponent(PluginConfigurationSitesPanel.this),
    546546                            tr("Add JOSM Plugin description URL."),
    547547                            tr("Enter URL"),
     
    558558                    if (list.getSelectedValue() == null) {
    559559                        JOptionPane.showMessageDialog(
    560                                 JOptionPane.getFrameForComponent(PluginConfigurationSitesPanel.this),
     560                                GuiHelper.getFrameForComponent(PluginConfigurationSitesPanel.this),
    561561                                tr("Please select an entry."),
    562562                                tr("Warning"),
     
    584584                    if (list.getSelectedValue() == null) {
    585585                        JOptionPane.showMessageDialog(
    586                                 JOptionPane.getFrameForComponent(PluginConfigurationSitesPanel.this),
     586                                GuiHelper.getFrameForComponent(PluginConfigurationSitesPanel.this),
    587587                                tr("Please select an entry."),
    588588                                tr("Warning"),
Note: See TracChangeset for help on using the changeset viewer.