Changeset 5417 in osm for applications/editors/josm/plugins/utilsplugin
- Timestamp:
- 2007-11-10T02:05:09+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/UtilsPlugin.java
r5076 r5417 3 3 import static org.openstreetmap.josm.tools.I18n.tr; 4 4 5 import org.openstreetmap.josm.gui.IconToggleButton;6 5 7 6 import java.awt.event.ActionEvent; … … 18 17 import org.openstreetmap.josm.plugins.Plugin; 19 18 import org.openstreetmap.josm.gui.MapFrame; 19 import org.openstreetmap.josm.gui.IconToggleButton; 20 20 21 21 public class UtilsPlugin extends Plugin { 22 JMenuItem MergeNodeWay; 23 JMenuItem SimplifyWay; 24 25 public UtilsPlugin() { 26 MergeNodeWay = Main.main.menu.toolsMenu.add(new MergeNodeWayAction()); 27 MergeNodeWay.setEnabled(false); 28 SimplifyWay = Main.main.menu.toolsMenu.add(new SimplifyWayAction()); 29 SimplifyWay.setEnabled(false); 30 } 31 22 32 @Override 23 33 public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) { 24 34 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()); 35 MergeNodeWay.setEnabled(true); 36 SimplifyWay.setEnabled(true); 29 37 } 30 38 }
Note:
See TracChangeset
for help on using the changeset viewer.