Changeset 8308 in josm
- Timestamp:
- 2015-05-02T00:55:19+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 223 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AddImageryLayerAction.java
r7693 r8308 11 11 import java.net.MalformedURLException; 12 12 13 import javax.swing.Action;14 13 import javax.swing.JComboBox; 15 14 import javax.swing.JOptionPane; … … 36 35 */ 37 36 public class AddImageryLayerAction extends JosmAction implements AdaptableAction { 38 private final ImageryInfo info;37 private final transient ImageryInfo info; 39 38 40 39 /** -
trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java
r8200 r8308 55 55 private final String mode; 56 56 57 protected ZoomChangeAdapter zoomChangeAdapter;58 protected MapFrameAdapter mapFrameAdapter;57 protected transient ZoomChangeAdapter zoomChangeAdapter; 58 protected transient MapFrameAdapter mapFrameAdapter; 59 59 /** Time of last zoom to bounds action */ 60 60 protected long lastZoomTime = -1; -
trunk/src/org/openstreetmap/josm/actions/ChangesetManagerToggleAction.java
r6327 r8308 19 19 */ 20 20 public class ChangesetManagerToggleAction extends ToggleAction { 21 private WindowListener changesetCacheManagerClosedHandler;21 private transient WindowListener changesetCacheManagerClosedHandler; 22 22 23 23 /** -
trunk/src/org/openstreetmap/josm/actions/CreateCircleAction.java
r8303 r8308 7 7 import java.awt.event.ActionEvent; 8 8 import java.awt.event.KeyEvent; 9 import java.io.Serializable; 9 10 import java.util.ArrayList; 10 11 import java.util.Arrays; … … 113 114 * Comparator used to order PolarNode relative to their angle. 114 115 */ 115 private static class PolarNodeComparator implements Comparator<PolarNode> {116 116 private static class PolarNodeComparator implements Comparator<PolarNode>, Serializable { 117 private static final long serialVersionUID = 1L; 117 118 @Override 118 119 public int compare(PolarNode pc1, PolarNode pc2) { -
trunk/src/org/openstreetmap/josm/actions/FullscreenToggleAction.java
r7335 r8308 28 28 */ 29 29 public class FullscreenToggleAction extends ToggleAction { 30 private GraphicsDevice gd;30 private transient GraphicsDevice gd; 31 31 private Rectangle prevBounds; 32 32 -
trunk/src/org/openstreetmap/josm/actions/ImageryAdjustAction.java
r8152 r8308 46 46 private double oldDx, oldDy; 47 47 private EastNorth prevEastNorth; 48 private ImageryLayer layer;48 private transient ImageryLayer layer; 49 49 private MapMode oldMapMode; 50 50 -
trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
r7989 r8308 55 55 private final LinkedList<Command> cmds = new LinkedList<>(); 56 56 private int cmdsCount = 0; 57 private final List<Relation> addedRelations = new LinkedList<>();57 private final transient List<Relation> addedRelations = new LinkedList<>(); 58 58 59 59 /** -
trunk/src/org/openstreetmap/josm/actions/JoinNodeWayAction.java
r7859 r8308 7 7 import java.awt.event.ActionEvent; 8 8 import java.awt.event.KeyEvent; 9 import java.io.Serializable; 9 10 import java.util.Collection; 10 11 import java.util.Collections; … … 171 172 * Sorts collinear nodes by their distance to a common reference node. 172 173 */ 173 private static class NodeDistanceToRefNodeComparator implements Comparator<Node> { 174 private static class NodeDistanceToRefNodeComparator implements Comparator<Node>, Serializable { 175 176 private static final long serialVersionUID = 1L; 177 174 178 private final EastNorth refPoint; 175 179 private EastNorth refPoint2; -
trunk/src/org/openstreetmap/josm/actions/JosmAction.java
r7859 r8308 40 40 public abstract class JosmAction extends AbstractAction implements Destroyable { 41 41 42 protected Shortcut sc;43 private LayerChangeAdapter layerChangeAdapter;44 private SelectionChangeAdapter selectionChangeAdapter;42 protected transient Shortcut sc; 43 private transient LayerChangeAdapter layerChangeAdapter; 44 private transient SelectionChangeAdapter selectionChangeAdapter; 45 45 46 46 /** -
trunk/src/org/openstreetmap/josm/actions/MapRectifierWMSmenuAction.java
r8068 r8308 70 70 * List of available rectifier services. 71 71 */ 72 private final List<RectifierService> services = new ArrayList<>();72 private final transient List<RectifierService> services = new ArrayList<>(); 73 73 74 74 /** -
trunk/src/org/openstreetmap/josm/actions/OpenFileAction.java
r8202 r8308 118 118 } 119 119 }); 120 if (matchingFiles .length == 1) {120 if (matchingFiles != null && matchingFiles.length == 1) { 121 121 // use the unique match as filename 122 122 this.files.add(matchingFiles[0]); -
trunk/src/org/openstreetmap/josm/actions/OpenLocationAction.java
r8240 r8308 52 52 public class OpenLocationAction extends JosmAction { 53 53 54 protected final List<Class<? extends DownloadTask>> downloadTasks;54 protected final transient List<Class<? extends DownloadTask>> downloadTasks; 55 55 56 56 /** -
trunk/src/org/openstreetmap/josm/actions/PurgeAction.java
r8285 r8308 69 69 } 70 70 71 protected OsmDataLayer layer;71 protected transient OsmDataLayer layer; 72 72 protected JCheckBox cbClearUndoRedo; 73 73 74 protected Set<OsmPrimitive> toPurge;74 protected transient Set<OsmPrimitive> toPurge; 75 75 /** 76 76 * finally, contains all objects that are purged 77 77 */ 78 protected Set<OsmPrimitive> toPurgeChecked;78 protected transient Set<OsmPrimitive> toPurgeChecked; 79 79 /** 80 80 * Subset of toPurgeChecked. Marks primitives that remain in the 81 81 * dataset, but incomplete. 82 82 */ 83 protected Set<OsmPrimitive> makeIncomplete;83 protected transient Set<OsmPrimitive> makeIncomplete; 84 84 /** 85 85 * Subset of toPurgeChecked. Those that have not been in the selection. 86 86 */ 87 protected List<OsmPrimitive> toPurgeAdditionally;87 protected transient List<OsmPrimitive> toPurgeAdditionally; 88 88 89 89 @Override -
trunk/src/org/openstreetmap/josm/actions/RenameLayerAction.java
r7026 r8308 2 2 package org.openstreetmap.josm.actions; 3 3 4 import static org.openstreetmap.josm.gui.help.HelpUtil.ht; 4 5 import static org.openstreetmap.josm.tools.I18n.tr; 5 import static org.openstreetmap.josm.gui.help.HelpUtil.ht;6 6 7 7 import java.awt.Dialog.ModalityType; … … 17 17 import org.openstreetmap.josm.Main; 18 18 import org.openstreetmap.josm.gui.layer.Layer; 19 import org.openstreetmap.josm.gui.widgets.JosmTextField; 19 20 import org.openstreetmap.josm.tools.ImageProvider; 20 import org.openstreetmap.josm.gui.widgets.JosmTextField;21 21 22 22 /** … … 29 29 30 30 private File file; 31 private Layer layer;31 private transient Layer layer; 32 32 33 33 /** -
trunk/src/org/openstreetmap/josm/actions/SessionSaveAsAction.java
r7578 r8308 49 49 public class SessionSaveAsAction extends DiskAccessAction { 50 50 51 private List<Layer> layers;52 private Map<Layer, SessionLayerExporter> exporters;53 private MultiMap<Layer, Layer> dependencies;51 private transient List<Layer> layers; 52 private transient Map<Layer, SessionLayerExporter> exporters; 53 private transient MultiMap<Layer, Layer> dependencies; 54 54 55 55 /** -
trunk/src/org/openstreetmap/josm/actions/ToggleAction.java
r7937 r8308 23 23 public abstract class ToggleAction extends JosmAction { 24 24 25 private final List<ButtonModel> buttonModels = new ArrayList<>();25 private final transient List<ButtonModel> buttonModels = new ArrayList<>(); 26 26 27 27 /** -
trunk/src/org/openstreetmap/josm/actions/ToggleUploadDiscouragedLayerAction.java
r7937 r8308 11 11 public class ToggleUploadDiscouragedLayerAction extends JosmAction { 12 12 13 private OsmDataLayer layer;14 13 private transient OsmDataLayer layer; 14 15 15 public ToggleUploadDiscouragedLayerAction(OsmDataLayer layer) { 16 16 super(tr("Encourage/discourage upload"), null, null, null, false); -
trunk/src/org/openstreetmap/josm/actions/UnGlueAction.java
r7152 r8308 47 47 public class UnGlueAction extends JosmAction { 48 48 49 private Node selectedNode;50 private Way selectedWay;51 private Set<Node> selectedNodes;49 private transient Node selectedNode; 50 private transient Way selectedWay; 51 private transient Set<Node> selectedNodes; 52 52 53 53 /** -
trunk/src/org/openstreetmap/josm/actions/ValidateAction.java
r7117 r8308 35 35 36 36 /** Last selection used to validate */ 37 private Collection<OsmPrimitive> lastSelection;37 private transient Collection<OsmPrimitive> lastSelection; 38 38 39 39 /** -
trunk/src/org/openstreetmap/josm/actions/mapmode/AddNoteAction.java
r8210 r8308 27 27 public class AddNoteAction extends MapMode implements KeyPressReleaseListener { 28 28 29 private NoteData noteData;29 private transient NoteData noteData; 30 30 31 31 /** -
trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java
r8291 r8308 56 56 * set would have to be checked. 57 57 */ 58 private WaySegment oldHighlightedWaySegment = null;58 private transient WaySegment oldHighlightedWaySegment = null; 59 59 60 60 private static final HighlightHelper highlightHelper = new HighlightHelper(); -
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r8285 r8308 76 76 private final Cursor cursorJoinWay; 77 77 78 private Node lastUsedNode = null;78 private transient Node lastUsedNode = null; 79 79 private static final double PHI = Math.toRadians(90); 80 80 private double toleranceMultiplier; 81 81 82 private Node mouseOnExistingNode;83 private Set<Way> mouseOnExistingWays = new HashSet<>();82 private transient Node mouseOnExistingNode; 83 private transient Set<Way> mouseOnExistingWays = new HashSet<>(); 84 84 // old highlights store which primitives are currently highlighted. This 85 85 // is true, even if target highlighting is disabled since the status bar 86 86 // derives its information from this list as well. 87 private Set<OsmPrimitive> oldHighlights = new HashSet<>();87 private transient Set<OsmPrimitive> oldHighlights = new HashSet<>(); 88 88 // new highlights contains a list of primitives that should be highlighted 89 89 // but haven’t been so far. The idea is to compare old and new and only 90 90 // repaint if there are changes. 91 private Set<OsmPrimitive> newHighlights = new HashSet<>();91 private transient Set<OsmPrimitive> newHighlights = new HashSet<>(); 92 92 private boolean drawHelperLine; 93 93 private boolean wayIsFinished = false; … … 97 97 private Color rubberLineColor; 98 98 99 private Node currentBaseNode;100 private Node previousNode;99 private transient Node currentBaseNode; 100 private transient Node previousNode; 101 101 private EastNorth currentMouseEastNorth; 102 102 103 private final SnapHelper snapHelper = new SnapHelper();104 105 private final Shortcut backspaceShortcut;103 private final transient SnapHelper snapHelper = new SnapHelper(); 104 105 private final transient Shortcut backspaceShortcut; 106 106 private final BackSpaceAction backspaceAction; 107 private final Shortcut snappingShortcut;107 private final transient Shortcut snappingShortcut; 108 108 private boolean ignoreNextKeyRelease; 109 109 … … 111 111 private final JCheckBoxMenuItem snapCheckboxMenuItem; 112 112 private boolean useRepeatedShortcut; 113 private Stroke rubberLineStroke;113 private transient Stroke rubberLineStroke; 114 114 private static final BasicStroke BASIC_STROKE = new BasicStroke(1); 115 115 -
trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java
r7668 r8308 25 25 import java.util.LinkedList; 26 26 import java.util.List; 27 27 28 import javax.swing.JCheckBoxMenuItem; 28 29 import javax.swing.JMenuItem; … … 49 50 import org.openstreetmap.josm.gui.layer.MapViewPaintable; 50 51 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 52 import org.openstreetmap.josm.gui.util.GuiHelper; 51 53 import org.openstreetmap.josm.gui.util.KeyPressReleaseListener; 52 import org.openstreetmap.josm.gui.util.GuiHelper;53 54 import org.openstreetmap.josm.gui.util.ModifierListener; 54 55 import org.openstreetmap.josm.tools.Geometry; … … 72 73 73 74 private long mouseDownTime = 0; 74 private WaySegment selectedSegment = null;75 private Node selectedNode = null;75 private transient WaySegment selectedSegment = null; 76 private transient Node selectedNode = null; 76 77 private Color mainColor; 77 private Stroke mainStroke;78 private transient Stroke mainStroke; 78 79 79 80 /** settings value whether shared nodes should be ignored or not */ … … 86 87 */ 87 88 private Color helperColor; 88 private Stroke helperStrokeDash;89 private Stroke helperStrokeRA;90 91 private Stroke oldLineStroke;89 private transient Stroke helperStrokeDash; 90 private transient Stroke helperStrokeRA; 91 92 private transient Stroke oldLineStroke; 92 93 private double symbolSize; 93 94 /** 94 95 * Possible directions to move to. 95 96 */ 96 private List<ReferenceSegment> possibleMoveDirections;97 private transient List<ReferenceSegment> possibleMoveDirections; 97 98 98 99 … … 105 106 * The direction that is currently active. 106 107 */ 107 private ReferenceSegment activeMoveDirection;108 private transient ReferenceSegment activeMoveDirection; 108 109 109 110 /** … … 135 136 * the command that performed last move. 136 137 */ 137 private MoveCommand moveCommand;138 private transient MoveCommand moveCommand; 138 139 /** 139 140 * The command used for dual alignment movement. 140 141 * Needs to be separate, due to two nodes moving in different directions. 141 142 */ 142 private MoveCommand moveCommand2;143 private transient MoveCommand moveCommand2; 143 144 144 145 /** The cursor for the 'create_new' mode. */ … … 176 177 private boolean dualAlignActive; 177 178 /** Dual alignment reference segments */ 178 private ReferenceSegment dualAlignSegment1, dualAlignSegment2;179 private transient ReferenceSegment dualAlignSegment1, dualAlignSegment2; 179 180 /** {@code true}, if new segment was collapsed */ 180 181 private boolean dualAlignSegmentCollapsed = false; … … 182 183 private final DualAlignChangeAction dualAlignChangeAction; 183 184 private final JCheckBoxMenuItem dualAlignCheckboxMenuItem; 184 private final Shortcut dualAlignShortcut;185 private final transient Shortcut dualAlignShortcut; 185 186 private boolean useRepeatedShortcut; 186 187 private boolean ignoreNextKeyRelease; -
trunk/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyAction.java
r8061 r8308 64 64 private static final long serialVersionUID = 42L; 65 65 66 private Way targetWay;67 private Node candidateNode = null;68 private WaySegment candidateSegment = null;66 private transient Way targetWay; 67 private transient Node candidateNode = null; 68 private transient WaySegment candidateSegment = null; 69 69 70 70 private Point mousePos = null; … … 80 80 81 81 private Color guideColor; 82 private Stroke selectTargetWayStroke;83 private Stroke moveNodeStroke;84 private Stroke addNodeStroke;85 private Stroke deleteNodeStroke;82 private transient Stroke selectTargetWayStroke; 83 private transient Stroke moveNodeStroke; 84 private transient Stroke addNodeStroke; 85 private transient Stroke deleteNodeStroke; 86 86 private int dotSize; 87 87 -
trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java
r8285 r8308 102 102 private double snapDistanceNautical; 103 103 104 private ModifiersSpec snapModifierCombo;105 private ModifiersSpec copyTagsModifierCombo;106 private ModifiersSpec addToSelectionModifierCombo;107 private ModifiersSpec toggleSelectedModifierCombo;108 private ModifiersSpec setSelectedModifierCombo;104 private transient ModifiersSpec snapModifierCombo; 105 private transient ModifiersSpec copyTagsModifierCombo; 106 private transient ModifiersSpec addToSelectionModifierCombo; 107 private transient ModifiersSpec toggleSelectedModifierCombo; 108 private transient ModifiersSpec setSelectedModifierCombo; 109 109 110 110 private int initialMoveDelay; … … 118 118 private boolean mouseHasBeenDragged; 119 119 120 private WaySegment referenceSegment;121 private ParallelWays pWays;122 private Set<Way> sourceWays;120 private transient WaySegment referenceSegment; 121 private transient ParallelWays pWays; 122 private transient Set<Way> sourceWays; 123 123 private EastNorth helperLineStart; 124 124 private EastNorth helperLineEnd; 125 125 126 private Stroke helpLineStroke;127 private Stroke refLineStroke;126 private transient Stroke helpLineStroke; 127 private transient Stroke refLineStroke; 128 128 private Color mainColor; 129 129 -
trunk/src/org/openstreetmap/josm/actions/mapmode/PlayHeadDragMode.java
r6380 r8308 23 23 private Point mousePos = null; 24 24 private Point mouseStart = null; 25 private PlayHeadMarker playHeadMarker = null;25 private transient PlayHeadMarker playHeadMarker = null; 26 26 27 27 /** -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r8285 r8308 122 122 123 123 private Mode mode = null; 124 private final SelectionManager selectionManager;124 private final transient SelectionManager selectionManager; 125 125 private boolean cancelDrawMode = false; 126 126 private boolean drawTargetHighlight; … … 171 171 * set would have to be checked. 172 172 */ 173 private Set<OsmPrimitive> oldHighlights = new HashSet<>();173 private transient Set<OsmPrimitive> oldHighlights = new HashSet<>(); 174 174 175 175 /** … … 947 947 } 948 948 949 private CycleManager cycleManager = new CycleManager();950 private VirtualManager virtualManager = new VirtualManager();949 private transient CycleManager cycleManager = new CycleManager(); 950 private transient VirtualManager virtualManager = new VirtualManager(); 951 951 952 952 private class CycleManager { -
trunk/src/org/openstreetmap/josm/actions/mapmode/ZoomAction.java
r6380 r8308 32 32 33 33 /** 34 * Manager that manages the selection rectangle with the aspect ratio of the 35 * MapView. 34 * Manager that manages the selection rectangle with the aspect ratio of the MapView. 36 35 */ 37 private final SelectionManager selectionManager;36 private final transient SelectionManager selectionManager; 38 37 39 38 /** -
trunk/src/org/openstreetmap/josm/actions/relation/AbstractRelationAction.java
r7937 r8308 13 13 14 14 /** 15 * Ancestor for all actions that want to work with relation collection and 15 * Ancestor for all actions that want to work with relation collection and 16 16 * to be disabled if the collection is empty 17 17 * @since 5793 18 18 */ 19 19 public abstract class AbstractRelationAction extends AbstractAction implements OsmPrimitiveAction { 20 protected Collection<Relation> relations = Collections.<Relation>emptySet();20 protected transient Collection<Relation> relations = Collections.<Relation>emptySet(); 21 21 22 22 protected static final Collection<Relation> getRelations(Collection<? extends OsmPrimitive> primitives) { … … 28 28 } 29 29 } 30 30 31 31 @Override 32 32 public void setPrimitives(Collection<? extends OsmPrimitive> primitives) { … … 34 34 updateEnabledState(); 35 35 } 36 36 37 37 protected void updateEnabledState() { 38 38 setEnabled(!relations.isEmpty()); -
trunk/src/org/openstreetmap/josm/actions/relation/DownloadSelectedIncompleteMembersAction.java
r7946 r8308 24 24 public class DownloadSelectedIncompleteMembersAction extends AbstractRelationAction { 25 25 26 private Collection<OsmPrimitive> incompleteMembers;26 private transient Collection<OsmPrimitive> incompleteMembers; 27 27 28 28 /** -
trunk/src/org/openstreetmap/josm/corrector/CorrectionTableModel.java
r6883 r8308 11 11 public abstract class CorrectionTableModel<C extends Correction> extends AbstractTableModel { 12 12 13 private List<C> corrections;13 private transient List<C> corrections; 14 14 private boolean[] apply; 15 15 private int applyColumn; -
trunk/src/org/openstreetmap/josm/data/AutosaveTask.java
r8285 r8308 100 100 } 101 101 102 for (File f: deletedLayersDir.listFiles()) { 103 deletedLayers.add(f); // FIXME: sort by mtime 102 File[] files = deletedLayersDir.listFiles(); 103 if (files != null) { 104 for (File f: files) { 105 deletedLayers.add(f); // FIXME: sort by mtime 106 } 104 107 } 105 108 -
trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java
r8285 r8308 303 303 public static void deleteFileOrDirectory(File f) { 304 304 if (f.isDirectory()) { 305 for (File f1: f.listFiles()) { 306 deleteFileOrDirectory(f1); 305 File[] files = f.listFiles(); 306 if (files != null) { 307 for (File f1: files) { 308 deleteFileOrDirectory(f1); 309 } 307 310 } 308 311 } … … 310 313 f.delete(); 311 314 } catch (Exception e) { 312 log("Warning: Can not delete file "+f.getPath() );315 log("Warning: Can not delete file "+f.getPath()+": "+e.getMessage()); 313 316 } 314 317 } -
trunk/src/org/openstreetmap/josm/data/cache/CacheEntryAttributes.java
r8168 r8308 9 9 /** 10 10 * Class that contains attirubtes for JCS cache entries. Parameters are used to properly handle HTTP caching 11 * 11 * 12 12 * @author Wiktor Niesiobędzki 13 13 * … … 15 15 public class CacheEntryAttributes extends ElementAttributes { 16 16 private static final long serialVersionUID = 1L; //version 17 private Map<String, String> attrs = new HashMap<String, String>();17 private transient Map<String, String> attrs = new HashMap<String, String>(); 18 18 private final static String NO_TILE_AT_ZOOM = "noTileAtZoom"; 19 19 private final static String ETAG = "Etag"; -
trunk/src/org/openstreetmap/josm/data/coor/CachedLatLon.java
r6380 r8308 16 16 public class CachedLatLon extends LatLon { 17 17 private EastNorth eastNorth; 18 private Projection proj;18 private transient Projection proj; 19 19 20 20 public CachedLatLon(double lat, double lon) { -
trunk/src/org/openstreetmap/josm/data/coor/EastNorth.java
r7509 r8308 10 10 */ 11 11 public class EastNorth extends Coordinate { 12 13 private static final long serialVersionUID = 1L; 12 14 13 15 public EastNorth(double east, double north) { -
trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
r7236 r8308 38 38 public class LatLon extends Coordinate { 39 39 40 private static final long serialVersionUID = 1L; 41 40 42 /** 41 43 * Minimum difference in location to not be represented as the same position. -
trunk/src/org/openstreetmap/josm/data/gpx/Extensions.java
r7937 r8308 10 10 public class Extensions extends LinkedHashMap<String, String> { 11 11 12 private static final long serialVersionUID = 1L; 13 12 14 public Extensions(Map<? extends String, ? extends String> m) { 13 15 super(m); -
trunk/src/org/openstreetmap/josm/data/imagery/WmsCache.java
r8285 r8308 227 227 } 228 228 229 for (File file: projectionDir.listFiles()) { 230 if (!referencedFiles.contains(file.getName())) { 231 file.delete(); 229 File[] files = projectionDir.listFiles(); 230 if (files != null) { 231 for (File file: files) { 232 if (!referencedFiles.contains(file.getName())) { 233 file.delete(); 234 } 232 235 } 233 236 } … … 235 238 } 236 239 237 for (File projectionDir: cacheDir.listFiles()) { 238 if (projectionDir.isDirectory() && !usedProjections.contains(projectionDir.getName())) { 239 Utils.deleteDirectory(projectionDir); 240 File[] files = cacheDir.listFiles(); 241 if (files != null) { 242 for (File projectionDir: files) { 243 if (projectionDir.isDirectory() && !usedProjections.contains(projectionDir.getName())) { 244 Utils.deleteDirectory(projectionDir); 245 } 240 246 } 241 247 } -
trunk/src/org/openstreetmap/josm/data/osm/NodePositionComparator.java
r3650 r8308 2 2 package org.openstreetmap.josm.data.osm; 3 3 4 import java.io.Serializable; 4 5 import java.util.Comparator; 5 6 … … 9 10 * @author viesturs 10 11 */ 11 public class NodePositionComparator implements Comparator<Node> { 12 public class NodePositionComparator implements Comparator<Node>, Serializable { 13 14 private static final long serialVersionUID = 1L; 15 12 16 @Override 13 17 public int compare(Node n1, Node n2) { -
trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitiveComparator.java
r7937 r8308 2 2 package org.openstreetmap.josm.data.osm; 3 3 4 import java.io.Serializable; 4 5 import java.util.Comparator; 5 6 import java.util.HashMap; … … 15 16 * @since 4113 16 17 */ 17 public class OsmPrimitiveComparator implements Comparator<OsmPrimitive> { 18 public class OsmPrimitiveComparator implements Comparator<OsmPrimitive>, Serializable { 19 20 private static final long serialVersionUID = 1L; 21 18 22 private final Map<OsmPrimitive, String> cache = new HashMap<>(); 19 23 private final boolean relationsFirst; -
trunk/src/org/openstreetmap/josm/data/osm/SimplePrimitiveId.java
r8194 r8308 9 9 10 10 public class SimplePrimitiveId implements PrimitiveId, Serializable { 11 12 private static final long serialVersionUID = 1L; 13 11 14 private final long id; 12 15 private final OsmPrimitiveType type; -
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShift.java
r8285 r8308 37 37 public class NTV2GridShift implements Serializable { 38 38 39 private static final long serialVersionUID = 1L; 40 39 41 private static final double METRE_PER_SECOND = 2.0 * Math.PI * 6378137.0 / 3600.0 / 360.0; 40 42 private static final double RADIANS_PER_SECOND = 2.0 * Math.PI / 3600.0 / 360.0; -
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFile.java
r7951 r8308 63 63 public class NTV2GridShiftFile implements Serializable { 64 64 65 private static final long serialVersionUID = 1L; 66 65 67 private int overviewHeaderCount; 66 68 private int subGridHeaderCount; -
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2SubGrid.java
r8285 r8308 38 38 */ 39 39 public class NTV2SubGrid implements Cloneable, Serializable { 40 41 private static final long serialVersionUID = 1L; 40 42 41 43 private String subGridName; -
trunk/src/org/openstreetmap/josm/gui/ExtendedDialog.java
r7864 r8308 77 77 private boolean toggleable = false; 78 78 private String rememberSizePref = ""; 79 private WindowGeometry defaultWindowGeometry = null;79 private transient WindowGeometry defaultWindowGeometry = null; 80 80 private String togglePref = ""; 81 81 private int toggleValue = -1; … … 85 85 private final String[] bTexts; 86 86 private String[] bToolTipTexts; 87 private Icon[] bIcons;88 private List<Integer> cancelButtonIdx = Collections.emptyList();87 private transient Icon[] bIcons; 88 private transient List<Integer> cancelButtonIdx = Collections.emptyList(); 89 89 private int defaultButtonIdx = 1; 90 90 protected JButton defaultButton = null; 91 private Icon icon;91 private transient Icon icon; 92 92 private boolean modal; 93 93 private boolean focusOnDefaultButton = false; … … 105 105 106 106 // For easy access when inherited 107 protected Insets contentInsets = new Insets(10,5,0,5);108 protected List<JButton> buttons = new ArrayList<>();107 protected transient Insets contentInsets = new Insets(10,5,0,5); 108 protected transient List<JButton> buttons = new ArrayList<>(); 109 109 110 110 /** -
trunk/src/org/openstreetmap/josm/gui/IconToggleButton.java
r7694 r8308 25 25 26 26 public boolean groupbutton; 27 private ShowHideButtonListener listener;27 private transient ShowHideButtonListener listener; 28 28 private boolean hideIfDisabled = false; 29 29 private boolean isExpert; -
trunk/src/org/openstreetmap/josm/gui/ImageryMenu.java
r8286 r8308 58 58 }; 59 59 60 private Action offsetAction = new JosmAction(60 private transient Action offsetAction = new JosmAction( 61 61 tr("Imagery offset"), "mapmode/adjustimg", tr("Adjust imagery offset"), null, false, false) { 62 62 { … … 256 256 * @since 5803 257 257 */ 258 private List <Object> dynamicItems = new ArrayList<>(20);258 private transient List <Object> dynamicItems = new ArrayList<>(20); 259 259 260 260 /** -
trunk/src/org/openstreetmap/josm/gui/MainMenu.java
r8212 r8308 232 232 public final HistoryInfoWebAction historyinfoweb = new HistoryInfoWebAction(); 233 233 /** View / "Zoom to"... actions */ 234 public final Map<String, AutoScaleAction> autoScaleActions = new HashMap<>();234 public final transient Map<String, AutoScaleAction> autoScaleActions = new HashMap<>(); 235 235 /** View / Jump to position */ 236 236 public final JumpToAction jumpToAct = new JumpToAction(); -
trunk/src/org/openstreetmap/josm/gui/MapFrame.java
r8285 r8308 103 103 * This object allows to detect key press and release events 104 104 */ 105 public final AdvancedKeyPressDetector keyDetector = new AdvancedKeyPressDetector();105 public final transient AdvancedKeyPressDetector keyDetector = new AdvancedKeyPressDetector(); 106 106 107 107 /** … … 114 114 private final JToolBar toolBarToggle = new JToolBar(JToolBar.VERTICAL); 115 115 116 private final List<ToggleDialog> allDialogs = new ArrayList<>();117 private final List<MapMode> mapModes = new ArrayList<>();118 private final List<IconToggleButton> allDialogButtons = new ArrayList<>();119 public final List<IconToggleButton> allMapModeButtons = new ArrayList<>();116 private final transient List<ToggleDialog> allDialogs = new ArrayList<>(); 117 private final transient List<MapMode> mapModes = new ArrayList<>(); 118 private final transient List<IconToggleButton> allDialogButtons = new ArrayList<>(); 119 public final transient List<IconToggleButton> allMapModeButtons = new ArrayList<>(); 120 120 121 121 private final ListAllButtonsAction listAllDialogsAction = new ListAllButtonsAction(allDialogButtons); … … 141 141 public LassoModeAction mapModeSelectLasso; 142 142 143 private final Map<Layer, MapMode> lastMapMode = new HashMap<>();143 private final transient Map<Layer, MapMode> lastMapMode = new HashMap<>(); 144 144 private final MapMode mapModeDraw; 145 145 private final MapMode mapModeZoom; … … 538 538 539 539 private JButton button; 540 private Collection<? extends HideableButton> buttons;540 private transient Collection<? extends HideableButton> buttons; 541 541 542 542 … … 670 670 private static final CopyOnWriteArrayList<MapModeChangeListener> mapModeChangeListeners = new CopyOnWriteArrayList<>(); 671 671 672 private PreferenceChangedListener sidetoolbarPreferencesChangedListener;672 private transient PreferenceChangedListener sidetoolbarPreferencesChangedListener; 673 673 /** 674 674 * Adds a mapMode change listener -
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r8285 r8308 121 121 */ 122 122 private final MapView mv; 123 private final Collector collector;123 private final transient Collector collector; 124 124 125 125 public class BackgroundProgressMonitor implements ProgressMonitorDialog { … … 175 175 } 176 176 177 private final ImageLabel latText = new ImageLabel("lat", tr("The geographic latitude at the mouse pointer."), 11, PROP_BACKGROUND_COLOR.get()); 178 private final ImageLabel lonText = new ImageLabel("lon", tr("The geographic longitude at the mouse pointer."), 11, PROP_BACKGROUND_COLOR.get()); 179 private final ImageLabel headingText = new ImageLabel("heading", tr("The (compass) heading of the line segment being drawn."), 6, PROP_BACKGROUND_COLOR.get()); 180 private final ImageLabel angleText = new ImageLabel("angle", tr("The angle between the previous and the current way segment."), 6, PROP_BACKGROUND_COLOR.get()); 181 private final ImageLabel distText = new ImageLabel("dist", tr("The length of the new way segment being drawn."), 10, PROP_BACKGROUND_COLOR.get()); 182 private final ImageLabel nameText = new ImageLabel("name", tr("The name of the object at the mouse pointer."), 20, PROP_BACKGROUND_COLOR.get()); 177 private final ImageLabel latText = new ImageLabel("lat", 178 tr("The geographic latitude at the mouse pointer."), 11, PROP_BACKGROUND_COLOR.get()); 179 private final ImageLabel lonText = new ImageLabel("lon", 180 tr("The geographic longitude at the mouse pointer."), 11, PROP_BACKGROUND_COLOR.get()); 181 private final ImageLabel headingText = new ImageLabel("heading", 182 tr("The (compass) heading of the line segment being drawn."), 6, PROP_BACKGROUND_COLOR.get()); 183 private final ImageLabel angleText = new ImageLabel("angle", 184 tr("The angle between the previous and the current way segment."), 6, PROP_BACKGROUND_COLOR.get()); 185 private final ImageLabel distText = new ImageLabel("dist", 186 tr("The length of the new way segment being drawn."), 10, PROP_BACKGROUND_COLOR.get()); 187 private final ImageLabel nameText = new ImageLabel("name", 188 tr("The name of the object at the mouse pointer."), 20, PROP_BACKGROUND_COLOR.get()); 183 189 private final JosmTextField helpText = new JosmTextField(); 184 190 private final JProgressBar progressBar = new JProgressBar(); 185 public final BackgroundProgressMonitor progressMonitor = new BackgroundProgressMonitor();186 187 private final SoMChangeListener somListener;191 public final transient BackgroundProgressMonitor progressMonitor = new BackgroundProgressMonitor(); 192 193 private final transient SoMChangeListener somListener; 188 194 189 195 // Distance value displayed in distText, stored if refresh needed after a change of system of measurement … … 197 203 * It gets destroyed by destroy() when the MapFrame itself is destroyed. 198 204 */ 199 private Thread thread;200 201 private final List<StatusTextHistory> statusText = new ArrayList<>();205 private transient Thread thread; 206 207 private final transient List<StatusTextHistory> statusText = new ArrayList<>(); 202 208 203 209 private static class StatusTextHistory { … … 649 655 * The last sent mouse movement event. 650 656 */ 651 private MouseState mouseState = new MouseState();652 653 private AWTEventListener awtListener = new AWTEventListener() {657 private transient MouseState mouseState = new MouseState(); 658 659 private transient AWTEventListener awtListener = new AWTEventListener() { 654 660 @Override 655 661 public void eventDispatched(AWTEvent event) { … … 667 673 }; 668 674 669 private MouseMotionListener mouseMotionListener = new MouseMotionListener() {675 private transient MouseMotionListener mouseMotionListener = new MouseMotionListener() { 670 676 @Override 671 677 public void mouseMoved(MouseEvent e) { … … 683 689 }; 684 690 685 private KeyAdapter keyAdapter = new KeyAdapter() {691 private transient KeyAdapter keyAdapter = new KeyAdapter() { 686 692 @Override public void keyPressed(KeyEvent e) { 687 693 synchronized (collector) { … … 722 728 private final JMenuItem jumpButton = add(Main.main.menu.jumpToAct); 723 729 724 private final Collection<JCheckBoxMenuItem> somItems = new ArrayList<>();730 private final transient Collection<JCheckBoxMenuItem> somItems = new ArrayList<>(); 725 731 726 732 private final JSeparator separator = new JSeparator(); -
trunk/src/org/openstreetmap/josm/gui/MapView.java
r8291 r8308 207 207 * A list of all layers currently loaded. 208 208 */ 209 private final List<Layer> layers = new ArrayList<>();209 private final transient List<Layer> layers = new ArrayList<>(); 210 210 /** 211 211 * The play head marker: there is only one of these so it isn't in any specific layer 212 212 */ 213 public PlayHeadMarker playHeadMarker = null;213 public transient PlayHeadMarker playHeadMarker = null; 214 214 215 215 /** 216 216 * The layer from the layers list that is currently active. 217 217 */ 218 private Layer activeLayer;219 220 private OsmDataLayer editLayer;218 private transient Layer activeLayer; 219 220 private transient OsmDataLayer editLayer; 221 221 222 222 /** … … 225 225 public MouseEvent lastMEvent = new MouseEvent(this, 0, 0, 0, 0, 0, 0, false); // In case somebody reads it before first mouse move 226 226 227 private final List<MapViewPaintable> temporaryLayers = new LinkedList<>();228 229 private BufferedImage nonChangedLayersBuffer;230 private BufferedImage offscreenBuffer;227 private final transient List<MapViewPaintable> temporaryLayers = new LinkedList<>(); 228 229 private transient BufferedImage nonChangedLayersBuffer; 230 private transient BufferedImage offscreenBuffer; 231 231 // Layers that wasn't changed since last paint 232 private final List<Layer> nonChangedLayers = new ArrayList<>();233 private Layer changedLayer;232 private final transient List<Layer> nonChangedLayers = new ArrayList<>(); 233 private transient Layer changedLayer; 234 234 private int lastViewID; 235 235 private boolean paintPreferencesChanged = true; 236 236 private Rectangle lastClipBounds = new Rectangle(); 237 private MapMover mapMover;237 private transient MapMover mapMover; 238 238 239 239 /** … … 909 909 } 910 910 911 private SelectionChangedListener repaintSelectionChangedListener = new SelectionChangedListener(){ 912 @Override public void selectionChanged(Collection<? extends OsmPrimitive> newSelection) { 911 private transient SelectionChangedListener repaintSelectionChangedListener = new SelectionChangedListener(){ 912 @Override 913 public void selectionChanged(Collection<? extends OsmPrimitive> newSelection) { 913 914 repaint(); 914 915 } -
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r8285 r8308 88 88 } 89 89 90 public Predicate<OsmPrimitive> isSelectablePredicate = new Predicate<OsmPrimitive>() {90 public transient Predicate<OsmPrimitive> isSelectablePredicate = new Predicate<OsmPrimitive>() { 91 91 @Override 92 92 public boolean evaluate(OsmPrimitive prim) { … … 180 180 protected EastNorth center = calculateDefaultCenter(); 181 181 182 private final Object paintRequestLock = new Object();182 private final transient Object paintRequestLock = new Object(); 183 183 private Rectangle paintRect = null; 184 184 private Polygon paintPoly = null; 185 185 186 protected ViewportData initialViewport;186 protected transient ViewportData initialViewport; 187 187 188 188 /** -
trunk/src/org/openstreetmap/josm/gui/PleaseWaitDialog.java
r6380 r8308 34 34 public final JLabel currentAction = new JLabel(""); 35 35 private final JLabel customText = new JLabel(""); 36 public final BoundedRangeModel progress = progressBar.getModel();36 public final transient BoundedRangeModel progress = progressBar.getModel(); 37 37 private JButton btnCancel; 38 38 private JButton btnInBackground; -
trunk/src/org/openstreetmap/josm/gui/ScrollViewport.java
r7005 r8308 66 66 private JComponent component = null; 67 67 68 private List<JButton> buttons = new ArrayList<>();68 private transient List<JButton> buttons = new ArrayList<>(); 69 69 70 70 private Timer timer = new Timer(100, new ActionListener() { -
trunk/src/org/openstreetmap/josm/gui/SideButton.java
r6889 r8308 27 27 private static final int iconHeight = 20; 28 28 29 private PropertyChangeListener propertyChangeListener;29 private transient PropertyChangeListener propertyChangeListener; 30 30 31 31 public SideButton(Action action) { -
trunk/src/org/openstreetmap/josm/gui/SplashScreen.java
r7768 r8308 40 40 public class SplashScreen extends JFrame { 41 41 42 private final SwingRenderingProgressMonitor progressMonitor;42 private final transient SwingRenderingProgressMonitor progressMonitor; 43 43 44 44 /** -
trunk/src/org/openstreetmap/josm/gui/actionsupport/DeleteFromRelationConfirmationDialog.java
r8126 r8308 187 187 */ 188 188 public static class RelationMemberTableModel extends DefaultTableModel { 189 private List<RelationToChildReference> data;189 private transient List<RelationToChildReference> data; 190 190 191 191 /** -
trunk/src/org/openstreetmap/josm/gui/bbox/SizeButton.java
r8056 r8308 35 35 } 36 36 37 private final MouseAdapter mouseListener = new MouseAdapter() {37 private final transient MouseAdapter mouseListener = new MouseAdapter() { 38 38 @Override 39 39 public void mouseReleased(MouseEvent e) { -
trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java
r8285 r8308 117 117 public static final String RESIZE_PROP = SlippyMapBBoxChooser.class.getName() + ".resize"; 118 118 119 private TileLoader cachedLoader;120 private OsmTileLoader uncachedLoader;119 private transient TileLoader cachedLoader; 120 private transient OsmTileLoader uncachedLoader; 121 121 122 122 private final SizeButton iSizeButton; 123 123 private final SourceButton iSourceButton; 124 private Bounds bbox;124 private transient Bounds bbox; 125 125 126 126 // upper left and lower right corners of the selection rectangle (x/y on ZOOM_MAX) -
trunk/src/org/openstreetmap/josm/gui/bbox/SourceButton.java
r8056 r8308 29 29 private static final int BOTTOM_PADDING = 5; 30 30 31 private TileSource[] sources;31 private transient TileSource[] sources; 32 32 33 33 private final ImageIcon enlargeImage; … … 57 57 } 58 58 59 private final MouseListener mouseListener = new MouseAdapter() {59 private final transient MouseListener mouseListener = new MouseAdapter() { 60 60 @Override 61 61 public void mouseReleased(MouseEvent e) { -
trunk/src/org/openstreetmap/josm/gui/bbox/TileSelectionBBoxChooser.java
r8291 r8308 83 83 84 84 /** the current bounding box */ 85 private Bounds bbox;85 private transient Bounds bbox; 86 86 /** the map viewer showing the selected bounding box */ 87 87 private TileBoundsMapView mapViewer; … … 224 224 private JosmTextField tfMaxX; 225 225 private JosmTextField tfMinX; 226 private TileCoordinateValidator valMaxY;227 private TileCoordinateValidator valMinY;228 private TileCoordinateValidator valMaxX;229 private TileCoordinateValidator valMinX;226 private transient TileCoordinateValidator valMaxY; 227 private transient TileCoordinateValidator valMinY; 228 private transient TileCoordinateValidator valMaxX; 229 private transient TileCoordinateValidator valMinX; 230 230 private JSpinner spZoomLevel; 231 private TileBoundsBuilder tileBoundsBuilder = new TileBoundsBuilder();231 private transient TileBoundsBuilder tileBoundsBuilder = new TileBoundsBuilder(); 232 232 private boolean doFireTileBoundChanged = true; 233 233 … … 442 442 443 443 private JosmTextField tfTileAddress; 444 private TileAddressValidator valTileAddress;444 private transient TileAddressValidator valTileAddress; 445 445 446 446 protected JPanel buildTextPanel() { -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/ConflictResolver.java
r8061 r8308 72 72 private RelationMemberMerger relationMemberMerger; 73 73 private PropertiesMerger propertiesMerger; 74 private final List<IConflictResolver> conflictResolvers = new ArrayList<>();75 private OsmPrimitive my;76 private OsmPrimitive their;77 private Conflict<? extends OsmPrimitive> conflict;74 private final transient List<IConflictResolver> conflictResolvers = new ArrayList<>(); 75 private transient OsmPrimitive my; 76 private transient OsmPrimitive their; 77 private transient Conflict<? extends OsmPrimitive> conflict; 78 78 79 79 private ImageIcon mergeComplete; -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/ListMergeModel.java
r8291 r8308 729 729 */ 730 730 protected class EntriesSelectionModel extends DefaultListSelectionModel { 731 private final List<T> entries;731 private final transient List<T> entries; 732 732 733 733 public EntriesSelectionModel(ArrayList<T> nodes) { … … 823 823 824 824 private int selectedIdx; 825 private final List<ComparePairType> compareModes;825 private final transient List<ComparePairType> compareModes; 826 826 827 827 /** -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/ListMerger.java
r8056 r8308 53 53 protected OsmPrimitivesTable theirEntriesTable; 54 54 55 protected ListMergeModel<T> model;55 protected transient ListMergeModel<T> model; 56 56 57 57 private CopyStartLeftAction copyStartLeftAction; … … 72 72 private FreezeAction freezeAction; 73 73 74 private AdjustmentSynchronizer adjustmentSynchronizer;74 private transient AdjustmentSynchronizer adjustmentSynchronizer; 75 75 76 76 private JLabel lblMyVersion; -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/PairTable.java
r7937 r8308 14 14 public abstract class PairTable extends OsmPrimitivesTable { 15 15 16 private final ListMergeModel<? extends PrimitiveId> model;17 16 private final transient ListMergeModel<? extends PrimitiveId> model; 17 18 18 public PairTable(String name, ListMergeModel<? extends PrimitiveId> model, OsmPrimitivesTableModel dm, TableColumnModel cm, ListSelectionModel sm) { 19 19 super(dm, cm, sm); -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/nodes/NodeListTableCellRenderer.java
r7029 r8308 25 25 26 26 private final ImageIcon icon; 27 private final Border rowNumberBorder;27 private final transient Border rowNumberBorder; 28 28 29 29 /** -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/properties/PropertiesMergeModel.java
r8291 r8308 289 289 if (myCoords != null && theirCoords == null) return true; 290 290 if (myCoords == null && theirCoords == null) return false; 291 return !myCoords.equalsEpsilon(theirCoords);291 return myCoords != null && !myCoords.equalsEpsilon(theirCoords); 292 292 } 293 293 -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/properties/PropertiesMerger.java
r6890 r8308 48 48 private JLabel lblTheirReferrers; 49 49 50 private final PropertiesMergeModel model;50 private final transient PropertiesMergeModel model; 51 51 52 52 protected JLabel buildValueLabel(String name) { -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/relation/RelationMemberTableCellRenderer.java
r7029 r8308 23 23 */ 24 24 public class RelationMemberTableCellRenderer extends JLabel implements TableCellRenderer { 25 private Border rowNumberBorder = null;25 private transient Border rowNumberBorder = null; 26 26 27 27 /** -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TagMergeModel.java
r7005 r8308 33 33 34 34 /** the list of tag merge items */ 35 private final List<TagMergeItem> tagMergeItems;35 private final transient List<TagMergeItem> tagMergeItems; 36 36 37 37 /** the property change listeners */ 38 private final List<PropertyChangeListener> listeners;38 private final transient List<PropertyChangeListener> listeners; 39 39 40 40 private int numUndecidedTags = 0; 41 41 42 /** 43 * Constructs a new {@code TagMergeModel}. 44 */ 42 45 public TagMergeModel() { 43 46 tagMergeItems = new ArrayList<>(); -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TagMerger.java
r8285 r8308 42 42 private JTable theirTable; 43 43 private final TagMergeModel model; 44 private AdjustmentSynchronizer adjustmentSynchronizer;44 private transient AdjustmentSynchronizer adjustmentSynchronizer; 45 45 46 46 /** -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/CombinePrimitiveResolverDialog.java
r8126 r8308 116 116 private boolean canceled; 117 117 private JPanel pnlButtons; 118 protected OsmPrimitive targetPrimitive;118 protected transient OsmPrimitive targetPrimitive; 119 119 120 120 /** the private help action */ -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/PasteTagsConflictResolverDialog.java
r7005 r8308 58 58 59 59 private TagConflictResolver allPrimitivesResolver; 60 private Map<OsmPrimitiveType, TagConflictResolver> resolvers;60 private transient Map<OsmPrimitiveType, TagConflictResolver> resolvers; 61 61 private JTabbedPane tpResolvers; 62 62 private Mode mode; … … 395 395 private static class StatisticsTableModel extends DefaultTableModel { 396 396 private static final String[] HEADERS = new String[] {tr("Paste ..."), tr("From ..."), tr("To ...") }; 397 private List<StatisticsInfo> data;397 private transient List<StatisticsInfo> data; 398 398 399 399 public StatisticsTableModel() { -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/RelationMemberConflictDecisionEditor.java
r7015 r8308 34 34 } 35 35 36 private final CellEditorSupport tableCellEditorSupport;36 private final transient CellEditorSupport tableCellEditorSupport; 37 37 private RelationMemberConflictDecisionType originalValue; 38 38 -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/RelationMemberConflictResolverColumnModel.java
r8005 r8308 20 20 private final DefaultTableCellRenderer defaultTableCellRenderer = new DefaultTableCellRenderer(); 21 21 22 private final OsmPrimitivRenderer primitiveRenderer = new OsmPrimitivRenderer() {22 private final transient OsmPrimitivRenderer primitiveRenderer = new OsmPrimitivRenderer() { 23 23 @Override 24 24 public Component getTableCellRendererComponent(JTable table, … … 29 29 }; 30 30 31 private final TableCellRenderer tableRenderer = new TableCellRenderer() {31 private final transient TableCellRenderer tableRenderer = new TableCellRenderer() { 32 32 @Override 33 33 public Component getTableCellRendererComponent(JTable table, Object value, -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/RelationMemberConflictResolverModel.java
r7661 r8308 31 31 32 32 /** the list of conflict decisions */ 33 protected final List<RelationMemberConflictDecision> decisions;33 protected final transient List<RelationMemberConflictDecision> decisions; 34 34 /** the collection of relations for which we manage conflicts */ 35 protected Collection<Relation> relations;35 protected transient Collection<Relation> relations; 36 36 /** the number of conflicts */ 37 37 private int numConflicts; -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolverModel.java
r8291 r8308 22 22 public static final String NUM_CONFLICTS_PROP = TagConflictResolverModel.class.getName() + ".numConflicts"; 23 23 24 private TagCollection tags;25 private List<String> displayedKeys;26 private Set<String> keysWithConflicts;27 private Map<String, MultiValueResolutionDecision> decisions;24 private transient TagCollection tags; 25 private transient List<String> displayedKeys; 26 private transient Set<String> keysWithConflicts; 27 private transient Map<String, MultiValueResolutionDecision> decisions; 28 28 private int numConflicts; 29 29 private PropertyChangeSupport support; -
trunk/src/org/openstreetmap/josm/gui/dialogs/CommandListMutableTreeNode.java
r4918 r8308 12 12 public class CommandListMutableTreeNode extends DefaultMutableTreeNode { 13 13 14 protected PseudoCommand cmd;14 protected transient PseudoCommand cmd; 15 15 protected int idx; 16 16 -
trunk/src/org/openstreetmap/josm/gui/dialogs/CommandStackDialog.java
r8285 r8308 63 63 private final JTree redoTree = new JTree(redoTreeModel); 64 64 65 private UndoRedoSelectionListener undoSelectionListener;66 private UndoRedoSelectionListener redoSelectionListener;65 private transient UndoRedoSelectionListener undoSelectionListener; 66 private transient UndoRedoSelectionListener redoSelectionListener; 67 67 68 68 private JScrollPane scrollPane; … … 246 246 * Simple listener setup to update the button enabled state when the side dialog shows. 247 247 */ 248 private Set<IEnabledStateUpdating> showNotifyListener = new LinkedHashSet<>();248 private transient Set<IEnabledStateUpdating> showNotifyListener = new LinkedHashSet<>(); 249 249 250 250 private void addShowNotifyListener(IEnabledStateUpdating listener) { -
trunk/src/org/openstreetmap/josm/gui/dialogs/ConflictDialog.java
r7949 r8308 77 77 78 78 /** the collection of conflicts displayed by this conflict dialog */ 79 private ConflictCollection conflicts;79 private transient ConflictCollection conflicts; 80 80 81 81 /** the model for the list of conflicts */ 82 private ConflictListModel model;82 private transient ConflictListModel model; 83 83 /** the list widget for the list of conflicts */ 84 84 private JList<OsmPrimitive> lstConflicts; 85 85 86 86 private final JPopupMenu popupMenu = new JPopupMenu(); 87 private final PopupMenuHandler popupMenuHandler = new PopupMenuHandler(popupMenu);87 private final transient PopupMenuHandler popupMenuHandler = new PopupMenuHandler(popupMenu); 88 88 89 89 private ResolveAction actResolve; -
trunk/src/org/openstreetmap/josm/gui/dialogs/DialogsPanel.java
r7864 r8308 19 19 20 20 public class DialogsPanel extends JPanel implements Destroyable { 21 protected List<ToggleDialog> allDialogs = new ArrayList<>();21 protected transient List<ToggleDialog> allDialogs = new ArrayList<>(); 22 22 protected MultiSplitPane mSpltPane = new MultiSplitPane(); 23 23 protected static final int DIVIDER_SIZE = 5; … … 26 26 * Panels that are added to the multisplitpane. 27 27 */ 28 private List<JPanel> panels = new ArrayList<>();28 private transient List<JPanel> panels = new ArrayList<>(); 29 29 30 30 private final JSplitPane parent; -
trunk/src/org/openstreetmap/josm/gui/dialogs/FilterDialog.java
r7775 r8308 368 368 abstract class AbstractFilterAction extends AbstractAction implements MultikeyShortcutAction { 369 369 370 protected Filter lastFilter;370 protected transient Filter lastFilter; 371 371 372 372 @Override -
trunk/src/org/openstreetmap/josm/gui/dialogs/FilterTableModel.java
r7005 r8308 54 54 } 55 55 56 private final List<Filter> filters = new LinkedList<>();57 private final FilterMatcher filterMatcher = new FilterMatcher();56 private final transient List<Filter> filters = new LinkedList<>(); 57 private final transient FilterMatcher filterMatcher = new FilterMatcher(); 58 58 59 59 private void updateFilters() { -
trunk/src/org/openstreetmap/josm/gui/dialogs/InspectPrimitiveDialog.java
r8285 r8308 60 60 public class InspectPrimitiveDialog extends ExtendedDialog { 61 61 62 protected List<OsmPrimitive> primitives;63 protected OsmDataLayer layer;62 protected transient List<OsmPrimitive> primitives; 63 protected transient OsmDataLayer layer; 64 64 private JosmTextArea txtMappaint; 65 65 private boolean mappaintTabLoaded; -
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r8293 r8308 133 133 } 134 134 135 private final Shortcut[] visibilityToggleShortcuts = new Shortcut[10];135 private final transient Shortcut[] visibilityToggleShortcuts = new Shortcut[10]; 136 136 private final ToggleLayerIndexVisibility[] visibilityToggleActions = new ToggleLayerIndexVisibility[10]; 137 137 … … 440 440 public final class ShowHideLayerAction extends AbstractAction implements IEnabledStateUpdating, LayerAction, MultikeyShortcutAction { 441 441 442 private WeakReference<Layer> lastLayer;443 private Shortcut multikeyShortcut;442 private transient WeakReference<Layer> lastLayer; 443 private transient Shortcut multikeyShortcut; 444 444 445 445 /** … … 526 526 */ 527 527 public final class LayerOpacityAction extends AbstractAction implements IEnabledStateUpdating, LayerAction { 528 private Layer layer;528 private transient Layer layer; 529 529 private JPopupMenu popup; 530 530 private JSlider slider = new JSlider(JSlider.VERTICAL); … … 637 637 638 638 public final class ActivateLayerAction extends AbstractAction implements IEnabledStateUpdating, MapView.LayerChangeListener, MultikeyShortcutAction{ 639 private Layer layer;640 private Shortcut multikeyShortcut;639 private transient Layer layer; 640 private transient Shortcut multikeyShortcut; 641 641 642 642 /** … … 749 749 */ 750 750 public final class MergeAction extends AbstractAction implements IEnabledStateUpdating { 751 private Layer layer;751 private transient Layer layer; 752 752 753 753 /** … … 824 824 */ 825 825 public final class DuplicateAction extends AbstractAction implements IEnabledStateUpdating { 826 private Layer layer;826 private transient Layer layer; 827 827 828 828 /** -
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListPopup.java
r7509 r8308 32 32 33 33 public static final class InfoAction extends AbstractAction { 34 private final Layer layer;34 private final transient Layer layer; 35 35 36 36 /** -
trunk/src/org/openstreetmap/josm/gui/dialogs/MapPaintDialog.java
r8285 r8308 206 206 protected class StylesModel extends AbstractTableModel implements MapPaintSylesUpdateListener { 207 207 208 private List<StyleSource> data = new ArrayList<>();208 private transient List<StyleSource> data = new ArrayList<>(); 209 209 210 210 public StylesModel() { -
trunk/src/org/openstreetmap/josm/gui/dialogs/NotesDialog.java
r8225 r8308 87 87 private final UploadNotesAction uploadAction; 88 88 89 private NoteData noteData;89 private transient NoteData noteData; 90 90 91 91 /** Creates a new toggle dialog for notes */ … … 261 261 262 262 class NoteTableModel extends AbstractListModel<Note> { 263 private List<Note> data;263 private transient List<Note> data; 264 264 265 265 public NoteTableModel() { -
trunk/src/org/openstreetmap/josm/gui/dialogs/OsmIdSelectionDialog.java
r7937 r8308 51 51 protected final OsmIdTextField tfId = new OsmIdTextField(); 52 52 protected final HistoryComboBox cbId = new HistoryComboBox(); 53 protected final GroupLayout layout = new GroupLayout(panel);53 protected final transient GroupLayout layout = new GroupLayout(panel); 54 54 55 55 public OsmIdSelectionDialog(Component parent, String title, String[] buttonTexts) { -
trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
r8285 r8308 96 96 /** the popup menu and its handler */ 97 97 private final JPopupMenu popupMenu = new JPopupMenu(); 98 private final PopupMenuHandler popupMenuHandler = new PopupMenuHandler(popupMenu);98 private final transient PopupMenuHandler popupMenuHandler = new PopupMenuHandler(popupMenu); 99 99 100 100 private final JosmTextField filter; … … 116 116 private final AddSelectionToRelations addSelectionToRelations = new AddSelectionToRelations(); 117 117 118 private final HighlightHelper highlightHelper = new HighlightHelper();118 private final transient HighlightHelper highlightHelper = new HighlightHelper(); 119 119 private boolean highlightEnabled = Main.pref.getBoolean("draw.target-highlight", true); 120 120 … … 390 390 */ 391 391 private class RelationListModel extends AbstractListModel<Relation> { 392 private final List<Relation> relations = new ArrayList<>();393 private List<Relation> filteredRelations;392 private final transient List<Relation> relations = new ArrayList<>(); 393 private transient List<Relation> filteredRelations; 394 394 private DefaultListSelectionModel selectionModel; 395 private SearchCompiler.Match filter;395 private transient SearchCompiler.Match filter; 396 396 397 397 public RelationListModel(DefaultListSelectionModel selectionModel) { -
trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
r7949 r8308 98 98 /** the popup menu and its handler */ 99 99 private final ListPopupMenu popupMenu; 100 private final PopupMenuHandler popupMenuHandler;100 private final transient PopupMenuHandler popupMenuHandler; 101 101 102 102 /** … … 477 477 // Variable to store history from currentDataSet() 478 478 private LinkedList<Collection<? extends OsmPrimitive>> history; 479 private final List<OsmPrimitive> selection = new ArrayList<>();479 private final transient List<OsmPrimitive> selection = new ArrayList<>(); 480 480 private DefaultListSelectionModel selectionModel; 481 481 … … 737 737 */ 738 738 protected static class SearchMenuItem extends JMenuItem implements ActionListener { 739 protected final SearchSetting s;739 protected final transient SearchSetting s; 740 740 741 741 public SearchMenuItem(SearchSetting s) { … … 778 778 */ 779 779 protected static class SelectionMenuItem extends JMenuItem implements ActionListener { 780 private final DefaultNameFormatter df = DefaultNameFormatter.getInstance();781 protected Collection<? extends OsmPrimitive> sel;780 private final transient DefaultNameFormatter df = DefaultNameFormatter.getInstance(); 781 protected transient Collection<? extends OsmPrimitive> sel; 782 782 783 783 public SelectionMenuItem(Collection<? extends OsmPrimitive> sel) { -
trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java
r8081 r8308 95 95 public static final BooleanProperty PROP_DYNAMIC_BUTTONS = new BooleanProperty("dialog.dynamic.buttons", false); 96 96 97 private final ParametrizedEnumProperty<ButtonHidingType> PROP_BUTTON_HIDING = new ParametrizedEnumProperty<ToggleDialog.ButtonHidingType>(97 private final transient ParametrizedEnumProperty<ButtonHidingType> PROP_BUTTON_HIDING = new ParametrizedEnumProperty<ToggleDialog.ButtonHidingType>( 98 98 ButtonHidingType.class, ButtonHidingType.DYNAMIC) { 99 99 @Override … … 152 152 protected JToggleButton button; 153 153 private JPanel buttonsPanel; 154 private List<javax.swing.Action> buttonActions = new ArrayList<>();154 private transient List<javax.swing.Action> buttonActions = new ArrayList<>(); 155 155 156 156 /** holds the menu entry in the windows menu. Required to properly -
trunk/src/org/openstreetmap/josm/gui/dialogs/UserListDialog.java
r8304 r8308 279 279 */ 280 280 static class UserTableModel extends DefaultTableModel { 281 private List<UserInfo> data;281 private transient List<UserInfo> data; 282 282 283 283 public UserTableModel() { -
trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java
r7949 r8308 78 78 79 79 private final JPopupMenu popupMenu = new JPopupMenu(); 80 private final PopupMenuHandler popupMenuHandler = new PopupMenuHandler(popupMenu);80 private final transient PopupMenuHandler popupMenuHandler = new PopupMenuHandler(popupMenu); 81 81 82 82 /** Last selected element */ 83 83 private DefaultMutableTreeNode lastSelectedNode = null; 84 84 85 private OsmDataLayer linkedLayer;85 private transient OsmDataLayer linkedLayer; 86 86 87 87 /** -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetCacheManagerModel.java
r7005 r8308 30 30 public static final String CHANGESET_IN_DETAIL_VIEW_PROP = ChangesetCacheManagerModel.class.getName() + ".changesetInDetailView"; 31 31 32 private final List<Changeset> data = new ArrayList<>();32 private final transient List<Changeset> data = new ArrayList<>(); 33 33 private DefaultListSelectionModel selectionModel; 34 private Changeset changesetInDetailView;34 private transient Changeset changesetInDetailView; 35 35 private final PropertyChangeSupport support = new PropertyChangeSupport(this); 36 36 -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetContentPanel.java
r7704 r8308 62 62 63 63 private ChangesetContentTableModel model; 64 private Changeset currentChangeset;64 private transient Changeset currentChangeset; 65 65 66 66 private DownloadChangesetContentAction actDownloadContentAction; … … 421 421 422 422 private JMultilineLabel lblMessage; 423 private Changeset current;423 private transient Changeset current; 424 424 425 425 protected final void build() { -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetContentTableModel.java
r7715 r8308 24 24 public class ChangesetContentTableModel extends AbstractTableModel { 25 25 26 private final List<ChangesetContentEntry> data = new ArrayList<>();26 private final transient List<ChangesetContentEntry> data = new ArrayList<>(); 27 27 private DefaultListSelectionModel selectionModel; 28 28 -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetDetailPanel.java
r7434 r8308 64 64 private final ZoomInCurrentLayerAction actZoomInCurrentLayerAction = new ZoomInCurrentLayerAction(); 65 65 66 private Changeset current = null;66 private transient Changeset current = null; 67 67 68 68 protected JPanel buildActionButtonPanel() { -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetDiscussionPanel.java
r7948 r8308 40 40 private JTable table; 41 41 42 private Changeset current = null;42 private transient Changeset current = null; 43 43 44 44 protected JPanel buildActionButtonPanel() { -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetDiscussionTableModel.java
r7937 r8308 15 15 public class ChangesetDiscussionTableModel extends AbstractTableModel { 16 16 17 private final List<ChangesetDiscussionComment> data = new ArrayList<>();17 private final transient List<ChangesetDiscussionComment> data = new ArrayList<>(); 18 18 19 19 @Override -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetListModel.java
r7005 r8308 22 22 23 23 public class ChangesetListModel extends DefaultListModel<Changeset> implements ChangesetCacheListener { 24 private final List<Changeset> data = new ArrayList<>();25 private final Storage<Changeset> shownChangesets = new Storage<>(true);24 private final transient List<Changeset> data = new ArrayList<>(); 25 private final transient Storage<Changeset> shownChangesets = new Storage<>(true); 26 26 private DefaultListSelectionModel selectionModel; 27 27 -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/AdvancedChangesetQueryPanel.java
r8291 r8308 379 379 private JRadioButton rbRestrictToUserName; 380 380 private JosmTextField tfUid; 381 private UidInputFieldValidator valUid;381 private transient UidInputFieldValidator valUid; 382 382 private JosmTextField tfUserName; 383 private UserNameInputValidator valUserName;383 private transient UserNameInputValidator valUserName; 384 384 private JMultilineLabel lblRestrictedToMyself; 385 385 … … 639 639 private JRadioButton rbClosedAfterAndCreatedBefore; 640 640 private JosmTextField tfClosedAfterDate1; 641 private DateValidator valClosedAfterDate1;641 private transient DateValidator valClosedAfterDate1; 642 642 private JosmTextField tfClosedAfterTime1; 643 private TimeValidator valClosedAfterTime1;643 private transient TimeValidator valClosedAfterTime1; 644 644 private JosmTextField tfClosedAfterDate2; 645 private DateValidator valClosedAfterDate2;645 private transient DateValidator valClosedAfterDate2; 646 646 private JosmTextField tfClosedAfterTime2; 647 private TimeValidator valClosedAfterTime2;647 private transient TimeValidator valClosedAfterTime2; 648 648 private JosmTextField tfCreatedBeforeDate; 649 private DateValidator valCreatedBeforeDate;649 private transient DateValidator valCreatedBeforeDate; 650 650 private JosmTextField tfCreatedBeforeTime; 651 private TimeValidator valCreatedBeforeTime;651 private transient TimeValidator valCreatedBeforeTime; 652 652 653 653 protected JPanel buildClosedAfterInputPanel() { -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/BasicChangesetQueryPanel.java
r7005 r8308 41 41 } 42 42 43 private Map<BasicQuery, JRadioButton> rbQueries;44 private Map<BasicQuery, JMultilineLabel> lblQueries;43 private transient Map<BasicQuery, JRadioButton> rbQueries; 44 private transient Map<BasicQuery, JMultilineLabel> lblQueries; 45 45 private JCheckBox cbMyChangesetsOnly; 46 46 -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r8304 r8308 153 153 154 154 // Popup menu handlers 155 private final PopupMenuHandler tagMenuHandler = new PopupMenuHandler(tagMenu);156 private final PopupMenuHandler membershipMenuHandler = new PopupMenuHandler(membershipMenu);157 private final PopupMenuHandler blankSpaceMenuHandler = new PopupMenuHandler(blankSpaceMenu);158 159 private final Map<String, Map<String, Integer>> valueCount = new TreeMap<>();155 private final transient PopupMenuHandler tagMenuHandler = new PopupMenuHandler(tagMenu); 156 private final transient PopupMenuHandler membershipMenuHandler = new PopupMenuHandler(membershipMenu); 157 private final transient PopupMenuHandler blankSpaceMenuHandler = new PopupMenuHandler(blankSpaceMenu); 158 159 private final transient Map<String, Map<String, Integer>> valueCount = new TreeMap<>(); 160 160 /** 161 161 * This sub-object is responsible for all adding and editing of tags 162 162 */ 163 private final TagEditHelper editHelper = new TagEditHelper(tagData, valueCount);164 165 private final DataSetListenerAdapter dataChangedAdapter = new DataSetListenerAdapter(this);163 private final transient TagEditHelper editHelper = new TagEditHelper(tagData, valueCount); 164 165 private final transient DataSetListenerAdapter dataChangedAdapter = new DataSetListenerAdapter(this); 166 166 private final HelpAction helpAction = new HelpAction(); 167 167 private final PasteValueAction pasteValueAction = new PasteValueAction(); … … 187 187 private final SelectMembersAction addMembersToSelectionAction = new SelectMembersAction(true); 188 188 189 private final HighlightHelper highlightHelper= new HighlightHelper();189 private final transient HighlightHelper highlightHelper= new HighlightHelper(); 190 190 191 191 /** … … 212 212 + tr("Select objects for which to change tags.") + "</p></html>"); 213 213 214 private final PresetHandler presetHandler = new PresetHandler() {214 private final transient PresetHandler presetHandler = new PresetHandler() { 215 215 @Override public void updateTags(List<Tag> tags) { 216 216 Command command = TaggingPreset.createCommand(getSelection(), tags); -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java
r8285 r8308 242 242 public final class EditTagDialog extends AbstractTagsDialog { 243 243 private final String key; 244 private final Map<String, Integer> m;245 246 private Comparator<AutoCompletionListItem> usedValuesAwareComparator = new Comparator<AutoCompletionListItem>() {244 private final transient Map<String, Integer> m; 245 246 private transient Comparator<AutoCompletionListItem> usedValuesAwareComparator = new Comparator<AutoCompletionListItem>() { 247 247 @Override 248 248 public int compare(AutoCompletionListItem o1, AutoCompletionListItem o2) { … … 258 258 }; 259 259 260 private ListCellRenderer<AutoCompletionListItem> cellRenderer = new ListCellRenderer<AutoCompletionListItem>() {260 private transient ListCellRenderer<AutoCompletionListItem> cellRenderer = new ListCellRenderer<AutoCompletionListItem>() { 261 261 private final DefaultListCellRenderer def = new DefaultListCellRenderer(); 262 262 @Override … … 532 532 533 533 class AddTagsDialog extends AbstractTagsDialog { 534 private List<JosmAction> recentTagsActions = new ArrayList<>();534 private transient List<JosmAction> recentTagsActions = new ArrayList<>(); 535 535 536 536 // Counter of added commands for possible undo -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ChildRelationBrowser.java
r8291 r8308 58 58 private RelationTree childTree; 59 59 /** the tree model */ 60 private RelationTreeModel model;60 private transient RelationTreeModel model; 61 61 62 62 /** the osm data layer this browser is related to */ 63 private OsmDataLayer layer;63 private transient OsmDataLayer layer; 64 64 65 65 /** -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberRoleCellEditor.java
r8005 r8308 16 16 public class MemberRoleCellEditor extends AbstractCellEditor implements TableCellEditor { 17 17 private AutoCompletingTextField editor = null; 18 private final DataSet ds;19 private final Relation relation;18 private final transient DataSet ds; 19 private final transient Relation relation; 20 20 21 21 /** user input is matched against this list of auto completion items */ -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTable.java
r8285 r8308 45 45 /** the additional actions in popup menu */ 46 46 private ZoomToGapAction zoomToGap; 47 private HighlightHelper highlightHelper = new HighlightHelper();47 private transient HighlightHelper highlightHelper = new HighlightHelper(); 48 48 private boolean highlightEnabled; 49 49 … … 122 122 } 123 123 124 private ListSelectionListener highlighterListener = new ListSelectionListener() {124 private transient ListSelectionListener highlighterListener = new ListSelectionListener() { 125 125 @Override 126 126 public void valueChanged(ListSelectionEvent lse) { … … 269 269 private class ZoomToGapAction extends AbstractAction implements LayerChangeListener, ListSelectionListener { 270 270 271 /** 272 * Constructs a new {@code ZoomToGapAction}. 273 */ 271 274 public ZoomToGapAction() { 272 275 putValue(NAME, tr("Zoom to Gap")); … … 279 282 } 280 283 281 private final Collection<Direction> connectionTypesOfInterest = Arrays.asList(WayConnectionType.Direction.FORWARD, WayConnectionType.Direction.BACKWARD); 284 private final transient Collection<Direction> connectionTypesOfInterest = Arrays.asList( 285 WayConnectionType.Direction.FORWARD, WayConnectionType.Direction.BACKWARD); 282 286 283 287 private boolean hasGap() { -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableLinkedCellRenderer.java
r8285 r8308 22 22 private static final Image roundabout_right = ImageProvider.get("dialogs/relation", "roundabout_right_tiny").getImage(); 23 23 private static final Image roundabout_left = ImageProvider.get("dialogs/relation", "roundabout_left_tiny").getImage(); 24 private WayConnectionType value = new WayConnectionType();24 private transient WayConnectionType value = new WayConnectionType(); 25 25 26 26 @Override -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableModel.java
r7552 r8308 49 49 * data of the table model: The list of members and the cached WayConnectionType of each member. 50 50 **/ 51 private List<RelationMember> members;52 private List<WayConnectionType> connectionType = null;51 private transient List<RelationMember> members; 52 private transient List<WayConnectionType> connectionType = null; 53 53 54 54 private DefaultListSelectionModel listSelectionModel; 55 55 private final CopyOnWriteArrayList<IMemberModelListener> listeners; 56 private final OsmDataLayer layer;57 private final PresetHandler presetHandler;58 59 private final WayConnectionTypeCalculator wayConnectionTypeCalculator = new WayConnectionTypeCalculator();60 private final RelationSorter relationSorter = new RelationSorter();56 private final transient OsmDataLayer layer; 57 private final transient PresetHandler presetHandler; 58 59 private final transient WayConnectionTypeCalculator wayConnectionTypeCalculator = new WayConnectionTypeCalculator(); 60 private final transient RelationSorter relationSorter = new RelationSorter(); 61 61 62 62 /** -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ReferringRelationsBrowser.java
r7005 r8308 38 38 private JList<Relation> referrers; 39 39 private ReferringRelationsBrowserModel model; 40 private OsmDataLayer layer;40 private transient OsmDataLayer layer; 41 41 private JCheckBox cbReadFull; 42 42 private EditAction editAction; -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ReferringRelationsBrowserModel.java
r7005 r8308 14 14 15 15 /** the relation */ 16 private Relation relation;17 private List<Relation> referrers;16 private transient Relation relation; 17 private transient List<Relation> referrers; 18 18 19 19 /** -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/RelationEditor.java
r8291 r8308 51 51 * The relation that this editor is working on. 52 52 */ 53 private Relation relation;53 private transient Relation relation; 54 54 55 55 /** 56 56 * The version of the relation when editing is started. This is 57 57 * null if a new relation is created. */ 58 private Relation relationSnapshot;58 private transient Relation relationSnapshot; 59 59 60 60 /** the data layer the relation belongs to */ 61 private OsmDataLayer layer;61 private transient OsmDataLayer layer; 62 62 63 63 /** -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/SelectionTableModel.java
r8291 r8308 19 19 20 20 /** this selection table model only displays selected primitives in this layer */ 21 private OsmDataLayer layer;22 private List<OsmPrimitive> cache;21 private transient OsmDataLayer layer; 22 private transient List<OsmPrimitive> cache; 23 23 24 24 /** -
trunk/src/org/openstreetmap/josm/gui/dialogs/validator/ValidatorTreePanel.java
r7270 r8308 61 61 62 62 /** The list of errors shown in the tree */ 63 private List<TestError> errors = new ArrayList<>();63 private transient List<TestError> errors = new ArrayList<>(); 64 64 65 65 /** … … 67 67 * that refer to one of the primitives in the filter. 68 68 */ 69 private Set<OsmPrimitive> filter = null;69 private transient Set<OsmPrimitive> filter = null; 70 70 71 71 /** a counter to check if tree has been rebuild */ -
trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java
r8215 r8308 70 70 71 71 protected SlippyMapChooser slippyMapChooser; 72 protected final List<DownloadSelection> downloadSelections = new ArrayList<>();72 protected final transient List<DownloadSelection> downloadSelections = new ArrayList<>(); 73 73 protected final JTabbedPane tpDownloadAreaSelectors = new JTabbedPane(); 74 74 protected JCheckBox cbNewLayer; 75 75 protected JCheckBox cbStartup; 76 76 protected final JLabel sizeCheck = new JLabel(); 77 protected Bounds currentBounds = null;77 protected transient Bounds currentBounds = null; 78 78 protected boolean canceled; 79 79 -
trunk/src/org/openstreetmap/josm/gui/download/PlaceSelection.java
r8304 r8308 328 328 private String searchExpression; 329 329 private HttpURLConnection connection; 330 private List<SearchResult> data;330 private transient List<SearchResult> data; 331 331 private boolean canceled = false; 332 332 private Server useserver; … … 409 409 410 410 static class NamedResultTableModel extends DefaultTableModel { 411 private List<SearchResult> data;412 private ListSelectionModel selectionModel;411 private transient List<SearchResult> data; 412 private transient ListSelectionModel selectionModel; 413 413 414 414 public NamedResultTableModel(ListSelectionModel selectionModel) { -
trunk/src/org/openstreetmap/josm/gui/help/HelpBrowser.java
r8126 r8308 114 114 115 115 /** the help browser history */ 116 private HelpBrowserHistory history;116 private transient HelpBrowserHistory history; 117 117 118 118 /** the currently displayed URL */ 119 119 private String url; 120 120 121 private HelpContentReader reader;121 private transient HelpContentReader reader; 122 122 123 123 private static final JosmAction focusAction = new JosmAction(tr("JOSM Help Browser"), "help", "", null, false, false) { … … 483 483 484 484 static class BackAction extends AbstractAction implements Observer { 485 private HelpBrowserHistory history;485 private transient HelpBrowserHistory history; 486 486 public BackAction(HelpBrowserHistory history) { 487 487 this.history = history; … … 503 503 504 504 static class ForwardAction extends AbstractAction implements Observer { 505 private HelpBrowserHistory history;505 private transient HelpBrowserHistory history; 506 506 public ForwardAction(HelpBrowserHistory history) { 507 507 this.history = history; -
trunk/src/org/openstreetmap/josm/gui/help/HelpContentReader.java
r8291 r8308 44 44 public String fetchHelpTopicContent(String helpTopicUrl, boolean dotest) throws HelpContentReaderException { 45 45 if(helpTopicUrl == null) 46 throw new MissingHelpContentException( helpTopicUrl);46 throw new MissingHelpContentException("helpTopicUrl is null"); 47 47 HttpURLConnection con = null; 48 48 try { -
trunk/src/org/openstreetmap/josm/gui/history/CoordinateInfoViewer.java
r8291 r8308 32 32 33 33 /** the model */ 34 private HistoryBrowserModel model;34 private transient HistoryBrowserModel model; 35 35 /** the common info panel for the history node in role REFERENCE_POINT_IN_TIME */ 36 36 private VersionInfoPanel referenceInfoPanel; … … 171 171 private JLabel lblLat; 172 172 private JLabel lblLon; 173 private HistoryBrowserModel model;173 private transient HistoryBrowserModel model; 174 174 private PointInTimeType role; 175 175 -
trunk/src/org/openstreetmap/josm/gui/history/DiffTableModel.java
r8219 r8308 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.history; 3 4 import static org.openstreetmap.josm.tools.I18n.tr;5 3 6 4 import java.util.ArrayList; … … 16 14 */ 17 15 class DiffTableModel extends AbstractTableModel { 18 private List<TwoColumnDiff.Item> rows = new ArrayList<>();16 private transient List<TwoColumnDiff.Item> rows = new ArrayList<>(); 19 17 private boolean reversed = false; 20 18 -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowser.java
r6666 r8308 24 24 25 25 /** the model */ 26 private HistoryBrowserModel model;26 private transient HistoryBrowserModel model; 27 27 private TagInfoViewer tagInfoViewer; 28 28 private NodeListViewer nodeListViewer; -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
r8291 r8308 531 531 public class TagTableModel extends AbstractTableModel { 532 532 533 private List<String> keys;533 private transient List<String> keys; 534 534 private PointInTimeType pointInTimeType; 535 535 -
trunk/src/org/openstreetmap/josm/gui/history/HistoryViewerPanel.java
r7937 r8308 17 17 */ 18 18 public abstract class HistoryViewerPanel extends JPanel { 19 20 protected HistoryBrowserModel model;19 20 protected transient HistoryBrowserModel model; 21 21 protected VersionInfoPanel referenceInfoPanel; 22 22 protected VersionInfoPanel currentInfoPanel; 23 protected AdjustmentSynchronizer adjustmentSynchronizer;24 protected SelectionSynchronizer selectionSynchronizer;23 protected transient AdjustmentSynchronizer adjustmentSynchronizer; 24 protected transient SelectionSynchronizer selectionSynchronizer; 25 25 26 26 protected HistoryViewerPanel(HistoryBrowserModel model) { … … 28 28 build(); 29 29 } 30 30 31 31 private JScrollPane embedInScrollPane(JTable table) { 32 32 JScrollPane pane = new JScrollPane(table); … … 34 34 return pane; 35 35 } 36 36 37 37 /** 38 38 * Sets the history browsing model. … … 48 48 } 49 49 } 50 50 51 51 protected final void unregisterAsObserver(HistoryBrowserModel model) { 52 52 if (currentInfoPanel != null) { … … 57 57 } 58 58 } 59 59 60 60 protected final void registerAsObserver(HistoryBrowserModel model) { 61 61 if (currentInfoPanel != null) { … … 66 66 } 67 67 } 68 68 69 69 protected abstract JTable buildReferenceTable(); 70 70 71 71 protected abstract JTable buildCurrentTable(); 72 72 73 73 private void build() { 74 74 setLayout(new GridBagLayout()); -
trunk/src/org/openstreetmap/josm/gui/history/NodeListViewer.java
r8285 r8308 48 48 public class NodeListViewer extends JPanel { 49 49 50 private HistoryBrowserModel model;50 private transient HistoryBrowserModel model; 51 51 private VersionInfoPanel referenceInfoPanel; 52 52 private VersionInfoPanel currentInfoPanel; 53 private AdjustmentSynchronizer adjustmentSynchronizer;54 private SelectionSynchronizer selectionSynchronizer;53 private transient AdjustmentSynchronizer adjustmentSynchronizer; 54 private transient SelectionSynchronizer selectionSynchronizer; 55 55 private NodeListPopupMenu popupMenu; 56 56 … … 215 215 216 216 static class ZoomToNodeAction extends AbstractAction { 217 private PrimitiveId primitiveId; 218 217 private transient PrimitiveId primitiveId; 218 219 /** 220 * Constructs a new {@code ZoomToNodeAction}. 221 */ 219 222 public ZoomToNodeAction() { 220 223 putValue(NAME, tr("Zoom to node")); … … 258 261 259 262 static class ShowHistoryAction extends AbstractAction { 260 private PrimitiveId primitiveId; 261 263 private transient PrimitiveId primitiveId; 264 265 /** 266 * Constructs a new {@code ShowHistoryAction}. 267 */ 262 268 public ShowHistoryAction() { 263 269 putValue(NAME, tr("Show history")); -
trunk/src/org/openstreetmap/josm/gui/history/RelationMemberListTableCellRenderer.java
r7005 r8308 31 31 public static final Color BGCOLOR_SELECTED = new Color(143,170,255); 32 32 33 private Map<OsmPrimitiveType, ImageIcon> icons;33 private transient Map<OsmPrimitiveType, ImageIcon> icons; 34 34 35 35 /** -
trunk/src/org/openstreetmap/josm/gui/history/VersionInfoPanel.java
r8304 r8308 46 46 public class VersionInfoPanel extends JPanel implements Observer{ 47 47 private PointInTimeType pointInTimeType; 48 private HistoryBrowserModel model;48 private transient HistoryBrowserModel model; 49 49 private JMultilineLabel lblInfo; 50 50 private UrlLabel lblUser; -
trunk/src/org/openstreetmap/josm/gui/history/VersionTable.java
r7933 r8308 46 46 public class VersionTable extends JTable implements Observer{ 47 47 private VersionTablePopupMenu popupMenu; 48 private final HistoryBrowserModel model;48 private final transient HistoryBrowserModel model; 49 49 50 50 protected void build() { … … 148 148 149 149 static class ChangesetInfoAction extends AbstractInfoAction { 150 private HistoryOsmPrimitive primitive; 151 150 private transient HistoryOsmPrimitive primitive; 151 152 /** 153 * Constructs a new {@code ChangesetInfoAction}. 154 */ 152 155 public ChangesetInfoAction() { 153 156 super(true); … … 178 181 179 182 static class UserInfoAction extends AbstractInfoAction { 180 private HistoryOsmPrimitive primitive; 181 183 private transient HistoryOsmPrimitive primitive; 184 185 /** 186 * Constructs a new {@code UserInfoAction}. 187 */ 182 188 public UserInfoAction() { 183 189 super(true); -
trunk/src/org/openstreetmap/josm/gui/io/ActionFlagsTableCell.java
r7937 r8308 38 38 class ActionFlagsTableCell extends JPanel implements TableCellRenderer, TableCellEditor { 39 39 private final JCheckBox[] checkBoxes = new JCheckBox[2]; 40 private final CellEditorSupport cellEditorSupport = new CellEditorSupport(this);40 private final transient CellEditorSupport cellEditorSupport = new CellEditorSupport(this); 41 41 42 private ActionListener al = new ActionListener() {42 private transient ActionListener al = new ActionListener() { 43 43 @Override 44 44 public void actionPerformed(ActionEvent e) { -
trunk/src/org/openstreetmap/josm/gui/io/BasicUploadSettingsPanel.java
r8291 r8308 49 49 private final UploadParameterSummaryPanel pnlUploadParameterSummary = new UploadParameterSummaryPanel(); 50 50 /** the changeset comment model */ 51 private final ChangesetCommentModel changesetCommentModel;52 private final ChangesetCommentModel changesetSourceModel;51 private final transient ChangesetCommentModel changesetCommentModel; 52 private final transient ChangesetCommentModel changesetSourceModel; 53 53 54 54 protected JPanel buildUploadCommentPanel() { -
trunk/src/org/openstreetmap/josm/gui/io/ChangesetManagementPanel.java
r8291 r8308 56 56 private JCheckBox cbCloseAfterUpload; 57 57 private OpenChangesetComboBoxModel model; 58 private ChangesetCommentModel changesetCommentModel;58 private transient ChangesetCommentModel changesetCommentModel; 59 59 60 60 /** -
trunk/src/org/openstreetmap/josm/gui/io/LayerNameAndFilePathTableCell.java
r7937 r8308 42 42 private static final GBC defaultCellStyle = GBC.eol().fill(GBC.HORIZONTAL).insets(2, 0, 2, 0); 43 43 44 private final CellEditorSupport cellEditorSupport = new CellEditorSupport(this);44 private final transient CellEditorSupport cellEditorSupport = new CellEditorSupport(this); 45 45 private File value; 46 46 -
trunk/src/org/openstreetmap/josm/gui/io/OpenChangesetComboBoxModel.java
r7017 r8308 18 18 */ 19 19 public class OpenChangesetComboBoxModel extends DefaultComboBoxModel<Changeset> implements ChangesetCacheListener { 20 private List<Changeset> changesets;21 private Changeset selectedChangeset = null;20 private transient List<Changeset> changesets; 21 private transient Changeset selectedChangeset = null; 22 22 23 23 protected Changeset getChangesetById(long id) { -
trunk/src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java
r8285 r8308 68 68 private DiscardAndProceedAction discardAndProceedAction; 69 69 private CancelAction cancelAction; 70 private SaveAndUploadTask saveAndUploadTask;70 private transient SaveAndUploadTask saveAndUploadTask; 71 71 72 72 /** … … 368 368 private static final int is = 24; // icon size 369 369 private static final String BASE_ICON = "BASE_ICON"; 370 private final Image save = ImageProvider.get("save").getImage();371 private final Image upld = ImageProvider.get("upload").getImage();372 private final Image saveDis = new BufferedImage(is, is, BufferedImage.TYPE_4BYTE_ABGR);373 private final Image upldDis = new BufferedImage(is, is, BufferedImage.TYPE_4BYTE_ABGR);370 private final transient Image save = ImageProvider.get("save").getImage(); 371 private final transient Image upld = ImageProvider.get("upload").getImage(); 372 private final transient Image saveDis = new BufferedImage(is, is, BufferedImage.TYPE_4BYTE_ABGR); 373 private final transient Image upldDis = new BufferedImage(is, is, BufferedImage.TYPE_4BYTE_ABGR); 374 374 375 375 public SaveAndProceedAction() { -
trunk/src/org/openstreetmap/josm/gui/io/SaveLayersModel.java
r7402 r8308 22 22 } 23 23 24 private List<SaveLayerInfo> layerInfo;24 private transient List<SaveLayerInfo> layerInfo; 25 25 private Mode mode; 26 26 private PropertyChangeSupport support; -
trunk/src/org/openstreetmap/josm/gui/io/TagSettingsPanel.java
r8291 r8308 24 24 private final TagEditorPanel pnlTagEditor = new TagEditorPanel(null); 25 25 /** the model for the changeset comment */ 26 private final ChangesetCommentModel changesetCommentModel;27 private final ChangesetCommentModel changesetSourceModel;26 private final transient ChangesetCommentModel changesetCommentModel; 27 private final transient ChangesetCommentModel changesetSourceModel; 28 28 /** tags that applied to uploaded changesets by default*/ 29 private final Map<String, String> defaultTags = new HashMap<>();29 private final transient Map<String, String> defaultTags = new HashMap<>(); 30 30 31 31 protected void build() { -
trunk/src/org/openstreetmap/josm/gui/io/UploadDialog.java
r8177 r8308 98 98 99 99 /** the changeset comment model keeping the state of the changeset comment */ 100 private final ChangesetCommentModel changesetCommentModel = new ChangesetCommentModel();101 private final ChangesetCommentModel changesetSourceModel = new ChangesetCommentModel();100 private final transient ChangesetCommentModel changesetCommentModel = new ChangesetCommentModel(); 101 private final transient ChangesetCommentModel changesetSourceModel = new ChangesetCommentModel(); 102 102 103 103 /** -
trunk/src/org/openstreetmap/josm/gui/io/UploadParameterSummaryPanel.java
r8061 r8308 22 22 // FIXME this class should extend HtmlPanel instead (duplicated code in here) 23 23 public class UploadParameterSummaryPanel extends JPanel implements HyperlinkListener, PropertyChangeListener{ 24 private UploadStrategySpecification spec = new UploadStrategySpecification();24 private transient UploadStrategySpecification spec = new UploadStrategySpecification(); 25 25 private int numObjects; 26 26 private JMultilineLabel jepMessage; 27 27 private JLabel lblWarning; 28 28 29 private Changeset selectedChangeset;29 private transient Changeset selectedChangeset; 30 30 private boolean closeChangesetAfterNextUpload; 31 private ConfigurationParameterRequestHandler configHandler;31 private transient ConfigurationParameterRequestHandler configHandler; 32 32 33 33 protected String buildChangesetSummary() { -
trunk/src/org/openstreetmap/josm/gui/io/UploadSelectionDialog.java
r7005 r8308 194 194 195 195 static class OsmPrimitiveListModel extends AbstractListModel<OsmPrimitive> { 196 private List<OsmPrimitive> data;196 private transient List<OsmPrimitive> data; 197 197 198 198 public OsmPrimitiveListModel() { -
trunk/src/org/openstreetmap/josm/gui/io/UploadStrategySelectionPanel.java
r7801 r8308 51 51 private static final Color BG_COLOR_ERROR = new Color(255,224,224); 52 52 53 private Map<UploadStrategy, JRadioButton> rbStrategy;54 private Map<UploadStrategy, JLabel> lblNumRequests;55 private Map<UploadStrategy, JMultilineLabel> lblStrategies;53 private transient Map<UploadStrategy, JRadioButton> rbStrategy; 54 private transient Map<UploadStrategy, JLabel> lblNumRequests; 55 private transient Map<UploadStrategy, JMultilineLabel> lblStrategies; 56 56 private JosmTextField tfChunkSize; 57 57 private JPanel pnlMultiChangesetPolicyPanel; -
trunk/src/org/openstreetmap/josm/gui/io/UploadedObjectsSummaryPanel.java
r7005 r8308 155 155 */ 156 156 static class PrimitiveListModel extends AbstractListModel<OsmPrimitive> { 157 private List<OsmPrimitive> primitives;157 private transient List<OsmPrimitive> primitives; 158 158 159 159 public PrimitiveListModel() { -
trunk/src/org/openstreetmap/josm/gui/layer/CustomizeColor.java
r8285 r8308 23 23 24 24 public class CustomizeColor extends AbstractAction implements LayerAction, MultiLayerAction { 25 private List<Layer> layers;25 private transient List<Layer> layers; 26 26 27 27 public CustomizeColor(List<Layer> l) { -
trunk/src/org/openstreetmap/josm/gui/layer/ImageryLayer.java
r7463 r8308 159 159 160 160 class ApplyOffsetAction extends AbstractAction { 161 private OffsetBookmark b;161 private transient OffsetBookmark b; 162 162 ApplyOffsetAction(OffsetBookmark b) { 163 163 super(b.name); -
trunk/src/org/openstreetmap/josm/gui/layer/JumpToMarkerActions.java
r8126 r8308 44 44 private abstract static class JumpToMarker extends AbstractAction implements MultikeyShortcutAction { 45 45 46 private final Layer layer;47 private final Shortcut multikeyShortcut;48 private WeakReference<Layer> lastLayer;46 private final transient Layer layer; 47 private final transient Shortcut multikeyShortcut; 48 private transient WeakReference<Layer> lastLayer; 49 49 50 50 public JumpToMarker(JumpToMarkerLayer layer, Shortcut shortcut) { -
trunk/src/org/openstreetmap/josm/gui/layer/Layer.java
r7358 r8308 380 380 */ 381 381 public static class LayerSaveAction extends AbstractAction { 382 private Layer layer;382 private final transient Layer layer; 383 383 public LayerSaveAction(Layer layer) { 384 384 putValue(SMALL_ICON, ImageProvider.get("save")); … … 396 396 397 397 public static class LayerSaveAsAction extends AbstractAction { 398 private Layer layer;398 private final transient Layer layer; 399 399 public LayerSaveAsAction(Layer layer) { 400 400 putValue(SMALL_ICON, ImageProvider.get("save_as")); … … 412 412 413 413 public static class LayerGpxExportAction extends AbstractAction { 414 private Layer layer;414 private final transient Layer layer; 415 415 public LayerGpxExportAction(Layer layer) { 416 416 putValue(SMALL_ICON, ImageProvider.get("exportgpx")); -
trunk/src/org/openstreetmap/josm/gui/layer/WMSLayer.java
r8068 r8308 128 128 protected boolean autoResolutionEnabled = PROP_DEFAULT_AUTOZOOM.get(); 129 129 protected boolean settingsChanged; 130 public WmsCache cache;131 private AttributionSupport attribution = new AttributionSupport();130 public transient WmsCache cache; 131 private transient AttributionSupport attribution = new AttributionSupport(); 132 132 133 133 // Image index boundary for current view … … 140 140 141 141 // Request queue 142 private final List<WMSRequest> requestQueue = new ArrayList<>();143 private final List<WMSRequest> finishedRequests = new ArrayList<>();142 private final transient List<WMSRequest> requestQueue = new ArrayList<>(); 143 private final transient List<WMSRequest> finishedRequests = new ArrayList<>(); 144 144 /** 145 145 * List of request currently being processed by download threads 146 146 */ 147 private final List<WMSRequest> processingRequests = new ArrayList<>();148 private final Lock requestQueueLock = new ReentrantLock();149 private final Condition queueEmpty = requestQueueLock.newCondition();150 private final List<WMSGrabber> grabbers = new ArrayList<>();151 private final List<Thread> grabberThreads = new ArrayList<>();147 private final transient List<WMSRequest> processingRequests = new ArrayList<>(); 148 private final transient Lock requestQueueLock = new ReentrantLock(); 149 private final transient Condition queueEmpty = requestQueueLock.newCondition(); 150 private final transient List<WMSGrabber> grabbers = new ArrayList<>(); 151 private final transient List<Thread> grabberThreads = new ArrayList<>(); 152 152 private boolean canceled; 153 153 -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r8285 r8308 91 91 private static List<GpxData> loadedGpxData = new ArrayList<>(); 92 92 93 private GeoImageLayer yLayer = null;93 private transient GeoImageLayer yLayer = null; 94 94 private double timezone; 95 95 private long delta; … … 122 122 123 123 private ExtendedDialog syncDialog; 124 private List<GpxDataWrapper> gpxLst = new ArrayList<>();124 private transient List<GpxDataWrapper> gpxLst = new ArrayList<>(); 125 125 private JPanel outerPanel; 126 126 private JosmComboBox<GpxDataWrapper> cbGpx; … … 764 764 } 765 765 766 private StatusBarUpdater statusBarUpdater = new StatusBarUpdater(false);767 private StatusBarUpdater statusBarUpdaterWithRepaint = new StatusBarUpdater(true);766 private transient StatusBarUpdater statusBarUpdater = new StatusBarUpdater(false); 767 private transient StatusBarUpdater statusBarUpdaterWithRepaint = new StatusBarUpdater(true); 768 768 769 769 private class StatusBarUpdater implements DocumentListener, ItemListener, ActionListener { … … 835 835 } 836 836 837 private RepaintTheMapListener repaintTheMap = new RepaintTheMapListener();837 private transient RepaintTheMapListener repaintTheMap = new RepaintTheMapListener(); 838 838 private class RepaintTheMapListener implements FocusListener { 839 839 @Override -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java
r8285 r8308 35 35 36 36 /** The image currently displayed */ 37 private Image image = null;37 private transient Image image = null; 38 38 39 39 /** The image currently displayed */ -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java
r8126 r8308 274 274 } 275 275 276 private GeoImageLayer currentLayer = null;277 private ImageEntry currentEntry = null;276 private transient GeoImageLayer currentLayer = null; 277 private transient ImageEntry currentEntry = null; 278 278 279 279 public void displayImage(GeoImageLayer layer, ImageEntry entry) { -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ShowThumbnailAction.java
r7954 r8308 7 7 import java.awt.event.ActionEvent; 8 8 import java.util.List; 9 9 10 import javax.swing.AbstractAction; 10 11 import javax.swing.JCheckBoxMenuItem; … … 21 22 public class ShowThumbnailAction extends AbstractAction implements LayerAction { 22 23 23 private final GeoImageLayer layer;24 private final transient GeoImageLayer layer; 24 25 25 26 /** -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/ChooseTrackVisibilityAction.java
r8285 r8308 13 13 import java.awt.event.MouseEvent; 14 14 import java.awt.event.MouseListener; 15 import java.io.Serializable; 15 16 import java.util.Arrays; 16 17 import java.util.Comparator; … … 47 48 */ 48 49 public class ChooseTrackVisibilityAction extends AbstractAction { 49 private final GpxLayer layer;50 private final transient GpxLayer layer; 50 51 51 52 private DateFilterPanel dateFilter; … … 89 90 * Comparator for TrackLength objects 90 91 */ 91 private static final class LengthContentComparator implements Comparator<TrackLength> { 92 private static final class LengthContentComparator implements Comparator<TrackLength>, Serializable { 93 94 private static final long serialVersionUID = 1L; 92 95 93 96 /** -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/ConvertToDataLayerAction.java
r7937 r8308 32 32 33 33 public class ConvertToDataLayerAction extends AbstractAction { 34 private final GpxLayer layer;34 private final transient GpxLayer layer; 35 35 36 36 public ConvertToDataLayerAction(final GpxLayer layer) { -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/CustomizeDrawingAction.java
r8285 r8308 29 29 30 30 public class CustomizeDrawingAction extends AbstractAction implements LayerAction, MultiLayerAction { 31 private List<Layer> layers;31 private transient List<Layer> layers; 32 32 33 33 public CustomizeDrawingAction(List<Layer> l) { -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/DateFilterPanel.java
r8285 r8308 26 26 private DateEditorWithSlider dateTo = new DateEditorWithSlider(tr("To")); 27 27 private JCheckBox noTimestampCb = new JCheckBox(tr("No timestamp")); 28 private GpxLayer layer;28 private transient GpxLayer layer; 29 29 30 private ActionListener filterAppliedListener;30 private transient ActionListener filterAppliedListener; 31 31 32 32 private final String PREF_DATE_0; … … 67 67 } 68 68 69 private ChangeListener changeListener = new ChangeListener() {69 private transient ChangeListener changeListener = new ChangeListener() { 70 70 @Override public void stateChanged(ChangeEvent e) { 71 71 if (isEnabled()) applyFilterWithDelay(); -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/DownloadAlongTrackAction.java
r8285 r8308 37 37 private static final String PREF_DOWNLOAD_ALONG_TRACK_NEAR = "downloadAlongTrack.near"; 38 38 39 private final GpxData data;39 private final transient GpxData data; 40 40 41 41 /** -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/DownloadWmsAlongTrackAction.java
r7937 r8308 37 37 public class DownloadWmsAlongTrackAction extends AbstractAction { 38 38 39 private final GpxData data;39 private final transient GpxData data; 40 40 41 41 public DownloadWmsAlongTrackAction(final GpxData data) { -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/ImportAudioAction.java
r7937 r8308 40 40 */ 41 41 public class ImportAudioAction extends AbstractAction { 42 private final GpxLayer layer;42 private final transient GpxLayer layer; 43 43 44 44 private static class Markers { -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/ImportImagesAction.java
r7937 r8308 24 24 25 25 public class ImportImagesAction extends AbstractAction { 26 private final GpxLayer layer;26 private final transient GpxLayer layer; 27 27 28 28 public ImportImagesAction(final GpxLayer layer) { -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/MarkersFromNamedPointsAction.java
r7937 r8308 19 19 20 20 public class MarkersFromNamedPointsAction extends AbstractAction { 21 private final GpxLayer layer;21 private final transient GpxLayer layer; 22 22 23 23 public MarkersFromNamedPointsAction(final GpxLayer layer) { -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/MarkerLayer.java
r7518 r8308 468 468 469 469 public static final class ShowHideMarkerText extends AbstractAction implements LayerAction { 470 private final MarkerLayer layer;470 private final transient MarkerLayer layer; 471 471 472 472 public ShowHideMarkerText(MarkerLayer layer) { -
trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintMenu.java
r8097 r8308 30 30 private static class MapPaintAction extends JosmAction { 31 31 32 private StyleSource style;32 private transient StyleSource style; 33 33 private JCheckBoxMenuItem button; 34 34 … … 78 78 } 79 79 } 80 private final Map<String, MapPaintAction> actions = new HashMap<>();80 private final transient Map<String, MapPaintAction> actions = new HashMap<>(); 81 81 82 82 /** -
trunk/src/org/openstreetmap/josm/gui/oauth/AbstractAuthorizationUI.java
r8291 r8308 7 7 import org.openstreetmap.josm.gui.widgets.VerticallyScrollablePanel; 8 8 import org.openstreetmap.josm.tools.CheckParameterUtil; 9 10 import com.sun.org.apache.xerces.internal.utils.Objects; 9 11 10 12 /** … … 21 23 private String apiUrl; 22 24 private final AdvancedOAuthPropertiesPanel pnlAdvancedProperties; 23 private OAuthToken accessToken;25 private transient OAuthToken accessToken; 24 26 25 27 protected void fireAccessTokenChanged(OAuthToken oldValue, OAuthToken newValue) { … … 99 101 } else if (oldValue == null && this.accessToken == null) { 100 102 // no change - don't fire an event 101 } else if (! oldValue.equals(this.accessToken)) {103 } else if (!Objects.equals(oldValue, this.accessToken)) { 102 104 fireAccessTokenChanged(oldValue, this.accessToken); 103 105 } -
trunk/src/org/openstreetmap/josm/gui/oauth/AdvancedOAuthPropertiesPanel.java
r8291 r8308 48 48 private JosmTextField tfAccessTokenURL; 49 49 private JosmTextField tfAuthoriseURL; 50 private UseDefaultItemListener ilUseDefault;50 private transient UseDefaultItemListener ilUseDefault; 51 51 private String apiUrl; 52 52 -
trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorizationUI.java
r7771 r8308 60 60 private JosmTextField tfUserName; 61 61 private JosmPasswordField tfPassword; 62 private UserNameValidator valUserName;63 private PasswordValidator valPassword;62 private transient UserNameValidator valUserName; 63 private transient PasswordValidator valPassword; 64 64 private AccessTokenInfoPanel pnlAccessTokenInfo; 65 65 private OsmPrivilegesPanel pnlOsmPrivileges; -
trunk/src/org/openstreetmap/josm/gui/oauth/ManualAuthorizationUI.java
r8291 r8308 42 42 43 43 private JosmTextField tfAccessTokenKey; 44 private AccessTokenKeyValidator valAccessTokenKey;44 private transient AccessTokenKeyValidator valAccessTokenKey; 45 45 private JosmTextField tfAccessTokenSecret; 46 private AccessTokenSecretValidator valAccessTokenSecret;46 private transient AccessTokenSecretValidator valAccessTokenSecret; 47 47 private JCheckBox cbSaveToPreferences; 48 48 private HtmlPanel pnlMessage; -
trunk/src/org/openstreetmap/josm/gui/oauth/OAuthAuthorizationWizard.java
r8291 r8308 333 333 334 334 class AcceptAccessTokenAction extends AbstractAction implements PropertyChangeListener { 335 private OAuthToken token;335 private transient OAuthToken token; 336 336 337 337 public AcceptAccessTokenAction() { -
trunk/src/org/openstreetmap/josm/gui/oauth/SemiAutomaticAuthorizationUI.java
r6890 r8308 28 28 import org.openstreetmap.josm.gui.widgets.HtmlPanel; 29 29 import org.openstreetmap.josm.gui.widgets.JMultilineLabel; 30 import org.openstreetmap.josm.gui.widgets.JosmTextField; 30 31 import org.openstreetmap.josm.tools.ImageProvider; 31 32 import org.openstreetmap.josm.tools.OpenBrowser; 32 import org.openstreetmap.josm.gui.widgets.JosmTextField;33 33 34 34 /** … … 42 42 public class SemiAutomaticAuthorizationUI extends AbstractAuthorizationUI { 43 43 private AccessTokenInfoPanel pnlAccessTokenInfo; 44 private OAuthToken requestToken;44 private transient OAuthToken requestToken; 45 45 46 46 private RetrieveRequestTokenPanel pnlRetrieveRequestToken; -
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java
r8285 r8308 92 92 93 93 public static final class PreferencePanel extends JPanel implements PreferenceTab { 94 private final TabPreferenceSetting preferenceSetting;94 private final transient TabPreferenceSetting preferenceSetting; 95 95 96 96 private PreferencePanel(TabPreferenceSetting preferenceSetting) { … … 122 122 123 123 public static final class PreferenceScrollPane extends JScrollPane implements PreferenceTab { 124 private final TabPreferenceSetting preferenceSetting;124 private final transient TabPreferenceSetting preferenceSetting; 125 125 126 126 private PreferenceScrollPane(Component view, TabPreferenceSetting preferenceSetting) { … … 145 145 146 146 // all created tabs 147 private final List<PreferenceTab> tabs = new ArrayList<>();147 private final transient List<PreferenceTab> tabs = new ArrayList<>(); 148 148 private static final Collection<PreferenceSettingFactory> settingsFactories = new LinkedList<>(); 149 149 private static final PreferenceSettingFactory advancedPreferenceFactory = new AdvancedPreference.Factory(); 150 private final List<PreferenceSetting> settings = new ArrayList<>();150 private final transient List<PreferenceSetting> settings = new ArrayList<>(); 151 151 152 152 // distinct list of tabs that have been initialized (we do not initialize tabs until they are displayed to speed up dialog startup) 153 private final List<PreferenceSetting> settingsInitialized = new ArrayList<>();154 155 final List<ValidationListener> validationListeners = new ArrayList<>();153 private final transient List<PreferenceSetting> settingsInitialized = new ArrayList<>(); 154 155 final transient List<ValidationListener> validationListeners = new ArrayList<>(); 156 156 157 157 /** -
trunk/src/org/openstreetmap/josm/gui/preferences/SourceEditor.java
r8285 r8308 111 111 protected final AvailableSourcesListModel availableSourcesModel; 112 112 protected final String availableSourcesUrl; 113 protected final List<SourceProvider> sourceProviders;113 protected final transient List<SourceProvider> sourceProviders; 114 114 115 115 protected JTable tblIconPaths; … … 447 447 448 448 protected static class AvailableSourcesListModel extends DefaultListModel<ExtendedSourceEntry> { 449 private List<ExtendedSourceEntry> data;449 private transient List<ExtendedSourceEntry> data; 450 450 private DefaultListSelectionModel selectionModel; 451 451 … … 499 499 500 500 protected class ActiveSourcesModel extends AbstractTableModel { 501 private List<SourceEntry> data;501 private transient List<SourceEntry> data; 502 502 private DefaultListSelectionModel selectionModel; 503 503 … … 1037 1037 class ReloadSourcesAction extends AbstractAction { 1038 1038 private final String url; 1039 private final List<SourceProvider> sourceProviders;1039 private final transient List<SourceProvider> sourceProviders; 1040 1040 public ReloadSourcesAction(String url, List<SourceProvider> sourceProviders) { 1041 1041 putValue(NAME, tr("Reload")); … … 1055 1055 1056 1056 protected static class IconPathTableModel extends AbstractTableModel { 1057 private List<String> data;1057 private transient List<String> data; 1058 1058 private DefaultListSelectionModel selectionModel; 1059 1059 … … 1240 1240 class SourceLoader extends PleaseWaitRunnable { 1241 1241 private final String url; 1242 private final List<SourceProvider> sourceProviders;1242 private final transient List<SourceProvider> sourceProviders; 1243 1243 private BufferedReader reader; 1244 1244 private boolean canceled; -
trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
r8285 r8308 313 313 private static class ActionParametersTableModel extends AbstractTableModel { 314 314 315 private ActionDefinition currentAction = ActionDefinition.getSeparator();315 private transient ActionDefinition currentAction = ActionDefinition.getSeparator(); 316 316 317 317 @Override … … 393 393 394 394 private class ToolbarPopupMenu extends JPopupMenu { 395 private ActionDefinition act;395 private transient ActionDefinition act; 396 396 397 397 private void setActionAndAdapt(ActionDefinition action) { -
trunk/src/org/openstreetmap/josm/gui/preferences/advanced/AdvancedPreference.java
r8285 r8308 357 357 public void menuSelected(MenuEvent me) { 358 358 p.removeAll(); 359 for (File f: new File(".").listFiles()) { 360 String s = f.getName(); 361 int idx = s.indexOf('_'); 362 if (idx>=0) { 363 String t=s.substring(0,idx); 364 if (profileTypes.containsKey(t)) { 365 p.add(new ImportProfileAction(s, f, t)); 366 } 367 } 368 } 369 for (File f: Main.pref.getPreferencesDirectory().listFiles()) { 370 String s = f.getName(); 371 int idx = s.indexOf('_'); 372 if (idx>=0) { 373 String t=s.substring(0,idx); 374 if (profileTypes.containsKey(t)) { 375 p.add(new ImportProfileAction(s, f, t)); 376 } 377 } 378 } 379 } 380 @Override public void menuDeselected(MenuEvent me) { } 381 @Override public void menuCanceled(MenuEvent me) { } 359 File[] files = new File(".").listFiles(); 360 if (files != null) { 361 for (File f: files) { 362 String s = f.getName(); 363 int idx = s.indexOf('_'); 364 if (idx>=0) { 365 String t=s.substring(0,idx); 366 if (profileTypes.containsKey(t)) { 367 p.add(new ImportProfileAction(s, f, t)); 368 } 369 } 370 } 371 } 372 files = Main.pref.getPreferencesDirectory().listFiles(); 373 if (files != null) { 374 for (File f: files) { 375 String s = f.getName(); 376 int idx = s.indexOf('_'); 377 if (idx>=0) { 378 String t=s.substring(0,idx); 379 if (profileTypes.containsKey(t)) { 380 p.add(new ImportProfileAction(s, f, t)); 381 } 382 } 383 } 384 } 385 } 386 @Override 387 public void menuDeselected(MenuEvent me) { 388 // Not implemented 389 } 390 @Override 391 public void menuCanceled(MenuEvent me) { 392 // Not implemented 393 } 382 394 }); 383 395 return p; -
trunk/src/org/openstreetmap/josm/gui/preferences/advanced/ExportProfileAction.java
r7937 r8308 28 28 private final String prefPattern; 29 29 private final String schemaKey; 30 private final Preferences prefs;30 private final transient Preferences prefs; 31 31 32 32 /** -
trunk/src/org/openstreetmap/josm/gui/preferences/advanced/ListEditor.java
r8285 r8308 30 30 public class ListEditor extends ExtendedDialog { 31 31 32 private List<String> data;33 private PrefEntry entry;32 private transient List<String> data; 33 private transient PrefEntry entry; 34 34 35 35 /** -
trunk/src/org/openstreetmap/josm/gui/preferences/advanced/ListListEditor.java
r8285 r8308 39 39 40 40 private EntryListModel entryModel; 41 private List<List<String>> data;42 private PrefEntry entry;41 private transient List<List<String>> data; 42 private transient PrefEntry entry; 43 43 44 44 private JList<String> entryList; -
trunk/src/org/openstreetmap/josm/gui/preferences/advanced/MapListEditor.java
r8285 r8308 43 43 44 44 private EntryListModel entryModel; 45 private PrefEntry entry;45 private transient PrefEntry entry; 46 46 47 47 private JList<String> entryList; … … 49 49 private MapTableModel tableModel; 50 50 51 private List<List<String>> dataKeys;52 private List<List<String>> dataValues;51 private transient List<List<String>> dataKeys; 52 private transient List<List<String>> dataValues; 53 53 private Integer entryIdx; 54 54 -
trunk/src/org/openstreetmap/josm/gui/preferences/advanced/PreferencesTable.java
r7937 r8308 43 43 public class PreferencesTable extends JTable { 44 44 private AllSettingsTableModel model; 45 private final List<PrefEntry> displayData;45 private final transient List<PrefEntry> displayData; 46 46 47 47 /** -
trunk/src/org/openstreetmap/josm/gui/preferences/advanced/StringEditor.java
r8285 r8308 20 20 public class StringEditor extends ExtendedDialog { 21 21 22 private PrefEntry entry;22 private transient PrefEntry entry; 23 23 private JosmTextField tvalue; 24 24 -
trunk/src/org/openstreetmap/josm/gui/preferences/display/GPXSettingsPanel.java
r7937 r8308 48 48 private JRadioButton drawRawGpsLinesLocal = new JRadioButton(tr("Local files")); 49 49 private JRadioButton drawRawGpsLinesNone = new JRadioButton(tr("None")); 50 private ActionListener drawRawGpsLinesActionListener;50 private transient ActionListener drawRawGpsLinesActionListener; 51 51 private JosmTextField drawRawGpsMaxLineLength = new JosmTextField(8); 52 52 private JosmTextField drawRawGpsMaxLineLengthLocal = new JosmTextField(8); -
trunk/src/org/openstreetmap/josm/gui/preferences/display/LanguagePreference.java
r8232 r8308 77 77 78 78 private static class LanguageComboBoxModel extends DefaultComboBoxModel<Locale> { 79 private final List<Locale> data = new ArrayList<>();79 private final transient List<Locale> data = new ArrayList<>(); 80 80 81 81 public LanguageComboBoxModel(){ -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddImageryPanel.java
r7937 r8308 30 30 protected final JosmTextField name = new JosmTextField(); 31 31 32 protected final Collection<ContentValidationListener> listeners = new ArrayList<>();32 protected final transient Collection<ContentValidationListener> listeners = new ArrayList<>(); 33 33 34 34 /** -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddTMSLayerPanel.java
r7937 r8308 23 23 private final JosmTextField tmsZoom = new JosmTextField(); 24 24 private final JosmTextArea tmsUrl = new JosmTextArea(3, 40); 25 private final KeyAdapter keyAdapter = new KeyAdapter() {25 private final transient KeyAdapter keyAdapter = new KeyAdapter() { 26 26 @Override 27 27 public void keyReleased(KeyEvent e) { -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMSLayerPanel.java
r7312 r8308 36 36 public class AddWMSLayerPanel extends AddImageryPanel { 37 37 38 private final WMSImagery wms = new WMSImagery();38 private final transient WMSImagery wms = new WMSImagery(); 39 39 private final JCheckBox endpoint = new JCheckBox(tr("Store WMS endpoint only, select layers at usage")); 40 private final WMSLayerTree tree = new WMSLayerTree();40 private final transient WMSLayerTree tree = new WMSLayerTree(); 41 41 private final JComboBox<String> formats = new JComboBox<>(); 42 42 private final JLabel wmsInstruction; -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java
r8285 r8308 205 205 public final JTable defaultTable; 206 206 /** The selection listener synchronizing map display with table of default providers **/ 207 private final DefListSelectionListener defaultTableListener;207 private final transient DefListSelectionListener defaultTableListener; 208 208 /** The map displaying imagery bounds of selected default providers **/ 209 209 public final JMapViewer defaultMap; … … 225 225 // Private members 226 226 private final PreferenceTabbedPane gui; 227 private final ImageryLayerInfo layerInfo;227 private final transient ImageryLayerInfo layerInfo; 228 228 229 229 /** … … 233 233 private static class ImageryURLTableCellRenderer extends DefaultTableCellRenderer { 234 234 235 private List<ImageryInfo> layers;235 private transient List<ImageryInfo> layers; 236 236 237 237 public ImageryURLTableCellRenderer(List<ImageryInfo> layers) { … … 792 792 793 793 static class OffsetBookmarksPanel extends JPanel { 794 private List<OffsetBookmark> bookmarks = OffsetBookmark.allBookmarks;794 private transient List<OffsetBookmark> bookmarks = OffsetBookmark.allBookmarks; 795 795 private OffsetsBookmarksModel model = new OffsetsBookmarksModel(); 796 796 797 /** 798 * Constructs a new {@code OffsetBookmarksPanel}. 799 */ 797 800 public OffsetBookmarksPanel(final PreferenceTabbedPane gui) { 798 801 super(new GridBagLayout()); -
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginListPanel.java
r7005 r8308 38 38 */ 39 39 public class PluginListPanel extends VerticallyScrollablePanel { 40 private PluginPreferencesModel model;40 private transient PluginPreferencesModel model; 41 41 42 42 /** … … 110 110 */ 111 111 private class JPluginCheckBox extends JCheckBox { 112 public final PluginInformation pi;112 public final transient PluginInformation pi; 113 113 public JPluginCheckBox(final PluginInformation pi, boolean selected) { 114 114 this.pi = pi; -
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginUpdatePolicyPanel.java
r7005 r8308 20 20 import org.openstreetmap.josm.Main; 21 21 import org.openstreetmap.josm.gui.widgets.JMultilineLabel; 22 import org.openstreetmap.josm.gui.widgets.JosmTextField; 22 23 import org.openstreetmap.josm.gui.widgets.SelectAllOnFocusGainedDecorator; 23 24 import org.openstreetmap.josm.plugins.PluginHandler; 24 import org.openstreetmap.josm.gui.widgets.JosmTextField;25 25 26 26 /** … … 55 55 } 56 56 57 private Map<Policy, JRadioButton> rbVersionBasedUpatePolicy;58 private Map<Policy, JRadioButton> rbTimeBasedUpatePolicy;57 private transient Map<Policy, JRadioButton> rbVersionBasedUpatePolicy; 58 private transient Map<Policy, JRadioButton> rbTimeBasedUpatePolicy; 59 59 private JosmTextField tfUpdateInterval; 60 60 private JLabel lblUpdateInterval; -
trunk/src/org/openstreetmap/josm/gui/preferences/projection/CodeProjectionChoice.java
r8285 r8308 7 7 import java.awt.GridBagLayout; 8 8 import java.awt.event.ActionListener; 9 import java.io.Serializable; 9 10 import java.util.ArrayList; 10 11 import java.util.Collection; … … 48 49 private ProjectionCodeListModel model; 49 50 public JList<String> selectionList; 50 private List<String> data;51 private List<String> filteredData;51 private transient List<String> data; 52 private transient List<String> filteredData; 52 53 private static final String DEFAULT_CODE = "EPSG:3857"; 53 54 private String lastCode = DEFAULT_CODE; 54 private ActionListener listener;55 private transient ActionListener listener; 55 56 56 57 public CodeSelectionPanel(String initialCode, ActionListener listener) { … … 67 68 * Comparator that compares the number part of the code numerically. 68 69 */ 69 private static class CodeComparator implements Comparator<String> { 70 private static class CodeComparator implements Comparator<String>, Serializable { 71 private static final long serialVersionUID = 1L; 70 72 private final Pattern codePattern = Pattern.compile("([a-zA-Z]+):(\\d+)"); 71 73 @Override -
trunk/src/org/openstreetmap/josm/gui/preferences/server/OsmApiUrlInputPanel.java
r8291 r8308 50 50 private JLabel lblApiUrl; 51 51 private JosmTextField tfOsmServerUrl; 52 private ApiUrlValidator valOsmServerUrl;52 private transient ApiUrlValidator valOsmServerUrl; 53 53 private SideButton btnTest; 54 54 /** indicates whether to use the default OSM URL or not */ 55 55 private JCheckBox cbUseDefaultServerUrl; 56 56 57 private ApiUrlPropagator propagator;57 private transient ApiUrlPropagator propagator; 58 58 59 59 protected JComponent buildDefaultServerUrlPanel() { -
trunk/src/org/openstreetmap/josm/gui/preferences/server/ProxyPreferencesPanel.java
r7005 r8308 100 100 public static final String PROXY_EXCEPTIONS = "proxy.exceptions"; 101 101 102 private Map<ProxyPolicy, JRadioButton> rbProxyPolicy;102 private transient Map<ProxyPolicy, JRadioButton> rbProxyPolicy; 103 103 private JosmTextField tfProxyHttpHost; 104 104 private JosmTextField tfProxyHttpPort; -
trunk/src/org/openstreetmap/josm/gui/preferences/shortcut/PrefJPanel.java
r8285 r8308 119 119 private static class ScListModel extends AbstractTableModel { 120 120 private String[] columnNames = new String[]{tr("Action"), tr("Shortcut")}; 121 private List<Shortcut> data;121 private transient List<Shortcut> data; 122 122 123 123 public ScListModel() { -
trunk/src/org/openstreetmap/josm/gui/tagging/TagCellEditor.java
r8005 r8308 17 17 * 18 18 */ 19 @SuppressWarnings("serial")20 19 public class TagCellEditor extends AbstractCellEditor implements TableCellEditor{ 21 20 22 21 protected AutoCompletingTextField editor = null; 23 protected TagModel currentTag = null;22 protected transient TagModel currentTag = null; 24 23 25 24 /** the cache of auto completion items derived from the current JOSM data set */ 26 protected AutoCompletionManager autocomplete = null;25 protected transient AutoCompletionManager autocomplete = null; 27 26 28 27 /** user input is matched against this list of auto completion items */ -
trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorModel.java
r8291 r8308 36 36 37 37 /** the list holding the tags */ 38 protected final List<TagModel> tags =new ArrayList<>();38 protected final transient List<TagModel> tags =new ArrayList<>(); 39 39 40 40 /** indicates whether the model is dirty */ -
trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorPanel.java
r8291 r8308 39 39 40 40 private PresetListPanel presetListPanel; 41 private final PresetHandler presetHandler;41 private final transient PresetHandler presetHandler; 42 42 43 43 /** -
trunk/src/org/openstreetmap/josm/gui/tagging/TagTable.java
r8285 r8308 65 65 */ 66 66 private final CopyOnWriteArrayList<Component> doNotStopCellEditingWhenFocused = new CopyOnWriteArrayList<>(); 67 private CellEditorRemover editorRemover;67 private transient CellEditorRemover editorRemover; 68 68 69 69 /** -
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
r8285 r8308 86 86 */ 87 87 public EnumSet<TaggingPresetType> types; 88 public List<TaggingPresetItem> data = new LinkedList<>();89 public Roles roles;90 public TemplateEntry nameTemplate;91 public Match nameTemplateFilter;88 public transient List<TaggingPresetItem> data = new LinkedList<>(); 89 public transient Roles roles; 90 public transient TemplateEntry nameTemplate; 91 public transient Match nameTemplateFilter; 92 92 93 93 /** -
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPresetSelector.java
r8285 r8308 76 76 private final EnumSet<TaggingPresetType> typesInSelection = EnumSet.noneOf(TaggingPresetType.class); 77 77 private boolean typesInSelectionDirty = true; 78 private final PresetClassifications classifications = new PresetClassifications();78 private final transient PresetClassifications classifications = new PresetClassifications(); 79 79 private final ResultListModel lsResultModel = new ResultListModel(); 80 80 81 private final List<ListSelectionListener> listSelectionListeners = new ArrayList<>();82 83 private ActionListener dblClickListener;84 private ActionListener clickListener;81 private final transient List<ListSelectionListener> listSelectionListeners = new ArrayList<>(); 82 83 private transient ActionListener dblClickListener; 84 private transient ActionListener clickListener; 85 85 86 86 private static class ResultListCellRenderer implements ListCellRenderer<TaggingPreset> { … … 97 97 private static class ResultListModel extends AbstractListModel<TaggingPreset> { 98 98 99 private List<PresetClassification> presets = new ArrayList<>();99 private transient List<PresetClassification> presets = new ArrayList<>(); 100 100 101 101 public synchronized void setPresets(List<PresetClassification> presets) { -
trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletingTextField.java
r8267 r8308 242 242 /* ------------------------------------------------------------------------------------ */ 243 243 244 private CellEditorSupport tableCellEditorSupport;244 private transient CellEditorSupport tableCellEditorSupport; 245 245 private String originalValue; 246 246 -
trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionList.java
r8291 r8308 33 33 34 34 /** the bare list of AutoCompletionItems */ 35 private List<AutoCompletionListItem> list = null;35 private transient List<AutoCompletionListItem> list = null; 36 36 /** the filtered list of AutoCompletionItems */ 37 private ArrayList<AutoCompletionListItem> filtered = null;37 private transient ArrayList<AutoCompletionListItem> filtered = null; 38 38 /** the filter expression */ 39 39 private String filter = null; 40 40 /** map from value to priority */ 41 private Map<String,AutoCompletionListItem> valutToItemMap;41 private transient Map<String,AutoCompletionListItem> valutToItemMap; 42 42 43 43 /** -
trunk/src/org/openstreetmap/josm/gui/widgets/AbstractIdTextField.java
r7937 r8308 15 15 public abstract class AbstractIdTextField<T extends AbstractTextComponentValidator> extends JosmTextField { 16 16 17 protected final T validator;17 protected final transient T validator; 18 18 19 19 /** … … 56 56 */ 57 57 public final void clearTextIfInvalid() { 58 if (!validator.isValid()) 58 if (!validator.isValid()) 59 59 setText(""); 60 60 validator.validate(); 61 61 } 62 62 63 63 /** 64 64 * Reads the id(s). -
trunk/src/org/openstreetmap/josm/gui/widgets/ComboBoxHistory.java
r7509 r8308 14 14 private int maxSize = 10; 15 15 16 private List<HistoryChangedListener> listeners = new ArrayList<>();16 private transient List<HistoryChangedListener> listeners = new ArrayList<>(); 17 17 18 18 public ComboBoxHistory(int size) { -
trunk/src/org/openstreetmap/josm/gui/widgets/DateEditorWithSlider.java
r7937 r8308 35 35 private boolean watchSlider = true; 36 36 37 private List<ChangeListener> listeners = new ArrayList<>();37 private transient List<ChangeListener> listeners = new ArrayList<>(); 38 38 39 39 /** -
trunk/src/org/openstreetmap/josm/gui/widgets/DisableShortcutsOnFocusGainedTextField.java
r8291 r8308 96 96 } 97 97 98 private final List<Pair<Action,Shortcut>> unregisteredActionShortcuts = new ArrayList<>();99 private final Set<JosmAction> disabledMenuActions = new HashSet<>();98 private final transient List<Pair<Action,Shortcut>> unregisteredActionShortcuts = new ArrayList<>(); 99 private final transient Set<JosmAction> disabledMenuActions = new HashSet<>(); 100 100 101 101 @Override -
trunk/src/org/openstreetmap/josm/gui/widgets/MultiSplitLayout.java
r7864 r8308 708 708 */ 709 709 public static class InvalidLayoutException extends RuntimeException { 710 private final Node node;710 private final transient Node node; 711 711 public InvalidLayoutException (String msg, Node node) { 712 712 super(msg); -
trunk/src/org/openstreetmap/josm/gui/widgets/MultiSplitPane.java
r6986 r8308 47 47 */ 48 48 public class MultiSplitPane extends JPanel { 49 private AccessibleContext accessibleContext = null;49 private transient AccessibleContext accessibleContext = null; 50 50 private boolean continuousLayout = true; 51 private DividerPainter dividerPainter = new DefaultDividerPainter();51 private transient DividerPainter dividerPainter = new DefaultDividerPainter(); 52 52 53 53 /** … … 222 222 223 223 private boolean dragUnderway = false; 224 private MultiSplitLayout.Divider dragDivider = null;224 private transient MultiSplitLayout.Divider dragDivider = null; 225 225 private Rectangle initialDividerBounds = null; 226 226 private boolean oldFloatingDividers = true; -
trunk/src/org/openstreetmap/josm/gui/widgets/OsmPrimitivesTable.java
r7937 r8308 17 17 18 18 public abstract class OsmPrimitivesTable extends JTable { 19 19 20 20 /** 21 21 * the data layer in whose context primitives are edited in this table 22 22 */ 23 private OsmDataLayer layer;23 private transient OsmDataLayer layer; 24 24 25 25 /** the popup menu */ … … 40 40 addMouseListener(new DblClickHandler()); 41 41 } 42 42 43 43 public OsmPrimitivesTableModel getOsmPrimitivesTableModel() { 44 44 return (OsmPrimitivesTableModel) getModel(); … … 56 56 return popupMenu; 57 57 } 58 58 59 59 protected abstract ZoomToAction buildZoomToAction(); 60 60 … … 67 67 return menu; 68 68 } 69 69 70 70 public void unlinkAsListener() { 71 71 MapView.removeLayerChangeListener(zoomToAction); 72 72 } 73 73 74 74 public OsmPrimitive getPrimitiveInLayer(int row, OsmDataLayer layer) { 75 75 return getOsmPrimitivesTableModel().getReferredPrimitive(row); -
trunk/src/org/openstreetmap/josm/gui/widgets/QuadStateCheckBox.java
r7509 r8308 43 43 } 44 44 45 private final QuadStateDecorator model;45 private final transient QuadStateDecorator model; 46 46 private State[] allowed; 47 47 -
trunk/src/org/openstreetmap/josm/gui/widgets/TextContextualPopupMenu.java
r8093 r8308 51 51 protected final UndoManager undo = new UndoManager(); 52 52 53 protected final UndoableEditListener undoEditListener = new UndoableEditListener() {53 protected final transient UndoableEditListener undoEditListener = new UndoableEditListener() { 54 54 @Override 55 55 public void undoableEditHappened(UndoableEditEvent e) { … … 60 60 }; 61 61 62 protected final PropertyChangeListener propertyChangeListener = new PropertyChangeListener() {62 protected final transient PropertyChangeListener propertyChangeListener = new PropertyChangeListener() { 63 63 @Override 64 64 public void propertyChange(PropertyChangeEvent evt) { -
trunk/src/org/openstreetmap/josm/io/AbstractParser.java
r8148 r8308 25 25 */ 26 26 public abstract class AbstractParser extends DefaultHandler { 27 27 28 28 /** the current primitive to be read */ 29 29 protected HistoryOsmPrimitive currentPrimitive; … … 34 34 this.locator = locator; 35 35 } 36 36 37 37 protected abstract void throwException(String message) throws SAXException; 38 39 protected abstract void throwException(String message, Exception e) throws SAXException; 38 40 39 41 protected final long getMandatoryAttributeLong(Attributes attr, String name) throws SAXException { … … 46 48 l = Long.parseLong(v); 47 49 } catch(NumberFormatException e) { 48 throwException(tr("Illegal value for mandatory attribute ''{0}'' of type long. Got ''{1}''.", name, v) );50 throwException(tr("Illegal value for mandatory attribute ''{0}'' of type long. Got ''{1}''.", name, v), e); 49 51 } 50 52 if (l < 0) { … … 62 64 l = Long.parseLong(v); 63 65 } catch(NumberFormatException e) { 64 throwException(tr("Illegal value for mandatory attribute ''{0}'' of type long. Got ''{1}''.", name, v) );66 throwException(tr("Illegal value for mandatory attribute ''{0}'' of type long. Got ''{1}''.", name, v), e); 65 67 } 66 68 if (l < 0) { … … 79 81 d = Double.parseDouble(v); 80 82 } catch(NumberFormatException e) { 81 throwException(tr("Illegal value for attribute ''{0}'' of type double. Got ''{1}''.", name, v) );83 throwException(tr("Illegal value for attribute ''{0}'' of type double. Got ''{1}''.", name, v), e); 82 84 } 83 85 return d; … … 102 104 return false; // not reached 103 105 } 104 106 105 107 protected final HistoryOsmPrimitive createPrimitive(Attributes atts, OsmPrimitiveType type) throws SAXException { 106 108 long id = getMandatoryAttributeLong(atts,"id"); … … 152 154 currentPrimitive = createPrimitive(atts, OsmPrimitiveType.WAY); 153 155 } 154 156 155 157 protected final void startRelation(Attributes atts) throws SAXException { 156 158 currentPrimitive = createPrimitive(atts, OsmPrimitiveType.RELATION); … … 175 177 type = OsmPrimitiveType.fromApiTypeName(v); 176 178 } catch(IllegalArgumentException e) { 177 throwException(tr("Illegal value for mandatory attribute ''{0}'' of type OsmPrimitiveType. Got ''{1}''.", "type", v) );179 throwException(tr("Illegal value for mandatory attribute ''{0}'' of type OsmPrimitiveType. Got ''{1}''.", "type", v), e); 178 180 } 179 181 String role = getMandatoryAttributeString(atts, "role"); … … 181 183 ((HistoryRelation)currentPrimitive).addMember(member); 182 184 } 183 185 184 186 protected final boolean doStartElement(String qName, Attributes atts) throws SAXException { 185 187 switch (qName) { -
trunk/src/org/openstreetmap/josm/io/BoundingBoxDownloader.java
r8230 r8308 192 192 * The downloaded notes 193 193 */ 194 public final List<Note> notes;194 public final transient List<Note> notes; 195 195 /** 196 196 * The download limit sent to the server. -
trunk/src/org/openstreetmap/josm/io/CacheFiles.java
r7132 r8308 248 248 long dirsize = 0; 249 249 250 for(File f : dir.listFiles()) { 251 if(isExpired(f)) { 252 f.delete(); 253 } else { 254 dirsize += f.length(); 255 modtime.put(f.lastModified(), f); 250 File[] files = dir.listFiles(); 251 if (files != null) { 252 for(File f : files) { 253 if(isExpired(f)) { 254 f.delete(); 255 } else { 256 dirsize += f.length(); 257 modtime.put(f.lastModified(), f); 258 } 256 259 } 257 260 } … … 283 286 */ 284 287 public void customCleanUp(int type, int size) { 288 File[] files; 285 289 switch(type) { 286 290 case CLEAN_ALL: 287 for(File f : dir.listFiles()) { 288 f.delete(); 291 files = dir.listFiles(); 292 if (files != null) { 293 for (File f : files) { 294 f.delete(); 295 } 289 296 } 290 297 break; 291 298 case CLEAN_SMALL_FILES: 292 for(File f: dir.listFiles()) 293 if(f.length() < size) { 294 f.delete(); 299 files = dir.listFiles(); 300 if (files != null) { 301 for (File f: files) { 302 if (f.length() < size) { 303 f.delete(); 304 } 295 305 } 306 } 296 307 break; 297 308 case CLEAN_BY_DATE: … … 309 320 long dirsize = 0; 310 321 311 for(File f : this.dir.listFiles()) { 312 dirsize += f.length(); 322 File[] files = dir.listFiles(); 323 if (files != null) { 324 for(File f : files) { 325 dirsize += f.length(); 326 } 313 327 } 314 328 return dirsize; -
trunk/src/org/openstreetmap/josm/io/OsmChangesetContentParser.java
r8287 r8308 44 44 } 45 45 46 protected void throwException(Exception e) throws XmlParsingException { 47 throw new XmlParsingException(e).rememberLocation(locator); 46 @Override 47 protected void throwException(String message, Exception e) throws XmlParsingException { 48 throw new XmlParsingException(message, e).rememberLocation(locator); 48 49 } 49 50 … … 103 104 @Override 104 105 public void error(SAXParseException e) throws SAXException { 105 throwException( e);106 throwException(null, e); 106 107 } 107 108 108 109 @Override 109 110 public void fatalError(SAXParseException e) throws SAXException { 110 throwException( e);111 throwException(null, e); 111 112 } 112 113 } -
trunk/src/org/openstreetmap/josm/io/OsmHistoryReader.java
r8287 r8308 49 49 50 50 @Override 51 protected void throwException(String message, Exception e) throws SAXException { 52 throw new SAXException(getCurrentPosition() + message, e); 53 } 54 55 @Override 51 56 public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { 52 57 doStartElement(qName, atts); -
trunk/src/org/openstreetmap/josm/io/imagery/WMSException.java
r7937 r8308 17 17 public class WMSException extends Exception { 18 18 19 private final WMSRequest request;19 private final transient WMSRequest request; 20 20 private final URL url; 21 21 private final String[] exceptions; -
trunk/src/org/openstreetmap/josm/io/remotecontrol/AddTagsDialog.java
r8304 r8308 46 46 47 47 private final JTable propertyTable; 48 private final Collection<? extends OsmPrimitive> sel;48 private final transient Collection<? extends OsmPrimitive> sel; 49 49 private final int[] count; 50 50 -
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/LoadObjectHandler.java
r8221 r8308 2 2 package org.openstreetmap.josm.io.remotecontrol.handler; 3 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 4 6 import java.util.Collection; 5 7 import java.util.HashSet; 6 import static org.openstreetmap.josm.tools.I18n.tr;7 8 8 import java.util.LinkedList; 9 9 import java.util.List; … … 80 80 } 81 81 }); 82 Collection<OsmPrimitive> downlPrim = new HashSet<>(); 83 for (PrimitiveId id : downloaded) { 84 downlPrim.add(ds.getPrimitiveById(id)); 85 } 86 AddTagsDialog.addTags(args, sender, downlPrim); 82 87 } 83 Collection<OsmPrimitive> downlPrim = new HashSet<>();84 for (PrimitiveId id : downloaded) {85 downlPrim.add(ds.getPrimitiveById(id));86 }87 AddTagsDialog.addTags(args, sender, downlPrim);88 88 ps.clear(); 89 89 } -
trunk/src/org/openstreetmap/josm/plugins/PluginException.java
r6380 r8308 12 12 */ 13 13 public class PluginException extends Exception { 14 public final PluginProxy plugin;14 public final transient PluginProxy plugin; 15 15 public final String name; 16 16 -
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r8291 r8308 1088 1088 return name.endsWith(".jar.new"); 1089 1089 }}); 1090 if (files == null) 1091 return; 1090 1092 1091 1093 for (File updatedPlugin : files) { -
trunk/src/org/openstreetmap/josm/tools/AlphanumComparator.java
r7937 r8308 23 23 * 24 24 */ 25 import java.io.Serializable; 25 26 import java.text.Collator; 26 27 import java.util.Comparator; … … 38 39 * 39 40 */ 40 public class AlphanumComparator implements Comparator<String> { 41 public class AlphanumComparator implements Comparator<String>, Serializable { 42 43 private static final long serialVersionUID = 1L; 41 44 42 45 private static final AlphanumComparator INSTANCE = new AlphanumComparator(); -
trunk/src/org/openstreetmap/josm/tools/FontsManager.java
r7402 r8308 39 39 String url = "resource://data/fonts/"+fontFile; 40 40 try (InputStream i = new CachedFile(url).getInputStream()) { 41 Font f = Font.createFont(Font.TRUETYPE_FONT, i); 42 if (f == null) { 43 throw new RuntimeException("unable to load font: "+fontFile); 44 } 45 ge.registerFont(f); 41 ge.registerFont(Font.createFont(Font.TRUETYPE_FONT, i)); 46 42 } catch (IOException | FontFormatException ex) { 47 43 throw new RuntimeException(ex); -
trunk/src/org/openstreetmap/josm/tools/MultikeyActionsHandler.java
r8285 r8308 67 67 private class MyAction extends AbstractAction { 68 68 69 private final MultikeyShortcutAction action;70 private final Shortcut shortcut;69 private final transient MultikeyShortcutAction action; 70 private final transient Shortcut shortcut; 71 71 72 72 MyAction(MultikeyShortcutAction action) { -
trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java
r8099 r8308 318 318 try (DirectoryStream<Path> ds = Files.newDirectoryStream(fontPath)) { 319 319 for (Path p : ds) { 320 fontsAvail.add(p.getFileName().toString().toUpperCase()); 320 Path filename = p.getFileName(); 321 if (filename != null) { 322 fontsAvail.add(filename.toString().toUpperCase()); 323 } 321 324 } 322 325 fontsAvail.add(""); // for devanagari -
trunk/src/org/openstreetmap/josm/tools/Utils.java
r8304 r8308 378 378 Main.warn("Unable to create directory "+out.getPath()); 379 379 } 380 for (File f : in.listFiles()) { 381 File target = new File(out, f.getName()); 382 if (f.isDirectory()) { 383 copyDirectory(f, target); 384 } else { 385 copyFile(f, target); 380 File[] files = in.listFiles(); 381 if (files != null) { 382 for (File f : files) { 383 File target = new File(out, f.getName()); 384 if (f.isDirectory()) { 385 copyDirectory(f, target); 386 } else { 387 copyFile(f, target); 388 } 386 389 } 387 390 } … … 415 418 if( path.exists() ) { 416 419 File[] files = path.listFiles(); 417 for (File file : files) { 418 if (file.isDirectory()) { 419 deleteDirectory(file); 420 } else if (!file.delete()) { 421 Main.warn("Unable to delete file: "+file.getPath()); 420 if (files != null) { 421 for (File file : files) { 422 if (file.isDirectory()) { 423 deleteDirectory(file); 424 } else if (!file.delete()) { 425 Main.warn("Unable to delete file: "+file.getPath()); 426 } 422 427 } 423 428 } -
trunk/src/org/openstreetmap/josm/tools/template_engine/ParseError.java
r7937 r8308 9 9 public class ParseError extends Exception { 10 10 11 private final Token unexpectedToken;11 private final transient Token unexpectedToken; 12 12 13 13 public ParseError(Token unexpectedToken) {
Note:
See TracChangeset
for help on using the changeset viewer.