- Timestamp:
- 2008-03-15T14:39:28+01:00 (17 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 56 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java
r529 r582 9 9 import java.util.Collection; 10 10 import java.util.HashMap; 11 import java.util.HashSet; 11 12 import java.util.LinkedList; 12 13 import java.util.List; 13 14 import java.util.ListIterator; 14 import java.util.ArrayList;15 15 import java.util.Map; 16 16 import java.util.Set; … … 18 18 import java.util.TreeSet; 19 19 import java.util.Map.Entry; 20 import java.util.HashSet;21 20 22 21 import javax.swing.Box; … … 33 32 import org.openstreetmap.josm.data.SelectionChangedListener; 34 33 import org.openstreetmap.josm.data.osm.DataSet; 34 import org.openstreetmap.josm.data.osm.Node; 35 35 import org.openstreetmap.josm.data.osm.OsmPrimitive; 36 36 import org.openstreetmap.josm.data.osm.Relation; 37 37 import org.openstreetmap.josm.data.osm.RelationMember; 38 import org.openstreetmap.josm.data.osm.TigerUtils; 38 39 import org.openstreetmap.josm.data.osm.Way; 39 import org.openstreetmap.josm.data.osm.Node; 40 import org.openstreetmap.josm.data.osm.TigerUtils; 40 import org.openstreetmap.josm.tools.GBC; 41 41 import org.openstreetmap.josm.tools.Pair; 42 import org.openstreetmap.josm.tools.GBC;43 42 44 43 /** … … 112 111 tr("Combine ways with different memberships?"), 113 112 JOptionPane.YES_NO_OPTION); 114 if (option == JOptionPane.YES_OPTION) {113 if (option == JOptionPane.YES_OPTION) 115 114 break; 116 } else { 117 return; 118 } 115 return; 119 116 } 120 117 } … … 146 143 nodeList = (List<Node>) secondTry; 147 144 } else { 148 JOptionPane.showMessageDialog(Main.parent, (String)secondTry);145 JOptionPane.showMessageDialog(Main.parent, secondTry); 149 146 return; 150 147 } -
trunk/src/org/openstreetmap/josm/actions/GpxExportAction.java
r460 r582 28 28 29 29 import org.openstreetmap.josm.Main; 30 import org.openstreetmap.josm.data.gpx.GpxData; 31 import org.openstreetmap.josm.gui.layer.GpxLayer; 30 32 import org.openstreetmap.josm.gui.layer.Layer; 31 33 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 32 import org.openstreetmap.josm.gui.layer.GpxLayer;33 34 import org.openstreetmap.josm.io.GpxWriter; 34 import org.openstreetmap.josm.io.XmlWriter;35 35 import org.openstreetmap.josm.tools.GBC; 36 import org.openstreetmap.josm.data.gpx.GpxData;37 36 38 37 /** -
trunk/src/org/openstreetmap/josm/actions/JoinNodeWayAction.java
r469 r582 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.awt.event.ActionEvent; 7 import java.awt.event.KeyEvent; 6 8 import java.util.ArrayList; 7 import java.util.LinkedList;8 9 import java.util.Collection; 9 10 import java.util.Collections; 10 import java.util.List;11 11 import java.util.HashMap; 12 12 import java.util.HashSet; 13 import java.util.LinkedList; 14 import java.util.List; 13 15 import java.util.Map; 14 16 15 import java.awt.event.ActionEvent;16 import java.awt.event.KeyEvent;17 18 17 import org.openstreetmap.josm.Main; 18 import org.openstreetmap.josm.command.ChangeCommand; 19 import org.openstreetmap.josm.command.Command; 20 import org.openstreetmap.josm.command.SequenceCommand; 19 21 import org.openstreetmap.josm.data.osm.Node; 22 import org.openstreetmap.josm.data.osm.OsmPrimitive; 23 import org.openstreetmap.josm.data.osm.Way; 20 24 import org.openstreetmap.josm.data.osm.WaySegment; 21 import org.openstreetmap.josm.data.osm.Way;22 import org.openstreetmap.josm.gui.MapFrame;23 import org.openstreetmap.josm.plugins.Plugin;24 import org.openstreetmap.josm.actions.JosmAction;25 import org.openstreetmap.josm.command.Command;26 import org.openstreetmap.josm.command.AddCommand;27 import org.openstreetmap.josm.command.DeleteCommand;28 import org.openstreetmap.josm.command.ChangeCommand;29 import org.openstreetmap.josm.command.SequenceCommand;30 import org.openstreetmap.josm.data.osm.OsmPrimitive;31 32 import javax.swing.AbstractAction;33 25 34 26 public class JoinNodeWayAction extends JosmAction { -
trunk/src/org/openstreetmap/josm/actions/MergeNodesAction.java
r529 r582 7 7 import java.awt.event.ActionEvent; 8 8 import java.awt.event.KeyEvent; 9 import java.util.ArrayList; 9 10 import java.util.Collection; 10 11 import java.util.HashMap; 12 import java.util.HashSet; 11 13 import java.util.LinkedList; 12 import java.util.List;13 import java.util.ListIterator;14 import java.util.ArrayList;15 14 import java.util.Map; 16 15 import java.util.Set; … … 18 17 import java.util.TreeSet; 19 18 import java.util.Map.Entry; 20 import java.util.HashSet;21 19 22 20 import javax.swing.Box; … … 33 31 import org.openstreetmap.josm.data.SelectionChangedListener; 34 32 import org.openstreetmap.josm.data.osm.DataSet; 33 import org.openstreetmap.josm.data.osm.Node; 35 34 import org.openstreetmap.josm.data.osm.OsmPrimitive; 36 35 import org.openstreetmap.josm.data.osm.Relation; 37 36 import org.openstreetmap.josm.data.osm.RelationMember; 37 import org.openstreetmap.josm.data.osm.TigerUtils; 38 38 import org.openstreetmap.josm.data.osm.Way; 39 import org.openstreetmap.josm.data.osm.Node;40 import org.openstreetmap.josm.data.osm.TigerUtils;41 import org.openstreetmap.josm.tools.Pair;42 39 import org.openstreetmap.josm.data.osm.visitor.CollectBackReferencesVisitor; 43 40 import org.openstreetmap.josm.tools.GBC; 41 import org.openstreetmap.josm.tools.Pair; 44 42 45 43 … … 149 147 tr("Merge nodes with different memberships?"), 150 148 JOptionPane.YES_NO_OPTION); 151 if (option == JOptionPane.YES_OPTION) {149 if (option == JOptionPane.YES_OPTION) 152 150 break; 153 } else { 154 return null; 155 } 151 return null; 156 152 } 157 153 } -
trunk/src/org/openstreetmap/josm/actions/MoveAction.java
r526 r582 25 25 public class MoveAction extends JosmAction { 26 26 27 public enum Direction { UP, LEFT, RIGHT, DOWN } ;27 public enum Direction { UP, LEFT, RIGHT, DOWN } 28 28 private Direction myDirection; 29 29 -
trunk/src/org/openstreetmap/josm/actions/PasteTagsAction.java
r566 r582 8 8 import java.awt.event.KeyEvent; 9 9 import java.util.Collection; 10 import java.util.HashMap; 11 import java.util.Iterator; 10 12 import java.util.LinkedList; 11 import java.util.Iterator;12 import java.util.HashMap;13 13 import java.util.Map; 14 import java.util.Map.Entry;15 14 16 15 import org.openstreetmap.josm.Main; … … 19 18 import org.openstreetmap.josm.command.SequenceCommand; 20 19 import org.openstreetmap.josm.data.SelectionChangedListener; 21 import org.openstreetmap.josm.data.SelectionChangedListener;22 20 import org.openstreetmap.josm.data.osm.DataSet; 23 import org.openstreetmap.josm.data.osm.Node;24 import org.openstreetmap.josm.data.osm.Way;25 import org.openstreetmap.josm.data.osm.Relation;26 21 import org.openstreetmap.josm.data.osm.OsmPrimitive; 27 22 -
trunk/src/org/openstreetmap/josm/actions/SplitWayAction.java
r570 r582 9 9 import java.util.ArrayList; 10 10 import java.util.Collection; 11 import java.util.Collections;12 import java.util.Comparator;13 11 import java.util.HashMap; 14 12 import java.util.HashSet; … … 28 26 import org.openstreetmap.josm.data.SelectionChangedListener; 29 27 import org.openstreetmap.josm.data.osm.DataSet; 30 import org.openstreetmap.josm.data.osm.Relation;31 28 import org.openstreetmap.josm.data.osm.Node; 32 29 import org.openstreetmap.josm.data.osm.OsmPrimitive; 30 import org.openstreetmap.josm.data.osm.Relation; 33 31 import org.openstreetmap.josm.data.osm.Way; 34 32 import org.openstreetmap.josm.data.osm.visitor.NameVisitor; -
trunk/src/org/openstreetmap/josm/actions/audio/AudioBackAction.java
r572 r582 5 5 6 6 import java.awt.event.ActionEvent; 7 import java.awt.event.InputEvent;8 7 import java.awt.event.KeyEvent; 9 8 10 9 import org.openstreetmap.josm.Main; 11 10 import org.openstreetmap.josm.actions.JosmAction; 12 import org.openstreetmap.josm.data.osm.DataSet;13 import org.openstreetmap.josm.gui.layer.OsmDataLayer;14 11 import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer; 15 12 import org.openstreetmap.josm.tools.AudioPlayer; -
trunk/src/org/openstreetmap/josm/actions/audio/AudioFastSlowAction.java
r563 r582 1 1 // License: GPL. Copyright 2007 by Immanuel Scholz and others 2 2 package org.openstreetmap.josm.actions.audio; 3 4 import static org.openstreetmap.josm.tools.I18n.tr;5 3 6 4 import java.awt.event.ActionEvent; -
trunk/src/org/openstreetmap/josm/actions/audio/AudioFwdAction.java
r560 r582 5 5 6 6 import java.awt.event.ActionEvent; 7 import java.awt.event.InputEvent;8 7 import java.awt.event.KeyEvent; 9 8 10 9 import org.openstreetmap.josm.Main; 11 10 import org.openstreetmap.josm.actions.JosmAction; 12 import org.openstreetmap.josm.data.osm.DataSet;13 import org.openstreetmap.josm.gui.layer.OsmDataLayer;14 11 import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer; 15 12 import org.openstreetmap.josm.tools.AudioPlayer; -
trunk/src/org/openstreetmap/josm/actions/audio/AudioNextAction.java
r560 r582 5 5 6 6 import java.awt.event.ActionEvent; 7 import java.awt.event.InputEvent;8 7 import java.awt.event.KeyEvent; 9 8 10 import org.openstreetmap.josm.Main;11 9 import org.openstreetmap.josm.actions.JosmAction; 12 import org.openstreetmap.josm.data.osm.DataSet;13 import org.openstreetmap.josm.gui.layer.OsmDataLayer;14 10 import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer; 15 11 -
trunk/src/org/openstreetmap/josm/actions/audio/AudioPlayPauseAction.java
r563 r582 5 5 6 6 import java.awt.event.ActionEvent; 7 import java.awt.event.InputEvent;8 7 import java.awt.event.KeyEvent; 9 8 import java.net.URL; 10 9 11 import org.openstreetmap.josm.Main;12 10 import org.openstreetmap.josm.actions.JosmAction; 11 import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer; 13 12 import org.openstreetmap.josm.tools.AudioPlayer; 14 import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer;15 13 16 14 public class AudioPlayPauseAction extends JosmAction { -
trunk/src/org/openstreetmap/josm/actions/audio/AudioPrevAction.java
r560 r582 5 5 6 6 import java.awt.event.ActionEvent; 7 import java.awt.event.InputEvent;8 7 import java.awt.event.KeyEvent; 9 8 10 import org.openstreetmap.josm.Main;11 9 import org.openstreetmap.josm.actions.JosmAction; 12 import org.openstreetmap.josm.data.osm.DataSet;13 import org.openstreetmap.josm.gui.layer.OsmDataLayer;14 10 import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer; 15 11 -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadGpsTask.java
r529 r582 23 23 private static class Task extends PleaseWaitRunnable { 24 24 private BoundingBoxDownloader reader; 25 private DownloadAction action;26 25 private GpxData rawData; 27 26 private final boolean newLayer; … … 30 29 super(tr("Downloading GPS data")); 31 30 this.reader = reader; 32 this.action = action;33 31 this.newLayer = newLayer; 34 32 } -
trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java
r529 r582 143 143 osm.visit(v); 144 144 v.data.addAll(selection); 145 if (v.data.isEmpty()) {145 if (v.data.isEmpty()) 146 146 return null; 147 } else { 148 return new DeleteCommand(v.data); 149 } 147 return new DeleteCommand(v.data); 150 148 } 151 149 -
trunk/src/org/openstreetmap/josm/actions/mapmode/PlayHeadDragMode.java
r572 r582 5 5 6 6 import java.awt.Cursor; 7 import java.awt.Graphics;8 import java.awt.Insets;9 7 import java.awt.Point; 10 import java.awt.Rectangle;11 8 import java.awt.event.ActionEvent; 12 import java.awt.event.ActionListener;13 import java.awt.event.MouseAdapter;14 import java.awt.event.MouseListener;15 import java.awt.event.MouseMotionAdapter;16 9 import java.awt.event.MouseEvent; 17 import java.awt.event.MouseMotionListener;18 import java.io.IOException;19 import java.net.URL;20 import java.util.Collection;21 import java.util.Iterator;22 23 import javax.swing.BorderFactory;24 import javax.swing.Icon;25 import javax.swing.JOptionPane;26 import javax.swing.Timer;27 import javax.swing.border.BevelBorder;28 import javax.swing.border.Border;29 10 30 11 import org.openstreetmap.josm.Main; 31 import org.openstreetmap.josm.actions.mapmode.SelectAction.Mode;32 import org.openstreetmap.josm.data.coor.LatLon;33 import org.openstreetmap.josm.tools.AudioPlayer;34 import org.openstreetmap.josm.data.gpx.GpxTrack;35 import org.openstreetmap.josm.data.gpx.WayPoint;36 12 import org.openstreetmap.josm.data.coor.EastNorth; 37 import org.openstreetmap.josm.gui.MapFrame;38 13 import org.openstreetmap.josm.gui.layer.markerlayer.PlayHeadMarker; 39 import org.openstreetmap.josm.gui.MapView;40 import org.openstreetmap.josm.gui.layer.GpxLayer;41 42 import org.openstreetmap.josm.tools.ImageProvider;43 14 44 15 /** -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r581 r582 7 7 import java.awt.Point; 8 8 import java.awt.Rectangle; 9 import java.awt.event.ActionEvent; 9 10 import java.awt.event.KeyEvent; 10 11 import java.awt.event.MouseEvent; 11 import java.awt.event.ActionEvent;12 12 import java.util.Collection; 13 import java.util.Collections;14 13 import java.util.LinkedList; 15 14 … … 17 16 18 17 import org.openstreetmap.josm.Main; 19 import org.openstreetmap.josm.actions. GroupAction;18 import org.openstreetmap.josm.actions.MergeNodesAction; 20 19 import org.openstreetmap.josm.command.Command; 21 20 import org.openstreetmap.josm.command.MoveCommand; … … 29 28 import org.openstreetmap.josm.gui.SelectionManager.SelectionEnded; 30 29 import org.openstreetmap.josm.tools.ImageProvider; 31 import org.openstreetmap.josm.actions.MergeNodesAction;32 30 /** 33 31 * Move is an action that can move all kind of OsmPrimitives (except Keys for now). … … 79 77 putValue("help", "Action/Move/Move"); 80 78 selectionManager = new SelectionManager(this, false, mapFrame.mapView); 81 try { initialMoveDelay = Integer.parseInt(Main.pref.get("edit.initial-move-delay","200")); } catch (NumberFormatException x) {} ;82 try { initialMoveThreshold = Integer.parseInt(Main.pref.get("edit.initial-move-threshold","5")); } catch (NumberFormatException x) {} ;79 try { initialMoveDelay = Integer.parseInt(Main.pref.get("edit.initial-move-delay","200")); } catch (NumberFormatException x) {} 80 try { initialMoveThreshold = Integer.parseInt(Main.pref.get("edit.initial-move-threshold","5")); } catch (NumberFormatException x) {} 83 81 84 82 } … … 91 89 return Cursor.getPredefinedCursor(def); 92 90 } 93 94 private static Cursor getCursor(String name, int def) {95 return getCursor(name, null, def);96 }97 91 98 92 private void setCursor(Cursor c) { … … 215 209 return; 216 210 boolean ctrl = (e.getModifiers() & ActionEvent.CTRL_MASK) != 0; 217 boolean alt = (e.getModifiers() & ActionEvent.ALT_MASK) != 0;211 // boolean alt = (e.getModifiers() & ActionEvent.ALT_MASK) != 0; 218 212 boolean shift = (e.getModifiers() & ActionEvent.SHIFT_MASK) != 0; 219 213 -
trunk/src/org/openstreetmap/josm/actions/search/PushbackTokenizer.java
r513 r582 85 85 public boolean readIfEqual(String tok) { 86 86 String nextTok = nextToken(); 87 if (nextTok == null ? tok == null : nextTok.equals(tok)) {87 if (nextTok == null ? tok == null : nextTok.equals(tok)) 88 88 return true; 89 } else { 90 pushBack(nextTok); 91 return false; 92 } 89 pushBack(nextTok); 90 return false; 93 91 } 94 92 95 93 public String readText() { 96 94 String nextTok = nextToken(); 97 if (nextTok != null && nextTok.startsWith(" ")) {95 if (nextTok != null && nextTok.startsWith(" ")) 98 96 return nextTok.substring(1); 99 } else { 100 pushBack(nextTok); 101 return null; 102 } 97 pushBack(nextTok); 98 return null; 103 99 } 104 100 -
trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java
r522 r582 2 2 package org.openstreetmap.josm.actions.search; 3 3 4 import java.io.IOException;5 4 import java.io.PushbackReader; 6 5 import java.io.StringReader; 7 6 import java.util.Map.Entry; 8 import java.util.regex.Pattern;9 import java.util.regex.Matcher;10 7 11 8 import org.openstreetmap.josm.data.osm.Node; 12 9 import org.openstreetmap.josm.data.osm.OsmPrimitive; 13 import org.openstreetmap.josm.data.osm.Way;14 10 import org.openstreetmap.josm.data.osm.Relation; 15 11 import org.openstreetmap.josm.data.osm.User; 12 import org.openstreetmap.josm.data.osm.Way; 16 13 17 14 /** -
trunk/src/org/openstreetmap/josm/command/AddCommand.java
r343 r582 12 12 import org.openstreetmap.josm.Main; 13 13 import org.openstreetmap.josm.data.osm.DataSet; 14 import org.openstreetmap.josm.data.osm.Relation;15 14 import org.openstreetmap.josm.data.osm.OsmPrimitive; 16 15 import org.openstreetmap.josm.data.osm.visitor.AddVisitor; -
trunk/src/org/openstreetmap/josm/command/DeleteCommand.java
r343 r582 11 11 import javax.swing.tree.MutableTreeNode; 12 12 13 import org.openstreetmap.josm.data.osm.Relation;14 13 import org.openstreetmap.josm.data.osm.OsmPrimitive; 15 14 import org.openstreetmap.josm.data.osm.visitor.NameVisitor; -
trunk/src/org/openstreetmap/josm/data/gpx/GpxData.java
r444 r582 3 3 package org.openstreetmap.josm.data.gpx; 4 4 5 import java.io.File; 5 6 import java.util.Collection; 6 7 import java.util.LinkedList; 7 8 import java.util.Map; 8 import java.util.HashMap; 9 9 10 import org.openstreetmap.josm.data.Bounds; 10 import org.openstreetmap.josm.data.coor.LatLon;11 import java.lang.Math;12 import java.io.File;13 11 14 12 /** -
trunk/src/org/openstreetmap/josm/data/osm/Relation.java
r343 r582 3 3 import java.util.ArrayList; 4 4 import java.util.Arrays; 5 import java.util.Collections;6 5 import java.util.List; 7 import java.util.Map.Entry;8 6 9 7 import org.openstreetmap.josm.data.osm.visitor.Visitor; -
trunk/src/org/openstreetmap/josm/data/osm/RelationMember.java
r426 r582 16 16 * Default constructor. Does nothing. 17 17 */ 18 public RelationMember() { } ;18 public RelationMember() { } 19 19 20 20 public RelationMember(String role, OsmPrimitive member) { -
trunk/src/org/openstreetmap/josm/data/osm/TigerUtils.java
r529 r582 12 12 */ 13 13 public class TigerUtils { 14 14 15 public static boolean isTigerTag(String tag) 15 16 { … … 18 19 return true; 19 20 } 21 20 22 public static boolean tagIsInt(String name) { 21 23 if (name.equals("tiger:tlid")) … … 23 25 return false; 24 26 } 27 25 28 public static Object tagObj(String name) { 26 29 if (tagIsInt(name)) … … 28 31 return name; 29 32 } 33 30 34 public static String combineTags(String name, Set<String> values) { 31 TreeSet resultSet = new TreeSet();35 TreeSet<Object> resultSet = new TreeSet<Object>(); 32 36 for (String value: values) { 33 37 for (String part: value.split(":")) { … … 43 47 return combined; 44 48 } 49 45 50 public static String combineTags(String name, String t1, String t2) { 46 51 Set<String> set = new TreeSet<String>(); -
trunk/src/org/openstreetmap/josm/data/osm/visitor/NameVisitor.java
r511 r582 8 8 import java.text.NumberFormat; 9 9 import java.util.HashSet; 10 import java.util.Set;11 10 12 11 import javax.swing.Icon; … … 14 13 15 14 import org.openstreetmap.josm.Main; 16 import org.openstreetmap.josm.data.osm.Relation;17 15 import org.openstreetmap.josm.data.osm.Node; 18 16 import org.openstreetmap.josm.data.osm.OsmPrimitive; 17 import org.openstreetmap.josm.data.osm.Relation; 19 18 import org.openstreetmap.josm.data.osm.Way; 20 19 import org.openstreetmap.josm.tools.ImageProvider; -
trunk/src/org/openstreetmap/josm/gui/GettingStarted.java
r574 r582 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.awt.Dimension;7 6 import java.awt.GridBagLayout; 8 7 import java.awt.event.ActionEvent; … … 13 12 import javax.swing.JLabel; 14 13 import javax.swing.JPanel; 15 import javax.swing.JTextField;16 14 import javax.swing.event.HyperlinkEvent; 17 15 import javax.swing.event.HyperlinkListener; -
trunk/src/org/openstreetmap/josm/gui/MapFrame.java
r526 r582 10 10 import javax.swing.BoxLayout; 11 11 import javax.swing.ButtonGroup; 12 import javax.swing.JButton;13 12 import javax.swing.JPanel; 14 13 import javax.swing.JToolBar; 15 14 16 15 import org.openstreetmap.josm.Main; 17 import org.openstreetmap.josm.actions.MoveAction;18 16 import org.openstreetmap.josm.actions.mapmode.DeleteAction; 19 17 import org.openstreetmap.josm.actions.mapmode.DrawAction; 20 18 import org.openstreetmap.josm.actions.mapmode.MapMode; 19 import org.openstreetmap.josm.actions.mapmode.SelectAction; 21 20 import org.openstreetmap.josm.actions.mapmode.ZoomAction; 22 import org.openstreetmap.josm.actions.mapmode.SelectAction;23 21 import org.openstreetmap.josm.gui.dialogs.CommandStackDialog; 24 22 import org.openstreetmap.josm.gui.dialogs.ConflictDialog; 25 import org.openstreetmap.josm.gui.dialogs.RelationListDialog;26 23 import org.openstreetmap.josm.gui.dialogs.HistoryDialog; 27 24 import org.openstreetmap.josm.gui.dialogs.LayerListDialog; 28 25 import org.openstreetmap.josm.gui.dialogs.PropertiesDialog; 26 import org.openstreetmap.josm.gui.dialogs.RelationListDialog; 29 27 import org.openstreetmap.josm.gui.dialogs.SelectionListDialog; 30 28 import org.openstreetmap.josm.gui.dialogs.ToggleDialog; -
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r432 r582 14 14 import java.awt.event.AWTEventListener; 15 15 import java.awt.event.InputEvent; 16 import java.awt.event.KeyAdapter; 17 import java.awt.event.KeyEvent; 16 18 import java.awt.event.MouseAdapter; 17 19 import java.awt.event.MouseEvent; 18 20 import java.awt.event.MouseMotionListener; 19 import java.awt.event.KeyAdapter;20 import java.awt.event.KeyEvent;21 21 import java.lang.reflect.InvocationTargetException; 22 22 import java.text.DecimalFormat; 23 import java.text.NumberFormat;24 23 import java.util.Collection; 25 24 import java.util.ConcurrentModificationException; … … 27 26 28 27 import javax.swing.BorderFactory; 29 import javax.swing.BoxLayout;30 28 import javax.swing.JLabel; 31 29 import javax.swing.JPanel; -
trunk/src/org/openstreetmap/josm/gui/MapView.java
r572 r582 10 10 import java.awt.event.ComponentEvent; 11 11 import java.awt.event.KeyEvent; 12 import java.awt.event.ActionListener;13 import java.awt.event.ActionEvent;14 12 import java.util.ArrayList; 15 13 import java.util.Collection; -
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r454 r582 250 250 public Collection<OsmPrimitive> getNearestCollection(Point p) { 251 251 OsmPrimitive osm = getNearest(p); 252 if (osm == null) {252 if (osm == null) 253 253 return Collections.emptySet(); 254 } else { 255 return Collections.singleton(osm); 256 } 254 return Collections.singleton(osm); 257 255 } 258 256 -
trunk/src/org/openstreetmap/josm/gui/OsmPrimitivRenderer.java
r343 r582 65 65 private Component renderer(Component def, OsmPrimitive value) { 66 66 if (def != null && value != null && def instanceof JLabel) { 67 ( (OsmPrimitive)value).visit(visitor);67 (value).visit(visitor); 68 68 ((JLabel)def).setText(visitor.name); 69 69 ((JLabel)def).setIcon(visitor.icon); -
trunk/src/org/openstreetmap/josm/gui/dialogs/PropertiesDialog.java
r418 r582 15 15 import java.awt.event.FocusAdapter; 16 16 import java.awt.event.FocusEvent; 17 import java.awt.event.KeyAdapter;18 17 import java.awt.event.KeyEvent; 19 18 import java.awt.event.MouseAdapter; -
trunk/src/org/openstreetmap/josm/gui/dialogs/RelationEditor.java
r565 r582 14 14 import java.beans.PropertyChangeListener; 15 15 import java.util.ArrayList; 16 import java.util.Collections;17 16 import java.util.Map.Entry; 18 17 -
trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
r407 r582 11 11 import java.awt.event.MouseAdapter; 12 12 import java.awt.event.MouseEvent; 13 import java.util.Arrays;14 import java.util.Collection;15 13 import java.util.Collections; 16 import java.util.LinkedList;17 14 18 15 import javax.swing.DefaultListModel; 19 16 import javax.swing.JButton; 20 17 import javax.swing.JList; 21 import javax.swing.JOptionPane;22 18 import javax.swing.JPanel; 23 19 import javax.swing.JScrollPane; … … 26 22 import org.openstreetmap.josm.Main; 27 23 import org.openstreetmap.josm.command.DeleteCommand; 28 import org.openstreetmap.josm.data.SelectionChangedListener;29 import org.openstreetmap.josm.data.osm.DataSet;30 24 import org.openstreetmap.josm.data.osm.Relation; 31 import org.openstreetmap.josm.data.osm.OsmPrimitive;32 25 import org.openstreetmap.josm.gui.OsmPrimitivRenderer; 33 26 import org.openstreetmap.josm.gui.layer.DataChangeListener; -
trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
r450 r582 28 28 import org.openstreetmap.josm.gui.OsmPrimitivRenderer; 29 29 import org.openstreetmap.josm.tools.ImageProvider; 30 import org.openstreetmap.josm.actions.JosmAction;31 30 32 31 /** … … 76 75 })); 77 76 78 buttonPanel.add(createButton("Search", "dialogs/search", "Search for objects.", (JosmAction)Main.main.menu.search));77 buttonPanel.add(createButton("Search", "dialogs/search", "Search for objects.", Main.main.menu.search)); 79 78 80 79 add(buttonPanel, BorderLayout.SOUTH); -
trunk/src/org/openstreetmap/josm/gui/download/BookmarkSelection.java
r435 r582 50 50 @Override public void mouseClicked(MouseEvent e) { 51 51 if (e.getClickCount() == 2) { 52 int index = bookmarks.locationToIndex(e.getPoint());52 //int index = bookmarks.locationToIndex(e.getPoint()); 53 53 gui.closeDownloadDialog(true); 54 54 } -
trunk/src/org/openstreetmap/josm/gui/download/BoundingBoxSelection.java
r417 r582 21 21 import javax.swing.JTextField; 22 22 import javax.swing.SwingUtilities; 23 import javax.swing.text.JTextComponent;24 23 25 24 import org.openstreetmap.josm.Main; -
trunk/src/org/openstreetmap/josm/gui/layer/GeoImageLayer.java
r444 r582 18 18 import java.awt.event.ActionEvent; 19 19 import java.awt.event.ActionListener; 20 import java.awt.event.KeyEvent; 20 21 import java.awt.event.MouseAdapter; 21 22 import java.awt.event.MouseEvent; 22 import java.awt.event.KeyEvent;23 23 import java.awt.image.BufferedImage; 24 24 import java.io.File; … … 36 36 import javax.swing.Icon; 37 37 import javax.swing.ImageIcon; 38 import javax.swing.JButton; 38 39 import javax.swing.JDialog; 39 40 import javax.swing.JFileChooser; … … 47 48 import javax.swing.JTextField; 48 49 import javax.swing.JToggleButton; 49 import javax.swing.JButton;50 50 import javax.swing.JViewport; 51 51 import javax.swing.border.BevelBorder; … … 57 57 import org.openstreetmap.josm.data.coor.EastNorth; 58 58 import org.openstreetmap.josm.data.coor.LatLon; 59 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;60 import org.openstreetmap.josm.data.gpx.GpxData;61 59 import org.openstreetmap.josm.data.gpx.GpxTrack; 62 60 import org.openstreetmap.josm.data.gpx.WayPoint; 61 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 63 62 import org.openstreetmap.josm.gui.MapView; 64 63 import org.openstreetmap.josm.gui.PleaseWaitRunnable; -
trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java
r578 r582 11 11 import java.awt.GridBagLayout; 12 12 import java.awt.Point; 13 import java.util.ArrayList;14 import java.util.Collection;15 import java.util.LinkedList;16 13 import java.awt.event.ActionEvent; 17 14 import java.awt.event.ActionListener; 15 import java.io.BufferedReader; 18 16 import java.io.File; 19 17 import java.io.FileInputStream; 20 18 import java.io.FileOutputStream; 21 import java.io.BufferedReader;22 19 import java.io.InputStreamReader; 23 20 import java.net.URL; 24 21 import java.net.URLConnection; 25 22 import java.net.UnknownHostException; 26 import java.util.Iterator; 23 import java.util.ArrayList; 24 import java.util.Collection; 27 25 import java.util.Collections; 28 26 import java.util.Comparator; 27 import java.util.LinkedList; 29 28 30 29 import javax.swing.AbstractAction; … … 32 31 import javax.swing.ButtonGroup; 33 32 import javax.swing.Icon; 33 import javax.swing.JCheckBox; 34 34 import javax.swing.JColorChooser; 35 35 import javax.swing.JFileChooser; … … 38 38 import javax.swing.JOptionPane; 39 39 import javax.swing.JPanel; 40 import javax.swing.JRadioButton; 40 41 import javax.swing.JSeparator; 41 import javax.swing.JRadioButton;42 42 import javax.swing.JTextField; 43 import javax.swing.JCheckBox;44 43 import javax.swing.filechooser.FileFilter; 45 44 46 45 import org.openstreetmap.josm.Main; 46 import org.openstreetmap.josm.actions.RenameLayerAction; 47 47 import org.openstreetmap.josm.actions.SaveAction; 48 48 import org.openstreetmap.josm.actions.SaveAsAction; 49 import org.openstreetmap.josm.actions.RenameLayerAction;50 49 import org.openstreetmap.josm.data.coor.EastNorth; 51 50 import org.openstreetmap.josm.data.gpx.GpxData; 51 import org.openstreetmap.josm.data.gpx.GpxRoute; 52 52 import org.openstreetmap.josm.data.gpx.GpxTrack; 53 import org.openstreetmap.josm.data.gpx.GpxRoute;54 53 import org.openstreetmap.josm.data.gpx.WayPoint; 55 54 import org.openstreetmap.josm.data.osm.DataSet; … … 57 56 import org.openstreetmap.josm.data.osm.Way; 58 57 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 59 import org.openstreetmap.josm.io.MultiPartFormOutputStream;60 import org.openstreetmap.josm.io.GpxWriter;61 58 import org.openstreetmap.josm.gui.MapView; 62 59 import org.openstreetmap.josm.gui.dialogs.LayerListDialog; 63 60 import org.openstreetmap.josm.gui.dialogs.LayerListPopup; 64 61 import org.openstreetmap.josm.gui.layer.markerlayer.AudioMarker; 65 import org.openstreetmap.josm.gui.layer.markerlayer.Marker;66 62 import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer; 63 import org.openstreetmap.josm.io.GpxWriter; 64 import org.openstreetmap.josm.io.MultiPartFormOutputStream; 67 65 import org.openstreetmap.josm.tools.ColorHelper; 68 66 import org.openstreetmap.josm.tools.DontShowAgainInfo; -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/AudioMarker.java
r572 r582 2 2 package org.openstreetmap.josm.gui.layer.markerlayer; 3 3 4 import static org.openstreetmap.josm.tools.I18n.tr;5 6 import java.awt.Graphics;7 import java.awt.Point;8 import java.awt.Rectangle;9 4 import java.awt.event.ActionEvent; 10 import java.awt.event.ActionListener;11 import java.io.IOException;12 5 import java.net.URL; 13 14 import javax.swing.Icon;15 import javax.swing.JOptionPane;16 import javax.swing.Timer;17 6 18 7 import org.openstreetmap.josm.Main; 19 8 import org.openstreetmap.josm.data.coor.LatLon; 20 9 import org.openstreetmap.josm.tools.AudioPlayer; 21 import org.openstreetmap.josm.data.gpx.WayPoint;22 import org.openstreetmap.josm.data.coor.EastNorth;23 import org.openstreetmap.josm.gui.MapView;24 25 import org.openstreetmap.josm.tools.ImageProvider;26 10 27 11 /** -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/ButtonMarker.java
r562 r582 14 14 import org.openstreetmap.josm.data.coor.LatLon; 15 15 import org.openstreetmap.josm.gui.MapView; 16 import org.openstreetmap.josm.gui.layer.Layer;17 16 18 17 /** -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/ImageMarker.java
r553 r582 22 22 import org.openstreetmap.josm.data.coor.LatLon; 23 23 import org.openstreetmap.josm.tools.ImageProvider; 24 import org.openstreetmap.josm.gui.layer.Layer;25 24 26 25 /** -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java
r576 r582 10 10 import java.net.URL; 11 11 import java.util.Collection; 12 import java.util.HashMap;13 12 import java.util.LinkedList; 14 import java.util.Map;15 13 16 14 import javax.swing.Icon; … … 22 20 import org.openstreetmap.josm.data.gpx.WayPoint; 23 21 import org.openstreetmap.josm.gui.MapView; 24 import org.openstreetmap.josm.gui.layer.Layer;25 22 import org.openstreetmap.josm.tools.ImageProvider; 26 23 … … 80 77 static { 81 78 Marker.markerProducers.add(new MarkerProducers() { 82 public Marker createMarker(WayPoint wpt, File relativePath) {83 return createMarker(wpt, relativePath, null, 0.0, 0.0);84 }85 86 79 public Marker createMarker(WayPoint wpt, File relativePath, MarkerLayer parentLayer, double time, double offset) { 87 80 String uri = null; … … 93 86 break; 94 87 } 95 } catch (Exception ex) {} ;88 } catch (Exception ex) {} 96 89 97 90 // Try a relative file:// url, if the link is not in an URL-compatible form -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/MarkerLayer.java
r572 r582 9 9 import java.awt.Graphics; 10 10 import java.awt.Point; 11 import java.awt.Rectangle;12 11 import java.awt.event.ActionEvent; 13 12 import java.awt.event.ActionListener; … … 15 14 import java.awt.event.MouseEvent; 16 15 import java.io.File; 16 import java.net.URL; 17 17 import java.util.ArrayList; 18 18 import java.util.Collection; 19 import java.util.Iterator;20 import java.net.URL;21 19 22 20 import javax.swing.Icon; 23 21 import javax.swing.JColorChooser; 24 import javax.swing.JFileChooser;25 22 import javax.swing.JMenuItem; 26 23 import javax.swing.JOptionPane; 27 24 import javax.swing.JSeparator; 28 25 import javax.swing.SwingUtilities; 29 import javax.swing.Timer;30 import javax.swing.filechooser.FileFilter;31 26 32 27 import org.openstreetmap.josm.Main; 33 28 import org.openstreetmap.josm.actions.RenameLayerAction; 34 import org.openstreetmap.josm.command.Command;35 29 import org.openstreetmap.josm.data.coor.EastNorth; 36 30 import org.openstreetmap.josm.data.gpx.GpxData; 37 import org.openstreetmap.josm.data.gpx.GpxTrack;38 31 import org.openstreetmap.josm.data.gpx.WayPoint; 39 32 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; … … 41 34 import org.openstreetmap.josm.gui.dialogs.LayerListDialog; 42 35 import org.openstreetmap.josm.gui.dialogs.LayerListPopup; 36 import org.openstreetmap.josm.gui.layer.GpxLayer; 43 37 import org.openstreetmap.josm.gui.layer.Layer; 44 import org.openstreetmap.josm.gui.layer.GpxLayer; 45 import org.openstreetmap.josm.gui.layer.markerlayer.AudioMarker; 46 import org.openstreetmap.josm.gui.layer.markerlayer.PlayHeadMarker; 38 import org.openstreetmap.josm.tools.AudioPlayer; 47 39 import org.openstreetmap.josm.tools.ColorHelper; 48 40 import org.openstreetmap.josm.tools.ImageProvider; 49 import org.openstreetmap.josm.tools.AudioPlayer;50 41 51 42 /** … … 369 360 } 370 361 Marker previousMarker = null; 371 Marker targetMarker = null;372 362 boolean nextTime = false; 373 363 if (Main.map == null || Main.map.mapView == null) -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/MarkerProducers.java
r553 r582 3 3 4 4 import java.io.File; 5 import java.util.Map;6 5 7 import org.openstreetmap.josm.data.coor.LatLon;8 6 import org.openstreetmap.josm.data.gpx.WayPoint; 9 import org.openstreetmap.josm.gui.layer.Layer;10 7 11 8 /** -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/PlayHeadMarker.java
r577 r582 3 3 import static org.openstreetmap.josm.tools.I18n.tr; 4 4 5 import java.awt.Cursor;6 5 import java.awt.Graphics; 7 import java.awt.Insets;8 6 import java.awt.Point; 9 7 import java.awt.Rectangle; … … 11 9 import java.awt.event.ActionListener; 12 10 import java.awt.event.MouseAdapter; 13 import java.awt.event.MouseListener;14 import java.awt.event.MouseMotionAdapter;15 11 import java.awt.event.MouseEvent; 16 import java.awt.event.MouseMotionListener;17 import java.io.IOException;18 import java.net.URL;19 12 import java.util.Collection; 20 13 import java.util.Iterator; 21 14 22 import javax.swing.BorderFactory;23 import javax.swing.Icon;24 15 import javax.swing.JOptionPane; 25 16 import javax.swing.Timer; 26 import javax.swing.border.BevelBorder;27 import javax.swing.border.Border;28 17 29 18 import org.openstreetmap.josm.Main; 30 19 import org.openstreetmap.josm.actions.mapmode.MapMode; 31 20 import org.openstreetmap.josm.actions.mapmode.PlayHeadDragMode; 21 import org.openstreetmap.josm.data.coor.EastNorth; 32 22 import org.openstreetmap.josm.data.coor.LatLon; 33 import org.openstreetmap.josm.tools.AudioPlayer;34 23 import org.openstreetmap.josm.data.gpx.GpxTrack; 35 24 import org.openstreetmap.josm.data.gpx.WayPoint; 36 import org.openstreetmap.josm.data.coor.EastNorth;37 25 import org.openstreetmap.josm.gui.MapView; 38 26 import org.openstreetmap.josm.gui.layer.GpxLayer; 39 40 import org.openstreetmap.josm.tools.ImageProvider; 27 import org.openstreetmap.josm.tools.AudioPlayer; 41 28 42 29 /** … … 144 131 * @param pixelTolerance : only accept the point if within this number of pixels of en 145 132 * @return the nearest trackpoint or null if nothing nearby 146 */ 133 * 134 * XXX seems unused, F.R. 2008-03-15 147 135 private WayPoint getClosestTrackPoint(Point pNear, double pixelTolerance) { 148 136 WayPoint cw = null; 149 137 AudioMarker recentlyPlayedMarker = AudioMarker.recentlyPlayedMarker(); 150 138 if (recentlyPlayedMarker != null) { 151 / * Find the track point closest to letting go of the play head */139 // Find the track point closest to letting go of the play head 152 140 double minDistance = pixelTolerance; 153 141 GpxLayer trackLayer = recentlyPlayedMarker.parentLayer.fromLayer; 154 if (trackLayer.data.tracks != null) { 155 for (GpxTrack track : trackLayer.data.tracks) { 156 if (track.trackSegs != null) { 157 for (Collection<WayPoint> trackseg : track.trackSegs) { 158 for (Iterator<WayPoint> it = trackseg.iterator(); it.hasNext();) { 159 WayPoint w = it.next(); 160 Point p = Main.map.mapView.getPoint(w.eastNorth); 161 double distance = p.distance(pNear); 162 if (distance <= minDistance) { 163 cw = w; 164 minDistance = distance; 165 } 166 } 142 if (trackLayer.data.tracks == null) 143 return null; 144 145 for (GpxTrack track : trackLayer.data.tracks) { 146 if (track.trackSegs == null) 147 continue; 148 149 for (Collection<WayPoint> trackseg : track.trackSegs) { 150 for (WayPoint w : trackseg) { 151 Point p = Main.map.mapView.getPoint(w.eastNorth); 152 double distance = p.distance(pNear); 153 if (distance <= minDistance) { 154 cw = w; 155 minDistance = distance; 167 156 } 168 157 } … … 172 161 return cw; 173 162 } 163 */ 174 164 175 165 /** -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/WebMarker.java
r553 r582 12 12 import org.openstreetmap.josm.data.coor.LatLon; 13 13 import org.openstreetmap.josm.tools.OpenBrowser; 14 import org.openstreetmap.josm.gui.layer.Layer;15 14 16 15 /** -
trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyleHandler.java
r486 r582 1 1 package org.openstreetmap.josm.gui.mappaint; 2 2 3 import java.io.File;4 3 import java.awt.Color; 5 4 import java.awt.Toolkit; 5 import java.io.File; 6 6 import java.net.URL; 7 7 … … 9 9 10 10 import org.openstreetmap.josm.tools.ColorHelper; 11 import org.openstreetmap.josm.plugins.Plugin;12 11 import org.xml.sax.Attributes; 13 12 import org.xml.sax.helpers.DefaultHandler; -
trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java
r529 r582 3 3 import java.io.File; 4 4 import java.io.FileReader; 5 6 5 import java.net.URL; 7 6 import java.util.HashMap; … … 10 9 import org.openstreetmap.josm.Main; 11 10 import org.openstreetmap.josm.data.osm.OsmPrimitive; 12 import org.openstreetmap.josm.gui.MapFrame;13 import org.openstreetmap.josm.gui.layer.Layer;14 import org.openstreetmap.josm.gui.layer.OsmDataLayer;15 import org.openstreetmap.josm.plugins.Plugin;16 11 import org.xml.sax.InputSource; 17 12 import org.xml.sax.XMLReader; -
trunk/src/org/openstreetmap/josm/gui/preferences/PluginPreference.java
r509 r582 23 23 import java.util.TreeMap; 24 24 import java.util.Map.Entry; 25 import java.net.URL;26 25 27 26 import javax.swing.AbstractAction; -
trunk/src/org/openstreetmap/josm/gui/preferences/TaggingPresetPreference.java
r419 r582 24 24 import javax.swing.JScrollPane; 25 25 import javax.swing.JSeparator; 26 import javax.swing.border.BevelBorder;27 26 28 27 import org.openstreetmap.josm.Main; -
trunk/src/org/openstreetmap/josm/io/GpxReader.java
r572 r582 10 10 import java.io.InputStream; 11 11 import java.io.InputStreamReader; 12 import java.util.ArrayList; 12 13 import java.util.Collection; 13 import java.util.HashMap;14 14 import java.util.LinkedList; 15 import java.util. ArrayList;15 import java.util.Map; 16 16 import java.util.Stack; 17 import java.util.Map;18 17 19 18 import javax.xml.parsers.ParserConfigurationException; 20 19 import javax.xml.parsers.SAXParserFactory; 21 20 22 import org.openstreetmap.josm.Main;23 21 import org.openstreetmap.josm.data.coor.LatLon; 24 22 import org.openstreetmap.josm.data.gpx.GpxData; 25 23 import org.openstreetmap.josm.data.gpx.GpxLink; 24 import org.openstreetmap.josm.data.gpx.GpxRoute; 26 25 import org.openstreetmap.josm.data.gpx.GpxTrack; 27 26 import org.openstreetmap.josm.data.gpx.WayPoint; 28 import org.openstreetmap.josm.data.gpx.GpxRoute;29 import org.openstreetmap.josm.gui.layer.markerlayer.MarkerProducers;30 27 import org.xml.sax.Attributes; 31 28 import org.xml.sax.InputSource; -
trunk/src/org/openstreetmap/josm/io/MultiPartFormOutputStream.java
r402 r582 345 345 * Flushes the stream. Actually, this method does nothing, as the only 346 346 * write methods are highly specialized and automatically flush. 347 * 348 * @throws java.io.IOException on input/output errors 349 */ 350 public void flush() throws java.io.IOException { 347 */ 348 public void flush() { 351 349 // out.flush(); 352 350 } -
trunk/src/org/openstreetmap/josm/io/OsmReader.java
r521 r582 7 7 import java.io.InputStream; 8 8 import java.io.InputStreamReader; 9 import java.text.ParseException;10 9 import java.util.ArrayList; 11 10 import java.util.Arrays; 12 11 import java.util.Collection; 13 import java.util.Date;14 12 import java.util.HashMap; 15 13 import java.util.HashSet; … … 26 24 import org.openstreetmap.josm.data.osm.DataSet; 27 25 import org.openstreetmap.josm.data.osm.DataSource; 26 import org.openstreetmap.josm.data.osm.Node; 27 import org.openstreetmap.josm.data.osm.OsmPrimitive; 28 28 import org.openstreetmap.josm.data.osm.Relation; 29 29 import org.openstreetmap.josm.data.osm.RelationMember; 30 import org.openstreetmap.josm.data.osm.Node;31 import org.openstreetmap.josm.data.osm.OsmPrimitive;32 30 import org.openstreetmap.josm.data.osm.User; 33 31 import org.openstreetmap.josm.data.osm.Way; … … 35 33 import org.openstreetmap.josm.data.osm.visitor.Visitor; 36 34 import org.openstreetmap.josm.gui.PleaseWaitDialog; 37 import org.openstreetmap.josm.tools.DateParser;38 35 import org.xml.sax.Attributes; 39 36 import org.xml.sax.InputSource; -
trunk/src/org/openstreetmap/josm/tools/AudioPlayer.java
r577 r582 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java. lang.Thread;6 import java.io.IOException; 7 7 import java.net.URL; 8 8 … … 12 12 import javax.sound.sampled.DataLine; 13 13 import javax.sound.sampled.SourceDataLine; 14 import java.io.IOException;15 14 import javax.swing.JOptionPane; 16 15 17 16 import org.openstreetmap.josm.Main; 18 import org.openstreetmap.josm.data.Preferences;19 17 20 18 /** … … 321 319 break; 322 320 case PAUSE: 323 stateChange = state.PAUSED;321 stateChange = State.PAUSED; 324 322 break; 325 323 }
Note:
See TracChangeset
for help on using the changeset viewer.