- Timestamp:
- 2013-11-08T01:39:06+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
r6367 r6378 72 72 public List<Way> innerWays; 73 73 74 public Relation relation;75 76 74 public Multipolygon(Way way) { 77 75 outerWay = way; … … 1278 1276 Multipolygon pol = new Multipolygon(outerWay); 1279 1277 pol.innerWays.addAll(innerWays); 1280 pol.relation = r;1281 1278 1282 1279 result.add(pol); -
trunk/src/org/openstreetmap/josm/data/validation/FixableTestError.java
r6377 r6378 1 // License: GPL. See LICENSE file for details. 1 2 package org.openstreetmap.josm.data.validation; 2 3 … … 6 7 import java.util.Collection; 7 8 9 /** 10 * Validation error easily fixable right at its detection. The fix can be given when constructing the error. 11 * @since 6377 12 */ 8 13 public class FixableTestError extends TestError { 9 14 protected final Command fix; -
trunk/src/org/openstreetmap/josm/data/validation/TestError.java
r6264 r6378 28 28 /** 29 29 * Validation error 30 * @ author frsantos30 * @since 3669 31 31 */ 32 32 public class TestError implements Comparable<TestError>, DataSetListener { … … 52 52 53 53 /** 54 * Construct ors54 * Constructs a new {@code TestError}. 55 55 * @param tester The tester 56 56 * @param severity The severity of this error -
trunk/src/org/openstreetmap/josm/data/validation/tests/OpeningHourTest.java
r6377 r6378 164 164 try { 165 165 prettifiedValue = (String) ((Invocable) ENGINE).invokeMethod(r, "prettifyValue"); 166 } catch (Exception ignore) { 166 } catch (Exception e) { 167 Main.debug(e.getMessage()); 167 168 } 168 169 for (final Object i : getList(((Invocable) ENGINE).invokeMethod(r, "getWarnings"))) { -
trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java
r6365 r6378 200 200 setMaxTilesInMemory(Main.pref.getInteger("slippy_map_chooser.max_tiles", 1000)); 201 201 202 List<TileSource> tileSources = get TileSources();202 List<TileSource> tileSources = getAllTileSources(); 203 203 204 204 iSourceButton = new SourceButton(tileSources); … … 222 222 } 223 223 224 private final List<TileSource> getTileSources() {224 private List<TileSource> getAllTileSources() { 225 225 List<TileSource> tileSources = new ArrayList<TileSource>(); 226 226 for (TileSourceProvider provider: providers) { … … 400 400 */ 401 401 public final void refreshTileSources() { 402 iSourceButton.setSources(get TileSources());402 iSourceButton.setSources(getAllTileSources()); 403 403 } 404 404 } -
trunk/src/org/openstreetmap/josm/gui/download/BookmarkList.java
r6365 r6378 239 239 * Saves all bookmarks to the preferences file 240 240 */ 241 public void save() {241 public final void save() { 242 242 LinkedList<Collection<String>> coll = new LinkedList<Collection<String>>(); 243 243 for (Object o : ((DefaultListModel)getModel()).toArray()) { -
trunk/src/org/openstreetmap/josm/gui/mappaint/MapImage.java
r6374 r6378 121 121 int w = getWidth(), h = getHeight(); 122 122 if (mustRescale(getImage())) { 123 w = h = 16; 123 w = 16; 124 h = 16; 124 125 } 125 126 return new Rectangle(-w/2, -h/2, w, h); -
trunk/src/org/openstreetmap/josm/gui/preferences/SourceEditor.java
r6335 r6378 1502 1502 private final String pref; 1503 1503 1504 public SourcePrefHelper(String pref , String prefOld) {1504 public SourcePrefHelper(String pref) { 1505 1505 this.pref = pref; 1506 1506 } -
trunk/src/org/openstreetmap/josm/gui/preferences/map/MapPaintPreference.java
r6246 r6378 170 170 MapPaintStyles.readFromPreferences(); 171 171 } 172 if (Main.isDisplayingMapView()) 173 { 172 if (Main.isDisplayingMapView()) { 174 173 MapPaintStyles.getStyles().clearCached(); 175 174 } … … 186 185 public static class MapPaintPrefHelper extends SourceEditor.SourcePrefHelper { 187 186 187 /** 188 * The unique instance. 189 */ 188 190 public final static MapPaintPrefHelper INSTANCE = new MapPaintPrefHelper(); 189 191 192 /** 193 * Constructs a new {@code MapPaintPrefHelper}. 194 */ 190 195 public MapPaintPrefHelper() { 191 super("mappaint.style.entries" , "mappaint.style.sources-list");196 super("mappaint.style.entries"); 192 197 } 193 198 -
trunk/src/org/openstreetmap/josm/gui/preferences/map/TaggingPresetPreference.java
r6362 r6378 283 283 if (taggingPresets.isEmpty()) { 284 284 Main.main.menu.presetsMenu.setVisible(false); 285 } 286 else 287 { 285 } else { 288 286 AutoCompletionManager.cachePresets(taggingPresets); 289 287 HashMap<TaggingPresetMenu,JMenu> submenus = new HashMap<TaggingPresetMenu,JMenu>(); 290 for (final TaggingPreset p : taggingPresets) 291 { 288 for (final TaggingPreset p : taggingPresets) { 292 289 JMenu m = p.group != null ? submenus.get(p.group) : Main.main.menu.presetsMenu; 293 290 if (p instanceof TaggingPresetSeparator) { 294 291 m.add(new JSeparator()); 295 } else if (p instanceof TaggingPresetMenu) 296 { 292 } else if (p instanceof TaggingPresetMenu) { 297 293 JMenu submenu = new JMenu(p); 298 294 submenu.setText(p.getLocaleName()); … … 300 296 submenus.put((TaggingPresetMenu)p, submenu); 301 297 m.add(submenu); 302 } 303 else 304 { 298 } else { 305 299 JMenuItem mi = new JMenuItem(p); 306 300 mi.setText(p.getLocaleName()); … … 309 303 } 310 304 } 311 if (Main.pref.getBoolean("taggingpreset.sortmenu")) {305 if (Main.pref.getBoolean("taggingpreset.sortmenu")) { 312 306 TaggingPresetMenu.sortMenu(Main.main.menu.presetsMenu); 313 307 } … … 316 310 public static class PresetPrefHelper extends SourceEditor.SourcePrefHelper { 317 311 312 /** 313 * The unique instance. 314 */ 318 315 public final static PresetPrefHelper INSTANCE = new PresetPrefHelper(); 319 316 317 /** 318 * Constructs a new {@code PresetPrefHelper}. 319 */ 320 320 public PresetPrefHelper() { 321 super("taggingpreset.entries" , "taggingpreset.sources-list");321 super("taggingpreset.entries"); 322 322 } 323 323
Note:
See TracChangeset
for help on using the changeset viewer.