Changeset 33938 in osm for applications/editors/josm/plugins/graphview/src
- Timestamp:
- 2017-12-07T21:59:09+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/dialogs/GraphViewDialog.java
r33842 r33938 41 41 import org.openstreetmap.josm.plugins.graphview.plugin.preferences.GraphViewPreferences; 42 42 import org.openstreetmap.josm.plugins.graphview.plugin.preferences.InternalRuleset; 43 import org.openstreetmap.josm.tools.ImageProvider; 43 44 import org.openstreetmap.josm.tools.Logging; 44 45 import org.openstreetmap.josm.tools.Shortcut; … … 154 155 } 155 156 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 )); 164 160 165 161 updateSelections(); 166 162 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 } 167 176 } 168 177
Note:
See TracChangeset
for help on using the changeset viewer.