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

Last change on this file since 12778 was 12778, checked in by stoecker, 16 years ago

removed tab stop usage

File size: 1.0 KB
Line 
1package UtilsPlugin;
2
3import static org.openstreetmap.josm.tools.I18n.tr;
4
5
6import java.awt.event.ActionEvent;
7import javax.swing.AbstractAction;
8import javax.swing.JMenu;
9import javax.swing.JMenuBar;
10import javax.swing.JMenuItem;
11import javax.swing.JOptionPane;
12
13import javax.swing.JPanel;
14import javax.swing.BoxLayout;
15
16import org.openstreetmap.josm.Main;
17import org.openstreetmap.josm.plugins.Plugin;
18import org.openstreetmap.josm.gui.MapFrame;
19import org.openstreetmap.josm.gui.MainMenu;
20import org.openstreetmap.josm.gui.IconToggleButton;
21import org.openstreetmap.josm.actions.JosmAction;
22
23public class UtilsPlugin extends Plugin {
24 JMenuItem SimplifyWay;
25
26 public UtilsPlugin() {
27 SimplifyWay = MainMenu.add(Main.main.menu.toolsMenu, new SimplifyWayAction());
28 SimplifyWay.setEnabled(false);
29 }
30
31 @Override
32 public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) {
33 if (oldFrame == null && newFrame != null) {
34 SimplifyWay.setEnabled(true);
35 }
36 }
37}
Note: See TracBrowser for help on using the repository browser.