Changeset 9372 in josm
- Timestamp:
- 2016-01-09T23:32:49+01:00 (9 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/coor/Coordinate.java
r9371 r9372 3 3 4 4 import java.io.Serializable; 5 import java.util.Objects;6 5 7 6 import org.openstreetmap.josm.data.osm.BBox; -
trunk/src/org/openstreetmap/josm/data/osm/BBox.java
r9371 r9372 4 4 import java.awt.geom.Rectangle2D; 5 5 import java.util.Arrays; 6 import java.util.Objects;7 6 8 7 import org.openstreetmap.josm.data.coor.LatLon; -
trunk/src/org/openstreetmap/josm/data/osm/MultipolygonBuilder.java
r9351 r9372 12 12 import java.util.List; 13 13 import java.util.Set; 14 import java.util.concurrent.Callable;15 import java.util.concurrent.ExecutionException;16 14 import java.util.concurrent.ForkJoinPool; 17 15 import java.util.concurrent.ForkJoinTask; 18 import java.util.concurrent.Future;19 16 import java.util.concurrent.RecursiveTask; 20 17 -
trunk/src/org/openstreetmap/josm/gui/dialogs/MenuItemSearchDialog.java
r9347 r9372 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.dialogs; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 6 import java.awt.Component; 7 import java.awt.Dimension; 8 import java.awt.event.ActionEvent; 9 import java.awt.event.ActionListener; 10 import java.awt.event.KeyEvent; 11 12 import javax.swing.DefaultListCellRenderer; 13 import javax.swing.DefaultListSelectionModel; 14 import javax.swing.JLabel; 15 import javax.swing.JList; 16 import javax.swing.JMenuItem; 17 import javax.swing.ListCellRenderer; 3 18 4 19 import org.openstreetmap.josm.Main; … … 9 24 import org.openstreetmap.josm.tools.Shortcut; 10 25 11 import javax.swing.*; 12 import java.awt.*; 13 import java.awt.event.ActionEvent; 14 import java.awt.event.ActionListener; 15 import java.awt.event.KeyEvent; 16 17 import static org.openstreetmap.josm.tools.I18n.tr; 18 19 public class MenuItemSearchDialog extends ExtendedDialog { 26 public final class MenuItemSearchDialog extends ExtendedDialog { 20 27 21 28 private final Selector selector; … … 64 71 private final MainMenu menu; 65 72 66 publicSelector(MainMenu menu) {73 Selector(MainMenu menu) { 67 74 super(); 68 75 this.menu = menu; … … 95 102 96 103 @Override 97 public Component getListCellRendererComponent(JList<? extends JMenuItem> list, JMenuItem value, int index, boolean isSelected, boolean cellHasFocus) { 104 public Component getListCellRendererComponent(JList<? extends JMenuItem> list, JMenuItem value, int index, 105 boolean isSelected, boolean cellHasFocus) { 98 106 final JLabel label = (JLabel) def.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); 99 107 label.setText(value.getText()); -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTransferHandler.java
r9369 r9372 100 100 } 101 101 102 protected <T> void importData(MemberTable destination, int insertRow, Collection<T> memberData, Function<T, RelationMember> toMemberFunction) { 102 protected <T> void importData(MemberTable destination, int insertRow, 103 Collection<T> memberData, Function<T, RelationMember> toMemberFunction) { 103 104 final Collection<RelationMember> membersToAdd = new ArrayList<>(memberData.size()); 104 105 for (T i : memberData) { -
trunk/src/org/openstreetmap/josm/gui/widgets/ImageLabel.java
r9346 r9372 6 6 import java.awt.GridBagLayout; 7 7 8 import javax.swing.Icon;9 8 import javax.swing.JLabel; 10 9 import javax.swing.JPanel; -
trunk/src/org/openstreetmap/josm/gui/widgets/SearchTextResultListPanel.java
r9347 r9372 2 2 package org.openstreetmap.josm.gui.widgets; 3 3 4 import javax.swing.*; 5 import javax.swing.event.DocumentEvent; 6 import javax.swing.event.DocumentListener; 7 import javax.swing.event.ListSelectionListener; 8 import java.awt.*; 4 import java.awt.BorderLayout; 9 5 import java.awt.event.ActionListener; 10 6 import java.awt.event.KeyAdapter; … … 12 8 import java.awt.event.MouseAdapter; 13 9 import java.awt.event.MouseEvent; 14 import java.util. *;10 import java.util.ArrayList; 15 11 import java.util.List; 12 13 import javax.swing.AbstractListModel; 14 import javax.swing.JList; 15 import javax.swing.JPanel; 16 import javax.swing.JScrollPane; 17 import javax.swing.event.DocumentEvent; 18 import javax.swing.event.DocumentListener; 19 import javax.swing.event.ListSelectionListener; 16 20 17 21 public abstract class SearchTextResultListPanel<T> extends JPanel { -
trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionTest.java
r9370 r9372 87 87 88 88 private LatLon random(Bounds b) { 89 for (int i =0; i<20; i++) {89 for (int i = 0; i < 20; i++) { 90 90 double lat = rand.nextDouble() * (b.getMax().lat() - b.getMin().lat()) + b.getMin().lat(); 91 91 double lon = rand.nextDouble() * (b.getMax().lon() - b.getMin().lon()) + b.getMin().lon(); … … 134 134 } 135 135 Bounds b = p.getWorldBoundsLatLon(); 136 for (int i =0; i<NUM_IT; i++) {136 for (int i = 0; i < NUM_IT; i++) { 137 137 LatLon ll1 = random(b); 138 138 EastNorth en = p.latlon2eastNorth(ll1);
Note:
See TracChangeset
for help on using the changeset viewer.