Changeset 12778 in osm for applications/editors/josm/plugins/waypoints/src/WaypointPlugin.java
- Timestamp:
- 2009-01-01T18:28:53+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified applications/editors/josm/plugins/waypoints/src/WaypointPlugin.java ΒΆ
r1495 r12778 11 11 12 12 13 14 15 16 17 13 public WaypointPlugin() { 14 JMenuItem waypointItem = new JMenuItem(new WaypointOpenAction()); 15 int index = findFirstSeparator(); 16 Main.main.menu.fileMenu.add(waypointItem,index<0 ? 0: index); 17 } 18 18 19 20 21 22 23 24 25 26 27 28 19 private int findFirstSeparator() 20 { 21 Component[] components = Main.main.menu.fileMenu.getMenuComponents(); 22 for(int count=0; count<components.length; count++) 23 { 24 if(components[count] instanceof JSeparator) 25 return count; 26 } 27 return -1; 28 } 29 29 }
Note:
See TracChangeset
for help on using the changeset viewer.