Changeset 8285 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2015-04-28T00:49:49+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AlignInCircleAction.java
r7509 r8285 58 58 59 59 public static class PolarCoor { 60 double radius;61 double angle;62 EastNorth origin = new EastNorth(0, 0);63 double azimuth = 0;60 private double radius; 61 private double angle; 62 private EastNorth origin = new EastNorth(0, 0); 63 private double azimuth = 0; 64 64 65 65 PolarCoor(double radius, double angle) { -
trunk/src/org/openstreetmap/josm/actions/CreateCircleAction.java
r7269 r8285 98 98 */ 99 99 private static class PolarNode { 100 double a;101 Node node;100 private double a; 101 private Node node; 102 102 103 103 PolarNode(EastNorth center, Node n) { -
trunk/src/org/openstreetmap/josm/actions/PurgeAction.java
r7433 r8285 70 70 71 71 protected OsmDataLayer layer; 72 JCheckBox cbClearUndoRedo;72 protected JCheckBox cbClearUndoRedo; 73 73 74 74 protected Set<OsmPrimitive> toPurge; -
trunk/src/org/openstreetmap/josm/actions/SelectNonBranchingWaySequences.java
r7937 r8285 21 21 * outer endpoints of selected ways 22 22 */ 23 Set<Node> outerNodes;23 private Set<Node> outerNodes; 24 24 /** 25 25 * endpoints of selected ways 26 26 */ 27 Set<Node> nodes;27 private Set<Node> nodes; 28 28 29 29 /** -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmCompressedTask.java
r7937 r8285 2 2 package org.openstreetmap.josm.actions.downloadtasks; 3 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 4 6 import java.util.concurrent.Future; 5 6 import static org.openstreetmap.josm.tools.I18n.tr;7 7 8 8 import org.openstreetmap.josm.Main; … … 19 19 public class DownloadOsmCompressedTask extends DownloadOsmTask { 20 20 21 static final String PATTERN_COMPRESS = "https?://.*/.*\\.osm.(gz|bz2?|zip)";21 private static final String PATTERN_COMPRESS = "https?://.*/.*\\.osm.(gz|bz2?|zip)"; 22 22 23 23 @Override … … 30 30 return tr("Download Compressed OSM"); 31 31 } 32 32 33 33 @Override 34 34 public Future<?> download(boolean newLayer, Bounds downloadArea, … … 36 36 return null; 37 37 } 38 38 39 39 /** 40 40 * Loads a given URL -
trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java
r7668 r8285 82 82 83 83 private static class DeleteParameters { 84 DeleteMode mode;85 Node nearestNode;86 WaySegment nearestSegment;84 private DeleteMode mode; 85 private Node nearestNode; 86 private WaySegment nearestSegment; 87 87 } 88 88 -
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r8064 r8285 1286 1286 1287 1287 private class SnapHelper { 1288 boolean snapOn; // snapping is turned on1288 private boolean snapOn; // snapping is turned on 1289 1289 1290 1290 private boolean active; // snapping is active for current mouse position … … 1298 1298 private boolean snapToProjections; 1299 1299 1300 EastNorth dir2;1301 EastNorth projected;1302 String labelText;1303 double lastAngle;1304 1305 double customBaseHeading=-1; // angle of base line, if not last segment)1300 private EastNorth dir2; 1301 private EastNorth projected; 1302 private String labelText; 1303 private double lastAngle; 1304 1305 private double customBaseHeading=-1; // angle of base line, if not last segment) 1306 1306 private EastNorth segmentPoint1; // remembered first point of base segment 1307 1307 private EastNorth segmentPoint2; // remembered second point of base segment 1308 1308 private EastNorth projectionSource; // point that we are projecting to the line 1309 1309 1310 double[] snapAngles;1311 double snapAngleTolerance;1312 1313 double pe,pn; // (pe,pn) - direction of snapping line1314 double e0,n0; // (e0,n0) - origin of snapping line1315 1316 final String fixFmt="%d "+tr("FIX");1317 Color snapHelperColor;1310 private double[] snapAngles; 1311 private double snapAngleTolerance; 1312 1313 private double pe,pn; // (pe,pn) - direction of snapping line 1314 private double e0,n0; // (e0,n0) - origin of snapping line 1315 1316 private final String fixFmt="%d "+tr("FIX"); 1317 private Color snapHelperColor; 1318 1318 private Color highlightColor; 1319 1319 … … 1322 1322 private Stroke highlightStroke; 1323 1323 1324 JCheckBoxMenuItem checkBox;1324 private JCheckBoxMenuItem checkBox; 1325 1325 public final Color ORANGE_TRANSPARENT = new Color(Color.ORANGE.getRed(),Color.ORANGE.getGreen(),Color.ORANGE.getBlue(),128); 1326 1326 … … 1672 1672 } 1673 1673 1674 MouseListener anglePopupListener = new PopupMenuLauncher( new JPopupMenu() { 1675 JCheckBoxMenuItem repeatedCb = new JCheckBoxMenuItem(new AbstractAction(tr("Toggle snapping by {0}", getShortcut().getKeyText())){ 1674 private MouseListener anglePopupListener = new PopupMenuLauncher(new JPopupMenu() { 1675 private JCheckBoxMenuItem repeatedCb = new JCheckBoxMenuItem( 1676 new AbstractAction(tr("Toggle snapping by {0}", getShortcut().getKeyText())) { 1676 1677 @Override public void actionPerformed(ActionEvent e) { 1677 1678 boolean sel=((JCheckBoxMenuItem) e.getSource()).getState(); … … 1680 1681 } 1681 1682 }); 1682 JCheckBoxMenuItem helperCb = new JCheckBoxMenuItem(new AbstractAction(tr("Show helper geometry")){ 1683 private JCheckBoxMenuItem helperCb = new JCheckBoxMenuItem( 1684 new AbstractAction(tr("Show helper geometry")) { 1683 1685 @Override public void actionPerformed(ActionEvent e) { 1684 1686 boolean sel=((JCheckBoxMenuItem) e.getSource()).getState(); … … 1690 1692 } 1691 1693 }); 1692 JCheckBoxMenuItem projectionCb = new JCheckBoxMenuItem(new AbstractAction(tr("Snap to node projections")){ 1694 private JCheckBoxMenuItem projectionCb = new JCheckBoxMenuItem( 1695 new AbstractAction(tr("Snap to node projections")) { 1693 1696 @Override public void actionPerformed(ActionEvent e) { 1694 1697 boolean sel=((JCheckBoxMenuItem) e.getSource()).getState(); -
trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java
r7217 r8285 21 21 import org.openstreetmap.josm.Main; 22 22 import org.openstreetmap.josm.data.Bounds; 23 import org.openstreetmap.josm.data.SystemOfMeasurement;24 23 import org.openstreetmap.josm.data.Preferences.PreferenceChangeEvent; 25 24 import org.openstreetmap.josm.data.Preferences.PreferenceChangedListener; 25 import org.openstreetmap.josm.data.SystemOfMeasurement; 26 26 import org.openstreetmap.josm.data.coor.EastNorth; 27 27 import org.openstreetmap.josm.data.osm.Node; … … 124 124 private EastNorth helperLineEnd; 125 125 126 Stroke helpLineStroke; 127 Stroke refLineStroke; 128 Color mainColor; 129 126 private Stroke helpLineStroke; 127 private Stroke refLineStroke; 128 private Color mainColor; 129 130 /** 131 * Constructs a new {@code ParallelWayAction}. 132 * @param mapFrame Map frame 133 */ 130 134 public ParallelWayAction(MapFrame mapFrame) { 131 135 super(tr("Parallel"), "parallel", tr("Make parallel copies of ways"), … … 303 307 304 308 // Since the created way is left selected, we need to unselect again here 305 if (pWays != null && pWays. ways!= null) {306 getCurrentDataSet().clearSelection(pWays. ways);309 if (pWays != null && pWays.getWays() != null) { 310 getCurrentDataSet().clearSelection(pWays.getWays()); 307 311 pWays = null; 308 312 } … … 545 549 pWays = new ParallelWays(sourceWays, copyTags, referenceWayIndex); 546 550 pWays.commit(); 547 getCurrentDataSet().setSelected(pWays. ways);551 getCurrentDataSet().setSelected(pWays.getWays()); 548 552 return true; 549 553 } catch (IllegalArgumentException e) { -
trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWays.java
r7025 r8285 26 26 */ 27 27 public class ParallelWays { 28 final List<Way> ways;28 private final List<Way> ways; 29 29 private final List<Node> sortedNodes; 30 30 … … 195 195 } 196 196 } 197 198 public final List<Way> getWays() { 199 return ways; 200 } 197 201 } -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r8061 r8285 137 137 * point where user pressed the mouse to start movement 138 138 */ 139 EastNorth startEN;139 private EastNorth startEN; 140 140 /** 141 141 * The last known position of the mouse. … … 215 215 removeHighlighting(); 216 216 } 217 218 int previousModifiers;219 217 220 218 @Override … … 949 947 } 950 948 951 CycleManager cycleManager = new CycleManager();952 VirtualManager virtualManager = new VirtualManager();949 private CycleManager cycleManager = new CycleManager(); 950 private VirtualManager virtualManager = new VirtualManager(); 953 951 954 952 private class CycleManager { -
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r8250 r8285 9 9 import java.awt.Dimension; 10 10 import java.awt.FlowLayout; 11 import java.awt.Font;12 11 import java.awt.GridBagLayout; 13 12 import java.awt.event.ActionEvent; … … 154 153 private static class DescriptionTextBuilder { 155 154 156 StringBuilder s = new StringBuilder(4096);155 private final StringBuilder s = new StringBuilder(4096); 157 156 158 157 public StringBuilder append(String string) { -
trunk/src/org/openstreetmap/josm/actions/upload/FixDataHook.java
r8179 r8285 107 107 public static class FixDataKey implements FixData { 108 108 /** key of wrong data */ 109 String oldKey;109 private String oldKey; 110 110 /** key of correct data */ 111 String newKey;111 private String newKey; 112 112 113 113 /** … … 141 141 public static class FixDataTag implements FixData { 142 142 /** key of wrong data */ 143 String oldKey;143 private String oldKey; 144 144 /** value of wrong data */ 145 String oldValue;145 private String oldValue; 146 146 /** key of correct data */ 147 String newKey;147 private String newKey; 148 148 /** value of correct data */ 149 String newValue;149 private String newValue; 150 150 151 151 /** -
trunk/src/org/openstreetmap/josm/actions/upload/UploadNotesTask.java
r7937 r8285 42 42 43 43 private boolean isCanceled = false; 44 Map<Note, Note> updatedNotes = new HashMap<>();45 Map<Note, Exception> failedNotes = new HashMap<>();44 private Map<Note, Note> updatedNotes = new HashMap<>(); 45 private Map<Note, Exception> failedNotes = new HashMap<>(); 46 46 47 47 /**
Note:
See TracChangeset
for help on using the changeset viewer.