Changeset 25814 in osm for applications/editors/josm/plugins/utilsplugin2
- Timestamp:
- 2011-04-08T14:32:17+02:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/utilsplugin2
- Files:
-
- 11 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin2
- Property svn:ignore
-
old new 1 1 build 2 .project
-
- Property svn:ignore
-
applications/editors/josm/plugins/utilsplugin2/build.xml
r25190 r25814 31 31 32 32 <!-- enter the SVN commit message --> 33 <property name="commit.message" value=" fix" />33 <property name="commit.message" value="extend selection" /> 34 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 35 35 <property name="plugin.main.version" value="3835" /> … … 254 254 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist"> 255 255 </target> 256 <target name="runjosm" depends="install"> 257 <java jar="${josm}" > 258 <arg line="../../data_nodist/neubrandenburg.osm"/> 259 </java> 260 </target> 256 261 </project> -
applications/editors/josm/plugins/utilsplugin2/src/utilsplugin2/UtilsPlugin2.java
r24787 r25814 2 2 package utilsplugin2; 3 3 4 import java.awt.event.KeyEvent; 5 import javax.swing.JMenu; 4 6 import javax.swing.JMenuItem; 5 7 … … 9 11 import org.openstreetmap.josm.plugins.Plugin; 10 12 import org.openstreetmap.josm.plugins.PluginInformation; 13 import static org.openstreetmap.josm.tools.I18n.marktr; 11 14 12 15 public class UtilsPlugin2 extends Plugin { … … 15 18 JMenuItem splitObject; 16 19 JMenuItem selectWayNodes; 20 JMenuItem adjNodes; 21 JMenuItem adjWays; 22 JMenuItem adjWaysAll; 23 JMenuItem intWays; 24 JMenuItem intWaysR; 17 25 18 26 public UtilsPlugin2(PluginInformation info) { … … 22 30 addIntersections = MainMenu.add(Main.main.menu.toolsMenu, new AddIntersectionsAction()); 23 31 splitObject = MainMenu.add(Main.main.menu.toolsMenu, new SplitObjectAction()); 24 selectWayNodes = MainMenu.add(Main.main.menu.toolsMenu, new SelectWayNodesAction()); 32 Main.main.menu.toolsMenu.addSeparator(); 33 JMenu m1 = Main.main.menu.addMenu(marktr("Selection"), KeyEvent.VK_S, Main.main.menu.defaultMenuPos, "help"); 34 35 selectWayNodes = MainMenu.add(m1, new SelectWayNodesAction()); 36 adjNodes = MainMenu.add(m1, new AdjacentNodesAction()); 37 adjWays = MainMenu.add(m1, new AdjacentWaysAction()); 38 adjWaysAll = MainMenu.add(m1, new ConnectedWaysAction()); 39 intWays = MainMenu.add(m1, new IntersectedWaysAction()); 40 intWaysR = MainMenu.add(m1, new IntersectedWaysRecursiveAction()); 25 41 } 26 42 … … 28 44 public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) { 29 45 boolean enabled = newFrame != null; 46 enabled = false; 30 47 unglueRelation.setEnabled(enabled); 31 48 addIntersections.setEnabled(enabled); 32 49 splitObject.setEnabled(enabled); 33 50 selectWayNodes.setEnabled(enabled); 51 adjNodes.setEnabled(enabled); 52 adjWays.setEnabled(enabled); 53 adjWaysAll.setEnabled(enabled); 54 intWays.setEnabled(enabled); 55 intWaysR.setEnabled(enabled); 34 56 } 35 57 }
Note:
See TracChangeset
for help on using the changeset viewer.