Changeset 33938 in osm for applications/editors/josm


Ignore:
Timestamp:
2017-12-07T21:59:09+01:00 (7 years ago)
Author:
donvip
Message:

fix #15650 - IAE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/dialogs/GraphViewDialog.java

    r33842 r33938  
    4141import org.openstreetmap.josm.plugins.graphview.plugin.preferences.GraphViewPreferences;
    4242import org.openstreetmap.josm.plugins.graphview.plugin.preferences.InternalRuleset;
     43import org.openstreetmap.josm.tools.ImageProvider;
    4344import org.openstreetmap.josm.tools.Logging;
    4445import org.openstreetmap.josm.tools.Shortcut;
     
    154155        }
    155156
    156         createLayout(selectionPanel, true, Arrays.asList(new SideButton[] {
    157             new SideButton(new AbstractAction(tr("Create/update graph")) {
    158                 @Override
    159                 public void actionPerformed(ActionEvent e) {
    160                     plugin.createGraphViewLayer();
    161                 }
    162             })
    163         }));
     157        createLayout(selectionPanel, true, Arrays.asList(
     158            new SideButton(new GraphViewAction())
     159        ));
    164160
    165161        updateSelections();
    166162        this.preferences.addObserver(this);
     163    }
     164
     165    private class GraphViewAction extends AbstractAction {
     166
     167        GraphViewAction() {
     168            super(tr("Create/update graph"));
     169            new ImageProvider("graphview_no_shadow").getResource().attachImageIcon(this, true);
     170        }
     171
     172        @Override
     173        public void actionPerformed(ActionEvent e) {
     174            plugin.createGraphViewLayer();
     175        }
    167176    }
    168177
Note: See TracChangeset for help on using the changeset viewer.