Changeset 8130 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2015-03-09T08:46:22+01:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java
r7817 r8130 179 179 * @since 7636 180 180 */ 181 public static abstractclass AbstractInternalTask extends PleaseWaitRunnable {181 public abstract static class AbstractInternalTask extends PleaseWaitRunnable { 182 182 183 183 protected final boolean newLayer; -
trunk/src/org/openstreetmap/josm/data/imagery/ImageryLayerInfo.java
r7434 r8130 31 31 private final List<ImageryInfo> layers = new ArrayList<>(); 32 32 private final Map<String, ImageryInfo> layerIds = new HashMap<>(); 33 private final staticList<ImageryInfo> defaultLayers = new ArrayList<>();34 private final staticMap<String, ImageryInfo> defaultLayerIds = new HashMap<>();33 private static final List<ImageryInfo> defaultLayers = new ArrayList<>(); 34 private static final Map<String, ImageryInfo> defaultLayerIds = new HashMap<>(); 35 35 36 36 private static final String[] DEFAULT_LAYER_SITES = { -
trunk/src/org/openstreetmap/josm/data/osm/Changeset.java
r7995 r8130 18 18 * Represents a single changeset in JOSM. For now its only used during 19 19 * upload but in the future we may do more. 20 * 20 * @since 625 21 21 */ 22 22 public final class Changeset implements Tagged { … … 349 349 * @since 7704 350 350 */ 351 public synchronized finalList<ChangesetDiscussionComment> getDiscussion() {351 public final synchronized List<ChangesetDiscussionComment> getDiscussion() { 352 352 if (discussion == null) { 353 353 return Collections.emptyList(); … … 361 361 * @since 7704 362 362 */ 363 public synchronized finalvoid addDiscussionComment(ChangesetDiscussionComment comment) {363 public final synchronized void addDiscussionComment(ChangesetDiscussionComment comment) { 364 364 if (comment == null) { 365 365 return; -
trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
r7937 r8130 77 77 public static class GroupedMapCSSRule { 78 78 /** MapCSS selectors **/ 79 final publicList<Selector> selectors;79 public final List<Selector> selectors; 80 80 /** MapCSS declaration **/ 81 final publicDeclaration declaration;81 public final Declaration declaration; 82 82 83 83 /** -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java
r8087 r8130 83 83 * stack trace. 84 84 */ 85 public final staticReadWriteLock STYLE_SOURCE_LOCK = new ReentrantReadWriteLock();85 public static final ReadWriteLock STYLE_SOURCE_LOCK = new ReentrantReadWriteLock(); 86 86 87 87 /** -
trunk/src/org/openstreetmap/josm/gui/tagging/PresetLabel.java
r7937 r8130 2 2 package org.openstreetmap.josm.gui.tagging; 3 3 4 import javax.swing.JLabel;5 4 import java.awt.Cursor; 6 5 import java.awt.Font; … … 10 9 import java.util.Collections; 11 10 11 import javax.swing.JLabel; 12 12 13 public class PresetLabel extends JLabel { 13 14 14 15 protected final TaggingPreset t; 15 16 17 /** 18 * Constructs a new {@code PresetLabel}. 19 * @param t the tagging preset 20 */ 16 21 public PresetLabel(TaggingPreset t) { 17 22 super(t.getName() + " …"); … … 26 31 */ 27 32 public static class PresetLabelMouseListener implements MouseListener { 28 final protectedJLabel label;29 final protectedFont hover;30 final protectedFont normal;33 protected final JLabel label; 34 protected final Font hover; 35 protected final Font normal; 31 36 37 /** 38 * Constructs a new {@code PresetLabelMouseListener}. 39 * @param lbl Label to highlight 40 */ 32 41 public PresetLabelMouseListener(JLabel lbl) { 33 42 label = lbl; … … 36 45 hover = normal.deriveFont(Collections.singletonMap(TextAttribute.UNDERLINE, TextAttribute.UNDERLINE_LOW_DOTTED)); 37 46 } 47 38 48 @Override 39 public void mouseClicked(MouseEvent arg0) { 49 public void mouseClicked(MouseEvent e) { 50 // Do nothing 40 51 } 41 52 42 53 @Override 43 public void mouseEntered(MouseEvent arg0) {54 public void mouseEntered(MouseEvent e) { 44 55 label.setFont(hover); 45 56 } 57 46 58 @Override 47 public void mouseExited(MouseEvent arg0) {59 public void mouseExited(MouseEvent e) { 48 60 label.setFont(normal); 49 61 } 62 50 63 @Override 51 public void mousePressed(MouseEvent arg0) {} 64 public void mousePressed(MouseEvent e) { 65 // Do nothing 66 } 67 52 68 @Override 53 public void mouseReleased(MouseEvent arg0) {} 69 public void mouseReleased(MouseEvent e) { 70 // Do nothing 71 } 54 72 } 55 73 } -
trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionItemPriority.java
r7725 r8130 37 37 public static final AutoCompletionItemPriority UNKNOWN = new AutoCompletionItemPriority(false, false, false); 38 38 39 private final staticint NO_USER_INPUT = Integer.MAX_VALUE;39 private static final int NO_USER_INPUT = Integer.MAX_VALUE; 40 40 41 41 private final int userInput; … … 43 43 private final boolean inStandard; 44 44 private final boolean selected; 45 45 46 46 47 47 /** 48 48 * Create new AutoCompletionItemPriority object. 49 * 49 * 50 50 * @param inDataSet true, if the item is found in the currently active data layer 51 51 * @param inStandard true, if the item is a standard tag, e.g. from the presets. … … 81 81 return userInput == NO_USER_INPUT ? null : userInput; 82 82 } 83 83 84 84 /** 85 85 * Imposes an ordering on the priorities. … … 115 115 } 116 116 117 @Override public String toString() { 118 return String.format("<Priority; userInput: %s, inDataSet: %b, inStandard: %b, selected: %b>", 117 @Override 118 public String toString() { 119 return String.format("<Priority; userInput: %s, inDataSet: %b, inStandard: %b, selected: %b>", 119 120 userInput == NO_USER_INPUT ? "no" : Integer.toString(userInput), inDataSet, inStandard, selected); 120 121 }
Note:
See TracChangeset
for help on using the changeset viewer.