Changeset 24787 in osm for applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/UtilsPlugin2.java
- Timestamp:
- 2010-12-17T18:38:40+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/UtilsPlugin2.java
r24236 r24787 14 14 JMenuItem addIntersections; 15 15 JMenuItem splitObject; 16 JMenuItem selectWayNodes; 16 17 17 18 public UtilsPlugin2(PluginInformation info) { … … 21 22 addIntersections = MainMenu.add(Main.main.menu.toolsMenu, new AddIntersectionsAction()); 22 23 splitObject = MainMenu.add(Main.main.menu.toolsMenu, new SplitObjectAction()); 24 selectWayNodes = MainMenu.add(Main.main.menu.toolsMenu, new SelectWayNodesAction()); 23 25 } 24 26 25 27 @Override 26 28 public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) { 27 if (oldFrame == null && newFrame != null) {28 unglueRelation.setEnabled(true);29 addIntersections.setEnabled(true);30 splitObject.setEnabled(true);31 }29 boolean enabled = newFrame != null; 30 unglueRelation.setEnabled(enabled); 31 addIntersections.setEnabled(enabled); 32 splitObject.setEnabled(enabled); 33 selectWayNodes.setEnabled(enabled); 32 34 } 33 35 }
Note:
See TracChangeset
for help on using the changeset viewer.