source: osm/applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/UtilsPlugin.java@ 5080

Last change on this file since 5080 was 5076, checked in by gabriel, 17 years ago

utilsplugin: Port to API 0.5.

File size: 896 bytes
Line 
1package UtilsPlugin;
2
3import static org.openstreetmap.josm.tools.I18n.tr;
4
5import org.openstreetmap.josm.gui.IconToggleButton;
6
7import java.awt.event.ActionEvent;
8import javax.swing.AbstractAction;
9import javax.swing.JMenu;
10import javax.swing.JMenuBar;
11import javax.swing.JMenuItem;
12import javax.swing.JOptionPane;
13
14import javax.swing.JPanel;
15import javax.swing.BoxLayout;
16
17import org.openstreetmap.josm.Main;
18import org.openstreetmap.josm.plugins.Plugin;
19import org.openstreetmap.josm.gui.MapFrame;
20
21public class UtilsPlugin extends Plugin {
22 @Override
23 public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) {
24 if (oldFrame == null && newFrame != null) {
25 Main.map.toolBarActions.addSeparator();
26 Main.map.toolBarActions.add(new MergeNodesAction());
27 Main.map.toolBarActions.add(new MergeNodeWayAction());
28 Main.map.toolBarActions.add(new SimplifyWayAction());
29 }
30 }
31}
Note: See TracBrowser for help on using the repository browser.