Changeset 24787 in osm for applications/editors/josm
- Timestamp:
- 2010-12-17T18:38:40+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/utilsplugin2
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin2/build.xml
r24236 r24787 31 31 32 32 <!-- enter the SVN commit message --> 33 <property name="commit.message" value=" Commit message" />33 <property name="commit.message" value="Add selectWayNodes action by vetinari (see #j5745)" /> 34 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 35 35 <property name="plugin.main.version" value="3650" /> -
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.