Changeset 4869 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2012-01-24T21:52:43+01:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ExtensionFileFilter.java
r4533 r4869 26 26 * list of supported formats 27 27 */ 28 public static ArrayList<FileImporter> importers;29 30 public static ArrayList<FileExporter> exporters;28 public static final ArrayList<FileImporter> importers; 29 30 public static final ArrayList<FileExporter> exporters; 31 31 32 32 // add some file types only if the relevant classes are there; … … 88 88 } 89 89 } 90 );90 ); 91 91 } 92 92 … … 198 198 if (name.endsWith("."+ext)) 199 199 return true; 200 return false;200 return false; 201 201 } 202 202 -
trunk/src/org/openstreetmap/josm/actions/SimplifyWayAction.java
r4461 r4869 51 51 JOptionPane.WARNING_MESSAGE, 52 52 HelpUtil.ht("/Action/SimplifyWay#SelectAWayToSimplify") 53 );53 ); 54 54 } 55 55 … … 61 61 tr("Simplify all selected ways"), 62 62 null 63 ),64 new ButtonSpec(65 tr("Cancel"),66 ImageProvider.get("cancel"),67 tr("Cancel operation"),68 null69 )63 ), 64 new ButtonSpec( 65 tr("Cancel"), 66 ImageProvider.get("cancel"), 67 tr("Cancel operation"), 68 null 69 ) 70 70 }; 71 71 int ret = HelpAwareOptionPane.showOptionDialog( … … 74 74 "The selection contains {0} ways. Are you sure you want to simplify them all?", 75 75 numWays 76 ),77 tr("Simplify ways?"),78 JOptionPane.WARNING_MESSAGE,79 null, // no special icon80 options,81 options[0],82 HelpUtil.ht("/Action/SimplifyWay#ConfirmSimplifyAll")83 );76 ), 77 tr("Simplify ways?"), 78 JOptionPane.WARNING_MESSAGE, 79 null, // no special icon 80 options, 81 options[0], 82 HelpUtil.ht("/Action/SimplifyWay#ConfirmSimplifyAll") 83 ); 84 84 return ret == 0; 85 85 } … … 94 94 alertSelectAtLeastOneWay(); 95 95 return; 96 } else if (!confirmWayWithNodesOutsideBoundingBox(ways)) {96 } else if (!confirmWayWithNodesOutsideBoundingBox(ways)) 97 97 return; 98 } 99 else if (ways.size() > 10) { 98 else if (ways.size() > 10) { 100 99 if (!confirmSimplifyManyWays(ways.size())) 101 100 return; … … 114 113 trn("Simplify {0} way", "Simplify {0} ways", allCommands.size(), allCommands.size()), 115 114 allCommands 116 );115 ); 117 116 Main.main.undoRedo.add(rootCommand); 118 117 } finally { … … 235 234 } 236 235 237 public static double EARTH_RAD = 6378137.0;236 public static final double EARTH_RAD = 6378137.0; 238 237 239 238 /* From Aviaton Formulary v1.3
Note:
See TracChangeset
for help on using the changeset viewer.