Changeset 2990 in josm
- Timestamp:
- 2010-02-15T09:03:57+01:00 (15 years ago)
- Location:
- trunk
- Files:
-
- 81 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/DownloadAction.java
r2512 r2990 27 27 */ 28 28 public class DownloadAction extends JosmAction { 29 @SuppressWarnings("unused") 29 30 private static final Logger logger = Logger.getLogger(DownloadAction.class.getName()); 30 31 -
trunk/src/org/openstreetmap/josm/actions/ExtensionFileFilter.java
r2702 r2990 2 2 package org.openstreetmap.josm.actions; 3 3 4 import static org.openstreetmap.josm.tools.I18n.tr;5 6 4 import java.io.File; 7 5 import java.util.ArrayList; 8 import java.util.Arrays;9 6 import java.util.Collections; 10 7 import java.util.Comparator; … … 42 39 43 40 String[] importerNames = { 44 "org.openstreetmap.josm.io.OsmImporter",45 "org.openstreetmap.josm.io.OsmGzipImporter",46 "org.openstreetmap.josm.io.GpxImporter",47 "org.openstreetmap.josm.io.NMEAImporter",48 "org.openstreetmap.josm.io.OsmBzip2Importer",49 "org.openstreetmap.josm.io.JpgImporter",50 "org.openstreetmap.josm.io.AllFormatsImporter"41 "org.openstreetmap.josm.io.OsmImporter", 42 "org.openstreetmap.josm.io.OsmGzipImporter", 43 "org.openstreetmap.josm.io.GpxImporter", 44 "org.openstreetmap.josm.io.NMEAImporter", 45 "org.openstreetmap.josm.io.OsmBzip2Importer", 46 "org.openstreetmap.josm.io.JpgImporter", 47 "org.openstreetmap.josm.io.AllFormatsImporter" 51 48 }; 52 49 53 50 for (String classname : importerNames) { 54 51 try { 55 Class klass = Class.forName(classname);56 importers.add((FileImporter) klass.newInstance());52 Class<?> klass = Class.forName(classname); 53 importers.add((FileImporter) klass.newInstance()); 57 54 } catch (Exception e) {} 58 55 } … … 61 58 62 59 String[] exporterNames = { 63 "org.openstreetmap.josm.io.GpxExporter",64 "org.openstreetmap.josm.io.OsmExporter",65 "org.openstreetmap.josm.io.OsmGzipExporter",66 "org.openstreetmap.josm.io.OsmBzip2Exporter"60 "org.openstreetmap.josm.io.GpxExporter", 61 "org.openstreetmap.josm.io.OsmExporter", 62 "org.openstreetmap.josm.io.OsmGzipExporter", 63 "org.openstreetmap.josm.io.OsmBzip2Exporter" 67 64 }; 68 65 69 66 for (String classname : exporterNames) { 70 67 try { 71 Class klass = Class.forName(classname);68 Class<?> klass = Class.forName(classname); 72 69 exporters.add((FileExporter)klass.newInstance()); 73 70 } catch (Exception e) {} -
trunk/src/org/openstreetmap/josm/actions/HelpAction.java
r2715 r2990 28 28 public void actionPerformed(ActionEvent e) { 29 29 if (e.getActionCommand() == null) { 30 String topic = null;30 String topic; 31 31 if (e.getSource() instanceof Component) { 32 32 Component c = SwingUtilities.getRoot((Component)e.getSource()); -
trunk/src/org/openstreetmap/josm/actions/UploadAction.java
r2979 r2990 36 36 */ 37 37 public class UploadAction extends JosmAction{ 38 @SuppressWarnings("unused") 38 39 static private Logger logger = Logger.getLogger(UploadAction.class.getName()); 39 40 /** -
trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java
r2666 r2990 375 375 return; 376 376 377 if (mode == mode.select) {377 if (mode == Mode.select) { 378 378 // Nothing to be done 379 379 } else { 380 if (mode == mode.extrude) {380 if (mode == Mode.extrude) { 381 381 if (e.getPoint().distance(initialMousePos) > 10 && newN1en != null) { 382 382 // Commit extrusion 383 383 384 384 Node n1 = selectedSegment.way.getNode(selectedSegment.lowerIndex); 385 Node n2 = selectedSegment.way.getNode(selectedSegment.lowerIndex+1);385 //Node n2 = selectedSegment.way.getNode(selectedSegment.lowerIndex+1); 386 386 Node n3 = new Node(Main.proj.eastNorth2latlon(newN2en)); 387 387 Node n4 = new Node(Main.proj.eastNorth2latlon(newN1en)); … … 399 399 Main.main.undoRedo.add(c); 400 400 } 401 } else if (mode == mode.translate) {401 } else if (mode == Mode.translate) { 402 402 // I don't think there's anything to do 403 403 } -
trunk/src/org/openstreetmap/josm/command/ChangePropertyCommand.java
r2844 r2990 4 4 import static org.openstreetmap.josm.tools.I18n.marktr; 5 5 import static org.openstreetmap.josm.tools.I18n.tr; 6 import static org.openstreetmap.josm.tools.I18n.trn;7 6 8 7 import java.util.Collection; … … 100 99 if (value == null) { 101 100 switch(OsmPrimitiveType.from(primitive)) { 102 103 104 101 case NODE: msg = marktr("Remove \"{0}\" for node ''{1}''"); break; 102 case WAY: msg = marktr("Remove \"{0}\" for way ''{1}''"); break; 103 case RELATION: msg = marktr("Remove \"{0}\" for relation ''{1}''"); break; 105 104 } 106 105 text = tr(msg, key, primitive.getDisplayName(DefaultNameFormatter.getInstance())); 107 106 } else { 108 107 switch(OsmPrimitiveType.from(primitive)) { 109 110 111 108 case NODE: msg = marktr("Set {0}={1} for node ''{2}''"); break; 109 case WAY: msg = marktr("Set {0}={1} for way ''{2}''"); break; 110 case RELATION: msg = marktr("Set {0}={1} for relation ''{2}''"); break; 112 111 } 113 112 text = tr(msg, key, value, primitive.getDisplayName(DefaultNameFormatter.getInstance())); -
trunk/src/org/openstreetmap/josm/command/MoveCommand.java
r2512 r2990 2 2 package org.openstreetmap.josm.command; 3 3 4 import static org.openstreetmap.josm.tools.I18n.tr;5 4 import static org.openstreetmap.josm.tools.I18n.trn; 6 5 -
trunk/src/org/openstreetmap/josm/command/TagConflictResolveCommand.java
r2512 r2990 25 25 */ 26 26 public class TagConflictResolveCommand extends ConflictResolveCommand { 27 @SuppressWarnings("unused") 27 28 private static final Logger logger = Logger.getLogger(TagConflictResolveCommand.class.getName()); 28 29 … … 64 65 String msg = ""; 65 66 switch(OsmPrimitiveType.from(conflict.getMy())) { 66 67 68 67 case NODE: msg = marktr("Resolve {0} tag conflicts in node {1}"); break; 68 case WAY: msg = marktr("Resolve {0} tag conflicts in way {1}"); break; 69 case RELATION: msg = marktr("Resolve {0} tag conflicts in relation {1}"); break; 69 70 } 70 71 return new DefaultMutableTreeNode( -
trunk/src/org/openstreetmap/josm/data/APIDataSet.java
r2979 r2990 330 330 */ 331 331 private class RelationUploadDependencyGraph { 332 @SuppressWarnings("unused") 332 333 private final Logger logger = Logger.getLogger(RelationUploadDependencyGraph.class.getName()); 333 334 private HashMap<Relation, Set<Relation>> children; -
trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
r2891 r2990 8 8 import static java.lang.Math.sqrt; 9 9 import static java.lang.Math.toRadians; 10 import static org.openstreetmap.josm.tools.I18n.tr;11 10 import static org.openstreetmap.josm.tools.I18n.trc; 12 11 -
trunk/src/org/openstreetmap/josm/data/osm/ChangesetCache.java
r2986 r2990 35 35 */ 36 36 public class ChangesetCache implements PreferenceChangedListener{ 37 @SuppressWarnings("unused") 37 38 static private final Logger logger = Logger.getLogger(ChangesetCache.class.getName()); 38 39 -
trunk/src/org/openstreetmap/josm/data/osm/DataSetMerger.java
r2985 r2990 94 94 case WAY: candidates =targetDataSet.getWays(); break; 95 95 case RELATION: candidates = targetDataSet.getRelations(); break; 96 default: throw new AssertionError(); 96 97 } 97 98 for (OsmPrimitive target : candidates) { … … 127 128 case WAY: target = source.isNew() ? new Way() : new Way(source.getId()); break; 128 129 case RELATION: target = source.isNew() ? new Relation() : new Relation(source.getId()); break; 130 default: throw new AssertionError(); 129 131 } 130 132 target.mergeFrom(source); -
trunk/src/org/openstreetmap/josm/data/osm/TagCollection.java
r2845 r2990 640 640 public TagCollection intersect(TagCollection other) { 641 641 if (other == null) { 642 new TagCollection();642 other = new TagCollection(); 643 643 } 644 644 TagCollection ret = new TagCollection(this); -
trunk/src/org/openstreetmap/josm/data/osm/history/HistoryRelation.java
r2845 r2990 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.data.osm.history; 3 4 import static org.openstreetmap.josm.tools.I18n.tr;5 3 6 4 import java.text.MessageFormat; -
trunk/src/org/openstreetmap/josm/data/projection/NTV2SubGrid.java
r2507 r2990 20 20 package org.openstreetmap.josm.data.projection; 21 21 22 import java.io.IOException; 22 23 import java.io.InputStream; 23 import java.io.IOException;24 24 import java.io.Serializable; 25 25 … … 34 34 */ 35 35 public class NTV2SubGrid implements Cloneable, Serializable { 36 37 private static final int REC_SIZE = 16;38 36 39 37 private String subGridName; -
trunk/src/org/openstreetmap/josm/gui/FileDrop.java
r2702 r2990 785 785 * @since 1.1 786 786 */ 787 public TransferableObject( ClassdataClass, Fetcher fetcher )787 public TransferableObject(Class<?> dataClass, Fetcher fetcher ) 788 788 { this.fetcher = fetcher; 789 789 this.customFlavor = new java.awt.datatransfer.DataFlavor( dataClass, MIME_TYPE ); -
trunk/src/org/openstreetmap/josm/gui/JosmUserIdentityManager.java
r2850 r2990 46 46 47 47 /** 48 * Replies the unique instance of t ehJOSM user identity manager49 * 50 * @return the unique instance of t ehJOSM user identity manager48 * Replies the unique instance of the JOSM user identity manager 49 * 50 * @return the unique instance of the JOSM user identity manager 51 51 */ 52 52 static public JosmUserIdentityManager getInstance() { -
trunk/src/org/openstreetmap/josm/gui/PleaseWaitRunnable.java
r2980 r2990 24 24 */ 25 25 public abstract class PleaseWaitRunnable implements Runnable, CancelListener { 26 @SuppressWarnings("unused") 26 27 private final static Logger logger = Logger.getLogger(PleaseWaitRunnable.class.getName()); 27 28 -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/nodes/NodeListTableCellRenderer.java
r2846 r2990 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.conflict.pair.nodes; 3 4 import static org.openstreetmap.josm.tools.I18n.tr;5 3 6 4 import java.awt.Color; … … 167 165 reset(); 168 166 switch(column) { 169 170 171 172 173 174 175 176 177 178 179 180 181 167 case 0: 168 renderRowId(getModel(table),row, isSelected); 169 break; 170 case 1: 171 if (node == null) { 172 renderEmptyRow(); 173 } else { 174 renderNode(getModel(table), node, row, isSelected); 175 } 176 break; 177 default: 178 // should not happen 179 throw new RuntimeException(MessageFormat.format("Unexpected column index. Got {0}.", column)); 182 180 } 183 181 return this; -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/relation/RelationMemberTableCellRenderer.java
r2512 r2990 4 4 import java.awt.Color; 5 5 import java.awt.Component; 6 import java.text.DecimalFormat;7 6 import java.util.ArrayList; 8 7 import java.util.Collections; … … 27 26 */ 28 27 public class RelationMemberTableCellRenderer extends JLabel implements TableCellRenderer { 29 private final static DecimalFormat COORD_FORMATTER = new DecimalFormat("###0.0000");30 28 public final static Color BGCOLOR_SELECTED = new Color(143,170,255); 31 29 public final static Color BGCOLOR_EMPTY_ROW = new Color(234,234,234); … … 194 192 renderForeground(getModel(table), member, row, column, isSelected); 195 193 switch(column) { 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 194 case 0: 195 renderRowId(row); 196 break; 197 case 1: 198 if (member == null) { 199 renderEmptyRow(); 200 } else { 201 renderRole(member); 202 } 203 break; 204 case 2: 205 if (member == null) { 206 renderEmptyRow(); 207 } else { 208 renderPrimitive(member); 209 } 210 break; 211 default: 212 // should not happen 215 213 } 216 214 return this; -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TagMergeTableCellRenderer.java
r2846 r2990 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.conflict.pair.tags; 3 4 import static org.openstreetmap.josm.tools.I18n.tr;5 3 6 4 import java.awt.Color; -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/MultiValueResolutionDecision.java
r2846 r2990 8 8 import java.util.Collection; 9 9 import java.util.Collections; 10 import java.util.Iterator;11 10 import java.util.List; 12 11 … … 134 133 public String getChosenValue() throws IllegalStateException { 135 134 switch(type) { 136 137 138 139 135 case UNDECIDED: throw new IllegalStateException(tr("Not decided yet.")); 136 case KEEP_ONE: return value; 137 case KEEP_NONE: return null; 138 case KEEP_ALL: return tags.getJoinedValues(getKey()); 140 139 } 141 140 // should not happen … … 282 281 public Tag getResolution() { 283 282 switch(type) { 284 285 286 287 283 case KEEP_ALL: return new Tag(getKey(), tags.getJoinedValues(getKey())); 284 case KEEP_ONE: return new Tag(getKey(),value); 285 case KEEP_NONE: return new Tag(getKey(), ""); 286 case UNDECIDED: return null; 288 287 } 289 288 return null; -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/PasteTagsConflictResolverDialog.java
r2512 r2990 433 433 434 434 static private class StatisticsInfoRenderer extends JLabel implements TableCellRenderer { 435 @SuppressWarnings("unused") 435 436 static private final Logger logger = Logger.getLogger(StatisticsInfoRenderer.class.getName()); 436 437 … … 461 462 String msg = ""; 462 463 switch(type) { 463 464 465 464 case NODE: msg = trn("{0} node", "{0} nodes", numPrimitives,numPrimitives); break; 465 case WAY: msg = trn("{0} way", "{0} ways", numPrimitives, numPrimitives); break; 466 case RELATION: msg = trn("{0} relation", "{0} relations", numPrimitives, numPrimitives); break; 466 467 } 467 468 text = text.equals("") ? msg : text + ", " + msg; … … 488 489 489 490 switch(column) { 490 491 492 491 case 0: renderNumTags(info); break; 492 case 1: renderFrom(info); break; 493 case 2: renderTo(info); break; 493 494 } 494 495 } -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/RelationMemberConflictDecisionType.java
r2512 r2990 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import javax.swing.DefaultComboBoxModel;7 import javax.swing.JComboBox;8 6 import javax.swing.JLabel; 9 7 -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolverModel.java
r2846 r2990 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.conflict.tags; 3 4 import static org.openstreetmap.josm.tools.I18n.tr;5 3 6 4 import java.beans.PropertyChangeListener; -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetContentTableModel.java
r2711 r2990 136 136 */ 137 137 static private class ChangesetContentEntry implements ChangesetDataSetEntry{ 138 private ChangesetModificationType modificationType;139 private HistoryOsmPrimitive primitive;138 private final ChangesetModificationType modificationType; 139 private final HistoryOsmPrimitive primitive; 140 140 141 141 public ChangesetContentEntry(ChangesetModificationType modificationType, HistoryOsmPrimitive primitive) { … … 145 145 146 146 public ChangesetContentEntry(ChangesetDataSetEntry entry) { 147 this.modificationType = entry.getModificationType(); 148 this.primitive = entry.getPrimitive(); 147 this(entry.getModificationType(), entry.getPrimitive()); 149 148 } 150 149 … … 152 151 return modificationType; 153 152 } 154 public void setModificationType(ChangesetModificationType modificationType) {155 this.modificationType = modificationType;156 }157 153 public HistoryOsmPrimitive getPrimitive() { 158 154 return primitive; 159 155 } 160 public void setPrimitive(HistoryOsmPrimitive primitive) {161 this.primitive = primitive;162 }163 156 } 164 157 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/AdvancedChangesetQueryPanel.java
r2847 r2990 1086 1086 1087 1087 public Date getDate() { 1088 for (int i = 0; i< 4; i++) { 1088 for (int format: new int[] {DateFormat.SHORT, DateFormat.MEDIUM, DateFormat.LONG, DateFormat.FULL}) { 1089 DateFormat df = DateFormat.getDateInstance(format); 1089 1090 try { 1090 DateFormat df = null;1091 switch(i) {1092 case 0: df = DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault()); break;1093 case 1: df = DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.getDefault()); break;1094 case 2: df = DateFormat.getDateInstance(DateFormat.LONG, Locale.getDefault()); break;1095 case 3: df = DateFormat.getDateInstance(DateFormat.FULL,Locale.getDefault()); break;1096 }1097 1091 return df.parse(getComponent().getText()); 1098 } catch (ParseException e) {1099 continue;1092 } catch (ParseException e) { 1093 // Try next format 1100 1094 } 1101 1095 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java
r2986 r2990 77 77 */ 78 78 public class GenericRelationEditor extends RelationEditor { 79 @SuppressWarnings("unused") 79 80 static private final Logger logger = Logger.getLogger(GenericRelationEditor.class.getName()); 80 81 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberRoleCellEditor.java
r2512 r2990 15 15 16 16 public class MemberRoleCellEditor extends AbstractCellEditor implements TableCellEditor { 17 18 /** the logger object */ 17 @SuppressWarnings("unused") 19 18 static private Logger logger = Logger.getLogger(MemberRoleCellEditor.class.getName()); 20 19 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableLinkedCellRenderer.java
r2512 r2990 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.dialogs.relation; 3 4 import static org.openstreetmap.josm.tools.I18n.tr;5 3 6 4 import java.awt.Color; … … 11 9 import javax.swing.JTable; 12 10 11 import org.openstreetmap.josm.gui.dialogs.relation.WayConnectionType.Direction; 13 12 import org.openstreetmap.josm.tools.ImageProvider; 14 import org.openstreetmap.josm.gui.dialogs.relation.WayConnectionType.Direction;15 13 16 14 public class MemberTableLinkedCellRenderer extends MemberTableCellRenderer { … … 38 36 public void paintComponent(Graphics g) { 39 37 super.paintComponent(g); 40 if (value == null || !value.isValid()) {38 if (value == null || !value.isValid()) 41 39 return; 42 }43 40 44 41 int ymax=this.getSize().height - 1; … … 102 99 Image arrow = null; 103 100 switch (value.direction) { 104 105 106 107 108 109 101 case FORWARD: 102 arrow = arrowDown; 103 break; 104 case BACKWARD: 105 arrow = arrowUp; 106 break; 110 107 } 111 108 if ((arrow != null) && (value.linkPrev || value.linkNext)) { -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/RelationTree.java
r2847 r2990 35 35 */ 36 36 public class RelationTree extends JTree { 37 @SuppressWarnings("unused") 37 38 static private final Logger logger = Logger.getLogger(RelationTree.class.getName()); 38 39 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/WayConnectionType.java
r2512 r2990 2 2 package org.openstreetmap.josm.gui.dialogs.relation; 3 3 4 import static org.openstreetmap.josm.gui.dialogs.relation.WayConnectionType.Direction.NONE; 4 5 import static org.openstreetmap.josm.tools.I18n.tr; 5 6 import static org.openstreetmap.josm.gui.dialogs.relation.WayConnectionType.Direction.*;7 6 8 7 public class WayConnectionType { … … 32 31 return this == ROUNDABOUT_RIGHT || this == ROUNDABOUT_LEFT; 33 32 } 34 } ;33 } 35 34 36 35 /** True, if the element is part of a closed loop of ways. */ … … 66 65 67 66 public String getToolTip() { 68 if (!isValid()) {67 if (!isValid()) 69 68 return ""; 70 } 71 else if (linkPrev && linkNext) { 69 else if (linkPrev && linkNext) 72 70 return tr("way is connected"); 73 } 74 else if (linkPrev) { 71 else if (linkPrev) 75 72 return tr("way is connected to previous relation member"); 76 } 77 else if (linkNext) { 73 else if (linkNext) 78 74 return tr("way is connected to next relation member"); 79 } 80 else { 75 else 81 76 return tr("way is not connected to previous or next relation member"); 82 }//FIXME: isLoop & direction83 77 } 84 78 } -
trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java
r2824 r2990 51 51 */ 52 52 public class DownloadDialog extends JDialog { 53 @SuppressWarnings("unused") 53 54 static private final Logger logger = Logger.getLogger(DownloadDialog.class.getName()); 54 55 -
trunk/src/org/openstreetmap/josm/gui/history/CoordinateInfoViewer.java
r2850 r2990 4 4 5 5 import java.awt.Color; 6 import java.awt.Graphics;7 import java.awt.Graphics2D;8 6 import java.awt.GridBagConstraints; 9 7 import java.awt.GridBagLayout; -
trunk/src/org/openstreetmap/josm/gui/history/TagTableCellRenderer.java
r2512 r2990 19 19 */ 20 20 public class TagTableCellRenderer extends JLabel implements TableCellRenderer { 21 21 @SuppressWarnings("unused") 22 22 static private Logger logger = Logger.getLogger(TagTableCellRenderer.class.getName()); 23 23 -
trunk/src/org/openstreetmap/josm/gui/history/VersionInfoPanel.java
r2850 r2990 32 32 */ 33 33 public class VersionInfoPanel extends JPanel implements Observer{ 34 @SuppressWarnings("unused") 34 35 static private final Logger logger = Logger.getLogger(VersionInfoPanel.class.getName()); 35 36 -
trunk/src/org/openstreetmap/josm/gui/history/VersionTableCellRenderer.java
r2959 r2990 28 28 public class VersionTableCellRenderer extends JLabel implements TableCellRenderer { 29 29 30 @SuppressWarnings("unused") 30 31 static private Logger logger = Logger.getLogger(VersionTableCellRenderer.class.getName()); 31 32 -
trunk/src/org/openstreetmap/josm/gui/io/DownloadOpenChangesetsTask.java
r2915 r2990 66 66 + "to know the identity of the user on whose behalf you are working.") 67 67 + "</html>", 68 tr("Missing user identity"),69 JOptionPane.ERROR_MESSAGE68 tr("Missing user identity"), 69 JOptionPane.ERROR_MESSAGE 70 70 ); 71 71 return; … … 100 100 */ 101 101 protected void refreshUserIdentity(){ 102 JosmUserIdentityManager im = null;102 JosmUserIdentityManager im = JosmUserIdentityManager.getInstance(); 103 103 try { 104 im = JosmUserIdentityManager.getInstance();105 104 OsmServerUserInfoReader reader = new OsmServerUserInfoReader(); 106 105 UserInfo info = reader.fetchUserInfo(getProgressMonitor().createSubTaskMonitor(1, false)); -
trunk/src/org/openstreetmap/josm/gui/io/SaveLayerInfo.java
r2848 r2990 6 6 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 7 7 import org.openstreetmap.josm.tools.CheckParameterUtil; 8 9 import static org.openstreetmap.josm.tools.I18n.tr;10 8 11 9 /** -
trunk/src/org/openstreetmap/josm/gui/io/UpdatePrimitivesTask.java
r2801 r2990 34 34 */ 35 35 public class UpdatePrimitivesTask extends PleaseWaitRunnable { 36 @SuppressWarnings("unused") 36 37 static private final Logger logger = Logger.getLogger(UpdatePrimitivesTask.class.getName()); 37 38 -
trunk/src/org/openstreetmap/josm/gui/io/UploadParameterSummaryPanel.java
r2915 r2990 27 27 28 28 public class UploadParameterSummaryPanel extends JPanel implements HyperlinkListener, PropertyChangeListener{ 29 29 @SuppressWarnings("unused") 30 30 static private final Logger logger = Logger.getLogger(UploadParameterSummaryPanel.class.getName()); 31 31 -
trunk/src/org/openstreetmap/josm/gui/io/UploadPrimitivesTask.java
r2915 r2990 39 39 */ 40 40 public class UploadPrimitivesTask extends AbstractUploadTask { 41 @SuppressWarnings("unused") 41 42 static private final Logger logger = Logger.getLogger(UploadPrimitivesTask.class.getName()); 42 43 -
trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java
r2941 r2990 257 257 258 258 File sel[] = fc.getSelectedFiles(); 259 if (sel != null) { 260 // sort files in increasing order of timestamp (this is the end time, but so 261 // long as they don't overlap, that's fine) 262 if (sel.length > 1) { 263 Arrays.sort(sel, new Comparator<File>() { 264 public int compare(File a, File b) { 265 return a.lastModified() <= b.lastModified() ? -1 : 1; 266 } 267 }); 268 } 259 // sort files in increasing order of timestamp (this is the end time, but so 260 // long as they don't overlap, that's fine) 261 if (sel.length > 1) { 262 Arrays.sort(sel, new Comparator<File>() { 263 public int compare(File a, File b) { 264 return a.lastModified() <= b.lastModified() ? -1 : 1; 265 } 266 }); 269 267 } 270 268 -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java
r2969 r2990 41 41 import javax.swing.JSeparator; 42 42 import javax.swing.SwingConstants; 43 import javax.swing.SwingUtilities;44 43 45 44 import org.openstreetmap.josm.Main; … … 236 235 Main.main.addLayer(layer); 237 236 layer.hook_up_mouse_events(); // Main.map.mapView should exist 238 237 // now. Can add mouse listener 239 238 Main.map.mapView.addPropertyChangeListener(layer); 240 239 if (Main.map.getToggleDialog(ImageViewerDialog.class) == null) { -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java
r2986 r2990 83 83 84 84 boolean error = tracker.isErrorID(1); 85 if (img != null && (img.getWidth(null) == 0 || img.getHeight(null) == 0)) {85 if (img.getWidth(null) == 0 || img.getHeight(null) == 0) { 86 86 error = true; 87 87 } … … 439 439 g.setColor(Color.black); 440 440 String loadingStr; 441 if (! errorLoading) { ;442 loadingStr = tr("Loading {0}", file.getName());441 if (! errorLoading) { 442 loadingStr = tr("Loading {0}", file.getName()); 443 443 } else { 444 444 loadingStr = tr("Error on file {0}", file.getName()); -
trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java
r2889 r2990 4 4 5 5 import java.io.File; 6 import java.io.IOException; 6 7 import java.io.InputStream; 7 import java.io.IOException;8 8 import java.util.Collection; 9 9 import java.util.Collections; … … 58 58 } 59 59 60 @SuppressWarnings("null") 60 61 public static void readFromPreferences() { 61 62 iconDirs = Main.pref.getCollection("mappaint.icon.sources", Collections.<String>emptySet()); … … 95 96 zipIcons = in.getFile(); 96 97 xmlReader.parse(new InputSource(zip)); 98 } else { 99 xmlReader.parse(new InputSource(in)); 97 100 } 98 else99 xmlReader.parse(new InputSource(in));100 101 } catch(IOException e) { 101 102 System.err.println(tr("Warning: failed to load Mappaint styles from ''{0}''. Exception was: {1}", a[1], e.toString())); -
trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorizationUI.java
r2927 r2990 224 224 */ 225 225 protected JPanel buildResultsPanel() { 226 JPanel pnl = new JPanel(new GridBagLayout()); ;226 JPanel pnl = new JPanel(new GridBagLayout()); 227 227 GridBagConstraints gc = new GridBagConstraints(); 228 228 pnl.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); -
trunk/src/org/openstreetmap/josm/gui/oauth/OAuthAuthorizationWizard.java
r2877 r2990 52 52 */ 53 53 public class OAuthAuthorizationWizard extends JDialog { 54 @SuppressWarnings("unused") 54 55 static private final Logger logger = Logger.getLogger(OAuthAuthorizationWizard.class.getName()); 55 56 -
trunk/src/org/openstreetmap/josm/gui/oauth/OsmOAuthAuthorizationClient.java
r2877 r2990 36 36 37 37 public class OsmOAuthAuthorizationClient { 38 @SuppressWarnings("unused") 38 39 static private final Logger logger = Logger.getLogger(OsmOAuthAuthorizationClient.class.getName()); 39 40 -
trunk/src/org/openstreetmap/josm/gui/preferences/PluginPreference.java
r2955 r2990 53 53 54 54 public class PluginPreference implements PreferenceSetting { 55 @SuppressWarnings("unused") 55 56 private final static Logger logger = Logger.getLogger(PluginPreference.class.getName()); 56 57 … … 297 298 } 298 299 }); 299 } ;300 } 300 301 }; 301 302 Main.worker.submit(task); -
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java
r2817 r2990 40 40 */ 41 41 public class PreferenceTabbedPane extends JTabbedPane implements MouseWheelListener { 42 @SuppressWarnings("unused") 42 43 static private final Logger logger = Logger.getLogger(PreferenceTabbedPane.class.getName()); 43 44 -
trunk/src/org/openstreetmap/josm/gui/preferences/ProjectionPreference.java
r2745 r2990 7 7 import java.awt.event.ActionEvent; 8 8 import java.awt.event.ActionListener; 9 10 9 import java.util.Collection; 11 10 … … 110 109 String projname = proj.getClass().getName(); 111 110 Collection<String> prefs = null; 112 if(projHasPrefs(proj)) 111 if(projHasPrefs(proj)) { 113 112 prefs = ((ProjectionSubPrefs) proj).getPreferences(projSubPrefPanel); 113 } 114 114 115 115 Main.pref.put("projection", projname); … … 143 143 { 144 144 setProjection(Main.pref.get("projection", Mercator.class.getName()), 145 Main.pref.getCollection("projection.sub", null));145 Main.pref.getCollection("projection.sub", null)); 146 146 } 147 147 … … 167 167 String sname = name.substring(name.lastIndexOf(".")+1); 168 168 Main.pref.putCollection("projection.sub."+sname, coll); 169 if(projHasPrefs(Main.proj)) 169 if(projHasPrefs(Main.proj)) { 170 170 ((ProjectionSubPrefs) Main.proj).setPreferences(coll); 171 } 171 172 if(b != null && (!Main.proj.getClass().getName().equals(oldProj.getClass().getName()) || Main.proj.hashCode() != oldProj.hashCode())) 172 173 { … … 181 182 public SBPanel(Projection pr) 182 183 { 183 super();184 p = pr;184 super(); 185 p = pr; 185 186 } 186 187 @Override 187 188 public void paint(java.awt.Graphics g) 188 189 { 189 super.paint(g);190 ((ProjectionSubPrefs) p).setPreferences(((ProjectionSubPrefs) p).getPreferences(this));191 updateMeta(p);192 } 193 } ;190 super.paint(g); 191 ((ProjectionSubPrefs) p).setPreferences(((ProjectionSubPrefs) p).getPreferences(this)); 192 updateMeta(p); 193 } 194 } 194 195 195 196 /** … … 228 229 String name = proj.getClass().getName(); 229 230 String sname = name.substring(name.lastIndexOf(".")+1); 230 if(projHasPrefs(proj)) 231 if(projHasPrefs(proj)) { 231 232 ((ProjectionSubPrefs) proj).setPreferences(Main.pref.getCollection("projection.sub."+sname, null)); 233 } 232 234 if (name.equals(Main.pref.get("projection", Mercator.class.getName()))) { 233 235 projectionCombo.setSelectedIndex(i); -
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginListPanel.java
r2924 r2990 26 26 27 27 public class PluginListPanel extends VerticallyScrollablePanel{ 28 @SuppressWarnings("unused") 28 29 private static final Logger logger = Logger.getLogger(PluginListPanel.class.getName()); 29 30 -
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginPreferencesModel.java
r2986 r2990 21 21 22 22 public class PluginPreferencesModel extends Observable{ 23 @SuppressWarnings("unused") 23 24 private final static Logger logger = Logger.getLogger(PluginPreferencesModel.class.getName()); 24 25 … … 157 158 if (pi != null) { 158 159 selectedPluginsMap.put(pi,selected); 160 if (pi.isUpdateRequired()) { 161 pendingDownloads.add(pi.name); 162 } 159 163 } 160 164 if (!selected) { 161 165 pendingDownloads.remove(name); 162 return;163 }164 if (pi.isUpdateRequired()) {165 pendingDownloads.add(pi.name);166 166 } 167 167 } -
trunk/src/org/openstreetmap/josm/gui/preferences/server/OAuthAccessTokenHolder.java
r2801 r2990 14 14 15 15 public class OAuthAccessTokenHolder { 16 @SuppressWarnings("unused") 16 17 static private final Logger logger = Logger.getLogger(OAuthAccessTokenHolder.class.getName()); 17 18 -
trunk/src/org/openstreetmap/josm/gui/preferences/server/OAuthAuthenticationPreferencesPanel.java
r2877 r2990 45 45 */ 46 46 public class OAuthAuthenticationPreferencesPanel extends JPanel implements PropertyChangeListener { 47 @SuppressWarnings("unused") 47 48 private static final Logger logger = Logger.getLogger(OAuthAuthenticationPreferencesPanel.class.getName()); 48 49 -
trunk/src/org/openstreetmap/josm/gui/progress/SwingRenderingProgressMonitor.java
r2850 r2990 5 5 6 6 import org.openstreetmap.josm.tools.CheckParameterUtil; 7 8 import static org.openstreetmap.josm.tools.I18n.tr;9 7 10 8 /** -
trunk/src/org/openstreetmap/josm/gui/tagging/AutoCompletingTextField.java
r2512 r2990 33 33 */ 34 34 public class AutoCompletingTextField extends JTextField implements ComboBoxEditor, TableCellEditor { 35 35 @SuppressWarnings("unused") 36 36 static private Logger logger = Logger.getLogger(AutoCompletingTextField.class.getName()); 37 37 -
trunk/src/org/openstreetmap/josm/gui/tagging/TagCellRenderer.java
r2974 r2990 21 21 */ 22 22 public class TagCellRenderer extends JLabel implements TableCellRenderer { 23 23 @SuppressWarnings("unused") 24 24 private static final Logger logger = Logger.getLogger(TagCellRenderer.class.getName()); 25 25 -
trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorModel.java
r2974 r2990 33 33 @SuppressWarnings("serial") 34 34 public class TagEditorModel extends AbstractTableModel { 35 @SuppressWarnings("unused") 35 36 static private final Logger logger = Logger.getLogger(TagEditorModel.class.getName()); 36 37 -
trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorPanel.java
r2974 r2990 26 26 */ 27 27 public class TagEditorPanel extends JPanel { 28 @SuppressWarnings("unused") 28 29 static private final Logger logger = Logger.getLogger(TagEditorPanel.class.getName()); 29 30 /** the tag editor model */ -
trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionCache.java
r2974 r2990 37 37 */ 38 38 public class AutoCompletionCache { 39 @SuppressWarnings("unused") 39 40 static private final Logger logger = Logger.getLogger(AutoCompletionCache.class.getName()); 40 41 -
trunk/src/org/openstreetmap/josm/io/CacheFiles.java
r2986 r2990 43 43 44 44 // If the cache is full, we don't want to delete just one file 45 private static final int cleanUpThreshold= 20;45 private static final int CLEANUP_TRESHOLD = 20; 46 46 // We don't want to clean after every file-write 47 private static final int cleanUpInterval= 5;47 private static final int CLEANUP_INTERVAL = 5; 48 48 // Stores how many files have been written 49 49 private int writes = 0; … … 221 221 */ 222 222 public void checkCleanUp() { 223 if(this.writes > this.cleanUpInterval) {223 if(this.writes > CLEANUP_INTERVAL) { 224 224 cleanUp(); 225 225 } … … 254 254 255 255 // Delete a couple of files, then check again 256 if(i % cleanUpThreshold== 0 && getDirSize() < maxsize)256 if(i % CLEANUP_TRESHOLD == 0 && getDirSize() < maxsize) 257 257 return; 258 258 } -
trunk/src/org/openstreetmap/josm/io/DefaultProxySelector.java
r2852 r2990 24 24 */ 25 25 public class DefaultProxySelector extends ProxySelector { 26 @SuppressWarnings("unused") 26 27 static private final Logger logger = Logger.getLogger(DefaultProxySelector.class.getName()); 27 28 -
trunk/src/org/openstreetmap/josm/io/MirroredInputStream.java
r2889 r2990 72 72 try { 73 73 if(file != null && (file.getName().endsWith(".zip") 74 || file.getName().endsWith(".ZIP")))74 || file.getName().endsWith(".ZIP"))) 75 75 { 76 76 ZipFile zipFile = new ZipFile(file); 77 77 ZipEntry resentry = null; 78 Enumeration entries = zipFile.entries();78 Enumeration<? extends ZipEntry> entries = zipFile.entries(); 79 79 while(entries.hasMoreElements()) { 80 ZipEntry entry = (ZipEntry)entries.nextElement();80 ZipEntry entry = entries.nextElement(); 81 81 if(entry.getName().endsWith("."+extension)) { 82 82 /* choose any file with correct extension. When more than -
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r2852 r2990 50 50 */ 51 51 public class OsmApi extends OsmConnection { 52 @SuppressWarnings("unused") 52 53 static private final Logger logger = Logger.getLogger(OsmApi.class.getName()); 53 54 /** max number of retries to send a request in case of HTTP 500 errors or timeouts */ -
trunk/src/org/openstreetmap/josm/io/OsmChangesetContentParser.java
r2852 r2990 135 135 throwException(tr("Missing mandatory attribute ''{0}''.", name)); 136 136 } 137 if ( v.equals("true")) return true;138 if ( v.equals("false")) return false;137 if ("true".equals(v)) return true; 138 if ("false".equals(v)) return false; 139 139 throwException(tr("Illegal value for mandatory attribute ''{0}'' of type boolean. Got ''{1}''.", name, v)); 140 140 // not reached -
trunk/src/org/openstreetmap/josm/io/OsmChangesetParser.java
r2955 r2990 39 39 */ 40 40 public class OsmChangesetParser { 41 @SuppressWarnings("unused") 41 42 static private final Logger logger = Logger.getLogger(OsmChangesetParser.class.getName()); 42 43 -
trunk/src/org/openstreetmap/josm/io/OsmConnection.java
r2862 r2990 31 31 */ 32 32 public class OsmConnection { 33 @SuppressWarnings("unused") 33 34 private static final Logger logger = Logger.getLogger(OsmConnection.class.getName()); 34 35 -
trunk/src/org/openstreetmap/josm/io/OsmServerReader.java
r2852 r2990 29 29 */ 30 30 public abstract class OsmServerReader extends OsmConnection { 31 @SuppressWarnings("unused") 31 32 static private final Logger logger = Logger.getLogger(OsmServerReader.class.getName()); 32 33 private OsmApi api = OsmApi.getOsmApi(); -
trunk/src/org/openstreetmap/josm/io/OsmServerWriter.java
r2852 r2990 29 29 */ 30 30 public class OsmServerWriter { 31 @SuppressWarnings("unused") 31 32 static private final Logger logger = Logger.getLogger(OsmServerWriter.class.getName()); 32 33 -
trunk/src/org/openstreetmap/josm/io/auth/DefaultAuthenticator.java
r2801 r2990 17 17 */ 18 18 public class DefaultAuthenticator extends Authenticator { 19 @SuppressWarnings("unused") 19 20 private static final Logger logger = Logger.getLogger(DefaultAuthenticator.class.getName()); 20 21 private static DefaultAuthenticator instance; -
trunk/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java
r2853 r2990 35 35 */ 36 36 public class PluginDownloadTask extends PleaseWaitRunnable{ 37 @SuppressWarnings("unused") 37 38 private static final Logger logger = Logger.getLogger(PluginDownloadTask.class.getName()); 38 39 -
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r2955 r2990 212 212 policy = policy.trim().toLowerCase(); 213 213 if (policy.equals("never")) { 214 if ( togglePreferenceKey.equals("pluginmanager.version-based-update.policy")) {214 if ("pluginmanager.version-based-update.policy".equals(togglePreferenceKey)) { 215 215 System.out.println(tr("Skipping plugin update after JOSM upgrade. Automatic update at startup is disabled.")); 216 } else if ( togglePreferenceKey.equals("pluginmanager.time-based-update.policy")) {216 } else if ("pluginmanager.time-based-update.policy".equals(togglePreferenceKey)) { 217 217 System.out.println(tr("Skipping plugin update after elapsed update interval. Automatic update at startup is disabled.")); 218 218 } … … 221 221 222 222 if (policy.equals("always")) { 223 if ( togglePreferenceKey.equals("pluginmanager.time-based-update.policy")) {223 if ("pluginmanager.time-based-update.policy".equals(togglePreferenceKey)) { 224 224 System.out.println(tr("Running plugin update after JOSM upgrade. Automatic update at startup is enabled.")); 225 } else if ( togglePreferenceKey.equals("pluginmanager.time-based-update.policy")) {225 } else if ("pluginmanager.time-based-update.policy".equals(togglePreferenceKey)) { 226 226 System.out.println(tr("Running plugin update after elapsed update interval. Automatic update at startup is disabled.")); 227 227 } -
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r2927 r2990 17 17 import java.awt.image.BufferedImage; 18 18 import java.io.File; 19 import java.io.IOException; 19 20 import java.io.InputStream; 20 import java.io.IOException;21 21 import java.net.MalformedURLException; 22 22 import java.net.URL; … … 103 103 MirroredInputStream is = new MirroredInputStream(name, new File(Main.pref.getPreferencesDir(), 104 104 "images").toString()); 105 if (is != null) { 106 img = Toolkit.getDefaultToolkit().createImage(is.getFile().toURI().toURL()); 107 cache.put(name, img); 108 } 105 img = Toolkit.getDefaultToolkit().createImage(is.getFile().toURI().toURL()); 106 cache.put(name, img); 109 107 } catch (IOException e) { 110 108 } … … 123 121 if (dirs != null && dirs.size() > 0) { 124 122 cache_name = "id:" + id + ":" + full_name; 125 if(archive != null) 123 if(archive != null) { 126 124 cache_name += ":" + archive.getName(); 125 } 127 126 } 128 127 -
trunk/src/org/openstreetmap/josm/tools/MultiMap.java
r2946 r2990 2 2 package org.openstreetmap.josm.tools; 3 3 4 import java.util.HashMap; 4 5 import java.util.LinkedHashSet; 5 import java.util.List;6 import java.util.HashMap;7 6 8 7 /** … … 21 20 vals.add(value); 22 21 } 23 22 24 23 /** 25 24 * Put a key that maps to nothing. -
trunk/test/functional/org/openstreetmap/josm/io/MultiFetchServerObjectReaderTest.java
r2600 r2990 204 204 createDataSetOnServer(testDataSet); 205 205 206 PrintWriter pw = null;207 206 try { 208 pw = new PrintWriter(207 PrintWriter pw = new PrintWriter( 209 208 new FileWriter(dataSetCacheOutputFile) 210 209 ); 210 logger.info(MessageFormat.format("caching test data set in ''{0}'' ...", dataSetCacheOutputFile.toString())); 211 OsmWriter w = new OsmWriter(pw, false, testDataSet.getVersion()); 212 w.header(); 213 w.writeDataSources(testDataSet); 214 w.writeContent(testDataSet); 215 w.footer(); 216 w.close(); 217 pw.close(); 211 218 } catch(IOException e) { 212 219 fail(MessageFormat.format("failed to open file ''{0}'' for writing", dataSetCacheOutputFile.toString())); 213 220 } 214 logger.info(MessageFormat.format("caching test data set in ''{0}'' ...", dataSetCacheOutputFile.toString()));215 OsmWriter w = new OsmWriter(pw, false, testDataSet.getVersion());216 w.header();217 w.writeDataSources(testDataSet);218 w.writeContent(testDataSet);219 w.footer();220 w.close();221 pw.close();222 221 } 223 222 -
trunk/test/functional/org/openstreetmap/josm/io/OsmServerBackreferenceReaderTest.java
r2600 r2990 211 211 createDataSetOnServer(testDataSet); 212 212 213 PrintWriter pw = null;214 213 try { 215 pw = new PrintWriter(214 PrintWriter pw = new PrintWriter( 216 215 new FileWriter(dataSetCacheOutputFile) 217 216 ); 217 logger.info(MessageFormat.format("caching test data set in ''{0}'' ...", dataSetCacheOutputFile.toString())); 218 OsmWriter w = new OsmWriter(pw, false, testDataSet.getVersion()); 219 w.header(); 220 w.writeDataSources(testDataSet); 221 w.writeContent(testDataSet); 222 w.footer(); 223 w.close(); 224 pw.close(); 218 225 } catch(IOException e) { 219 226 fail(MessageFormat.format("failed to open file ''{0}'' for writing", dataSetCacheOutputFile.toString())); 220 227 } 221 logger.info(MessageFormat.format("caching test data set in ''{0}'' ...", dataSetCacheOutputFile.toString()));222 OsmWriter w = new OsmWriter(pw, false, testDataSet.getVersion());223 w.header();224 w.writeDataSources(testDataSet);225 w.writeContent(testDataSet);226 w.footer();227 w.close();228 pw.close();229 228 } 230 229 -
trunk/test/unit/org/openstreetmap/josm/data/osm/history/HistoryWayTest.java
r1750 r2990 3 3 4 4 import static org.junit.Assert.assertEquals; 5 import static org.junit.Assert. *;5 import static org.junit.Assert.fail; 6 6 7 7 import java.util.ArrayList; … … 14 14 15 15 @Test 16 public void HistoryWayTest() {16 public void wayTest() { 17 17 Date d = new Date(); 18 18 HistoryWay way = new HistoryWay( -
trunk/test/unit/org/openstreetmap/josm/gui/conflict/nodes/NodeListMergeModelTest.java
r2626 r2990 729 729 events.add(evt); 730 730 } 731 } ;731 } 732 732 MyListener listener = new MyListener(); 733 733 model.addPropertyChangeListener(listener); -
trunk/test/unit/org/openstreetmap/josm/gui/conflict/tags/TagMergeModelTest.java
r2676 r2990 16 16 import org.openstreetmap.josm.gui.conflict.pair.tags.TagMergeModel; 17 17 18 @SuppressWarnings("unchecked") 18 19 public class TagMergeModelTest { 19 20
Note:
See TracChangeset
for help on using the changeset viewer.