Changeset 12778 in osm for applications/editors/josm/plugins/utilsplugin/src
- Timestamp:
- 2009-01-01T18:28:53+01:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/SimplifyWayAction.java
r12707 r12778 49 49 if (bounds.size() > 0) { 50 50 Way way = (Way) prim; 51 // We check if each node of each way is at least in one download 51 // We check if each node of each way is at least in one download 52 52 // bounding box. Otherwise nodes may get deleted that are necessary by 53 53 // unloaded ways (see Ticket #1594) … … 83 83 return; 84 84 } else if (ways > 10) { 85 85 //TRANSLATION: Although for English the use of trn is needless it is important for other languages 86 86 int option = JOptionPane.showConfirmDialog(Main.parent, trn( 87 87 "The selection contains {0} way. Are you sure you want to simplify it?", -
applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/UtilsPlugin.java
r12579 r12778 22 22 23 23 public class UtilsPlugin extends Plugin { 24 24 JMenuItem SimplifyWay; 25 25 26 27 28 29 30 31 32 33 34 35 36 26 public UtilsPlugin() { 27 SimplifyWay = MainMenu.add(Main.main.menu.toolsMenu, new SimplifyWayAction()); 28 SimplifyWay.setEnabled(false); 29 } 30 31 @Override 32 public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) { 33 if (oldFrame == null && newFrame != null) { 34 SimplifyWay.setEnabled(true); 35 } 36 } 37 37 }
Note:
See TracChangeset
for help on using the changeset viewer.