Changeset 6883 in josm
- Timestamp:
- 2014-02-25T01:31:24+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 90 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r6852 r6883 106 106 * @since 98 107 107 */ 108 abstract publicclass Main {108 public abstract class Main { 109 109 110 110 /** … … 126 126 * @return <code>true</code> if JOSM currently displays a map view 127 127 */ 128 static public boolean isDisplayingMapView() {128 public static boolean isDisplayingMapView() { 129 129 if (map == null) return false; 130 130 if (map.mapView == null) return false; … … 152 152 * and sequential. 153 153 */ 154 public final staticExecutorService worker = new ProgressMonitorExecutor();154 public static final ExecutorService worker = new ProgressMonitorExecutor(); 155 155 156 156 /** -
trunk/src/org/openstreetmap/josm/actions/DownloadReferrersAction.java
r6830 r6883 25 25 public class DownloadReferrersAction extends JosmAction { 26 26 27 28 29 27 /** 28 * Constructs a new {@code DownloadReferrersAction}. 29 */ 30 30 public DownloadReferrersAction() { 31 31 super(tr("Download parent ways/relations..."), "download", 32 32 tr("Download objects referring to one of the selected objects"), 33 33 Shortcut.registerShortcut("file:downloadreferrers", 34 34 tr("File: {0}", tr("Download parent ways/relations...")), KeyEvent.VK_D, Shortcut.ALT_CTRL), 35 35 true, "downloadreferrers", true); 36 36 putValue("help", ht("/Action/DownloadParentWaysAndRelation")); -
trunk/src/org/openstreetmap/josm/actions/audio/AudioFastSlowAction.java
r6380 r6883 13 13 * @since 563 14 14 */ 15 abstract publicclass AudioFastSlowAction extends JosmAction {15 public abstract class AudioFastSlowAction extends JosmAction { 16 16 17 17 private double multiplier; -
trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java
r6848 r6883 208 208 * Base class for all search operators. 209 209 */ 210 abstract publicstatic class Match implements Predicate<OsmPrimitive> {211 212 abstract publicboolean match(OsmPrimitive osm);210 public abstract static class Match implements Predicate<OsmPrimitive> { 211 212 public abstract boolean match(OsmPrimitive osm); 213 213 214 214 /** … … 243 243 * A unary search operator which may take data parameters. 244 244 */ 245 abstract publicstatic class UnaryMatch extends Match {245 public abstract static class UnaryMatch extends Match { 246 246 247 247 protected final Match match; … … 265 265 * A binary search operator which may take data parameters. 266 266 */ 267 abstract publicstatic class BinaryMatch extends Match {267 public abstract static class BinaryMatch extends Match { 268 268 269 269 protected final Match lhs; -
trunk/src/org/openstreetmap/josm/command/Command.java
r6881 r6883 36 36 * @author imi 37 37 */ 38 abstract publicclass Command extends PseudoCommand {38 public abstract class Command extends PseudoCommand { 39 39 40 40 private static final class CloneVisitor extends AbstractVisitor { … … 171 171 * @param added The added primitives 172 172 */ 173 abstract publicvoid fillModifiedData(Collection<OsmPrimitive> modified,173 public abstract void fillModifiedData(Collection<OsmPrimitive> modified, 174 174 Collection<OsmPrimitive> deleted, 175 175 Collection<OsmPrimitive> added); -
trunk/src/org/openstreetmap/josm/command/PseudoCommand.java
r5926 r6883 13 13 * executed or undone. 14 14 */ 15 abstract public class PseudoCommand { 15 public abstract class PseudoCommand { 16 16 17 /** 17 18 * Provides a description text representing this command. 18 19 */ 19 abstract publicString getDescriptionText();20 public abstract String getDescriptionText(); 20 21 21 22 /** … … 29 30 * Return the primitives that take part in this command. 30 31 */ 31 abstract publicCollection<? extends OsmPrimitive> getParticipatingPrimitives();32 public abstract Collection<? extends OsmPrimitive> getParticipatingPrimitives(); 32 33 33 34 /** -
trunk/src/org/openstreetmap/josm/command/PurgeCommand.java
r6113 r6883 42 42 protected final ConflictCollection purgedConflicts = new ConflictCollection(); 43 43 44 final protectedDataSet ds;44 protected final DataSet ds; 45 45 46 46 /** -
trunk/src/org/openstreetmap/josm/corrector/CorrectionTableModel.java
r6084 r6883 9 9 import javax.swing.table.AbstractTableModel; 10 10 11 public abstract class CorrectionTableModel<C extends Correction> extends 12 AbstractTableModel { 11 public abstract class CorrectionTableModel<C extends Correction> extends AbstractTableModel { 13 12 14 13 private List<C> corrections; … … 17 16 18 17 public CorrectionTableModel(List<C> corrections) { 19 super();20 18 this.corrections = corrections; 21 19 apply = new boolean[this.corrections.size()]; … … 25 23 26 24 @Override 27 abstract publicint getColumnCount();25 public abstract int getColumnCount(); 28 26 29 abstract protectedboolean isBoldCell(int row, int column);30 abstract publicString getCorrectionColumnName(int colIndex);31 abstract publicObject getCorrectionValueAt(int rowIndex, int colIndex);27 protected abstract boolean isBoldCell(int row, int column); 28 public abstract String getCorrectionColumnName(int colIndex); 29 public abstract Object getCorrectionValueAt(int rowIndex, int colIndex); 32 30 33 31 public List<C> getCorrections() { -
trunk/src/org/openstreetmap/josm/data/coor/CoordinateFormat.java
r3530 r6883 56 56 * @return the default coordinate format 57 57 */ 58 static public CoordinateFormat getDefaultFormat() {58 public static CoordinateFormat getDefaultFormat() { 59 59 return defaultCoordinateFormat; 60 60 } … … 65 65 * @param format the default coordinate format 66 66 */ 67 static public void setCoordinateFormat(CoordinateFormat format) {67 public static void setCoordinateFormat(CoordinateFormat format) { 68 68 if (format != null) { 69 69 defaultCoordinateFormat = format; -
trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
r6830 r6883 191 191 } 192 192 193 public final staticString SOUTH = trc("compass", "S");194 public final staticString NORTH = trc("compass", "N");193 public static final String SOUTH = trc("compass", "S"); 194 public static final String NORTH = trc("compass", "N"); 195 195 public String latToString(CoordinateFormat d) { 196 196 switch(d) { … … 211 211 } 212 212 213 public final staticString WEST = trc("compass", "W");214 public final staticString EAST = trc("compass", "E");213 public static final String WEST = trc("compass", "W"); 214 public static final String EAST = trc("compass", "E"); 215 215 public String lonToString(CoordinateFormat d) { 216 216 switch(d) { -
trunk/src/org/openstreetmap/josm/data/imagery/ImageryLayerInfo.java
r6642 r6883 25 25 static List<ImageryInfo> defaultLayers = new ArrayList<ImageryInfo>(); 26 26 27 private final staticString[] DEFAULT_LAYER_SITES = {27 private static final String[] DEFAULT_LAYER_SITES = { 28 28 Main.JOSM_WEBSITE+"/maps" 29 29 }; -
trunk/src/org/openstreetmap/josm/data/oauth/OAuthParameters.java
r6847 r6883 24 24 * The default JOSM OAuth consumer key (created by user josmeditor). 25 25 */ 26 static public final String DEFAULT_JOSM_CONSUMER_KEY = "F7zPYlVCqE2BUH9Hr4SsWZSOnrKjpug1EgqkbsSb";26 public static final String DEFAULT_JOSM_CONSUMER_KEY = "F7zPYlVCqE2BUH9Hr4SsWZSOnrKjpug1EgqkbsSb"; 27 27 /** 28 28 * The default JOSM OAuth consumer secret (created by user josmeditor). 29 29 */ 30 static public final String DEFAULT_JOSM_CONSUMER_SECRET = "rIkjpPcBNkMQxrqzcOvOC4RRuYupYr7k8mfP13H5";30 public static final String DEFAULT_JOSM_CONSUMER_SECRET = "rIkjpPcBNkMQxrqzcOvOC4RRuYupYr7k8mfP13H5"; 31 31 /** 32 32 * The default OSM OAuth request token URL. 33 33 */ 34 static public final String DEFAULT_REQUEST_TOKEN_URL = Main.OSM_WEBSITE + "/oauth/request_token";34 public static final String DEFAULT_REQUEST_TOKEN_URL = Main.OSM_WEBSITE + "/oauth/request_token"; 35 35 /** 36 36 * The default OSM OAuth access token URL. 37 37 */ 38 static public final String DEFAULT_ACCESS_TOKEN_URL = Main.OSM_WEBSITE + "/oauth/access_token";38 public static final String DEFAULT_ACCESS_TOKEN_URL = Main.OSM_WEBSITE + "/oauth/access_token"; 39 39 /** 40 40 * The default OSM OAuth authorize URL. 41 41 */ 42 static public final String DEFAULT_AUTHORISE_URL = Main.OSM_WEBSITE + "/oauth/authorize";42 public static final String DEFAULT_AUTHORISE_URL = Main.OSM_WEBSITE + "/oauth/authorize"; 43 43 44 44 … … 49 49 * @return a set of default parameters 50 50 */ 51 static public OAuthParameters createDefault() {51 public static OAuthParameters createDefault() { 52 52 return createDefault(null); 53 53 } … … 62 62 * @since 5422 63 63 */ 64 static public OAuthParameters createDefault(String apiUrl) {64 public static OAuthParameters createDefault(String apiUrl) { 65 65 OAuthParameters parameters = new OAuthParameters(); 66 66 parameters.setConsumerKey(DEFAULT_JOSM_CONSUMER_KEY); … … 90 90 * @return the parameters 91 91 */ 92 static public OAuthParameters createFromPreferences(Preferences pref) {92 public static OAuthParameters createFromPreferences(Preferences pref) { 93 93 OAuthParameters parameters = createDefault(pref.get("osm-server.url")); 94 94 parameters.setConsumerKey(pref.get("oauth.settings.consumer-key", parameters.getConsumerKey())); -
trunk/src/org/openstreetmap/josm/data/oauth/OAuthToken.java
r5266 r6883 14 14 * @return the token 15 15 */ 16 static public OAuthToken createToken(OAuthConsumer consumer) {16 public static OAuthToken createToken(OAuthConsumer consumer) { 17 17 return new OAuthToken(consumer.getToken(), consumer.getTokenSecret()); 18 18 } -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapRendererFactory.java
r6362 r6883 42 42 * 43 43 */ 44 static public final String PREF_KEY_RENDERER_CLASS_NAME = "mappaint.renderer-class-name";45 46 static public class MapRendererFactoryException extends RuntimeException {44 public static final String PREF_KEY_RENDERER_CLASS_NAME = "mappaint.renderer-class-name"; 45 46 public static class MapRendererFactoryException extends RuntimeException { 47 47 public MapRendererFactoryException() { 48 48 } … … 61 61 } 62 62 63 static public class Descriptor {63 public static class Descriptor { 64 64 private Class<? extends AbstractMapRenderer> renderer; 65 65 private String displayName; … … 85 85 } 86 86 87 static privateMapRendererFactory instance;87 private static MapRendererFactory instance; 88 88 89 89 /** -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/Multipolygon.java
r6713 r6883 32 32 * <em>outer</em> polygon. Default is <tt>outer</tt>. 33 33 */ 34 static public final String PREF_KEY_OUTER_ROLES = "mappaint.multipolygon.outer.roles";34 public static final String PREF_KEY_OUTER_ROLES = "mappaint.multipolygon.outer.roles"; 35 35 /** preference key for collection of role prefixes which indicate that the respective 36 36 * member belongs to an <em>outer</em> polygon. Default is empty. 37 37 */ 38 static public final String PREF_KEY_OUTER_ROLE_PREFIXES = "mappaint.multipolygon.outer.role-prefixes";38 public static final String PREF_KEY_OUTER_ROLE_PREFIXES = "mappaint.multipolygon.outer.role-prefixes"; 39 39 /** preference key for a collection of roles which indicate that the respective member belongs to an 40 40 * <em>inner</em> polygon. Default is <tt>inner</tt>. 41 41 */ 42 static public final String PREF_KEY_INNER_ROLES = "mappaint.multipolygon.inner.roles";42 public static final String PREF_KEY_INNER_ROLES = "mappaint.multipolygon.inner.roles"; 43 43 /** preference key for collection of role prefixes which indicate that the respective 44 44 * member belongs to an <em>inner</em> polygon. Default is empty. 45 45 */ 46 static public final String PREF_KEY_INNER_ROLE_PREFIXES = "mappaint.multipolygon.inner.role-prefixes";46 public static final String PREF_KEY_INNER_ROLE_PREFIXES = "mappaint.multipolygon.inner.role-prefixes"; 47 47 48 48 /** -
trunk/src/org/openstreetmap/josm/data/projection/AbstractProjection.java
r6248 r6883 21 21 * In addition, either datum or nadgrid has to be initialized to some value. 22 22 */ 23 abstract publicclass AbstractProjection implements Projection {23 public abstract class AbstractProjection implements Projection { 24 24 25 25 protected Ellipsoid ellps; -
trunk/src/org/openstreetmap/josm/data/projection/CustomProjection.java
r6854 r6883 75 75 public boolean hasValue; 76 76 77 public final staticMap<String, Param> paramsByKey = new HashMap<String, Param>();77 public static final Map<String, Param> paramsByKey = new HashMap<String, Param>(); 78 78 static { 79 79 for (Param p : Param.values()) { -
trunk/src/org/openstreetmap/josm/data/projection/Projections.java
r6488 r6883 60 60 * should be compatible to PROJ.4 61 61 */ 62 final public staticMap<String, ProjFactory> projs = new HashMap<String, ProjFactory>();63 final public staticMap<String, Ellipsoid> ellipsoids = new HashMap<String, Ellipsoid>();64 final public staticMap<String, Datum> datums = new HashMap<String, Datum>();65 final public staticMap<String, NTV2GridShiftFileWrapper> nadgrids = new HashMap<String, NTV2GridShiftFileWrapper>();66 final public staticMap<String, Pair<String, String>> inits = new HashMap<String, Pair<String, String>>();62 public static final Map<String, ProjFactory> projs = new HashMap<String, ProjFactory>(); 63 public static final Map<String, Ellipsoid> ellipsoids = new HashMap<String, Ellipsoid>(); 64 public static final Map<String, Datum> datums = new HashMap<String, Datum>(); 65 public static final Map<String, NTV2GridShiftFileWrapper> nadgrids = new HashMap<String, NTV2GridShiftFileWrapper>(); 66 public static final Map<String, Pair<String, String>> inits = new HashMap<String, Pair<String, String>>(); 67 67 68 68 static { … … 158 158 } 159 159 160 private final staticSet<String> allCodes = new HashSet<String>();161 private final staticMap<String, ProjectionChoice> allProjectionChoicesByCode = new HashMap<String, ProjectionChoice>();162 private final staticMap<String, Projection> projectionsByCode_cache = new HashMap<String, Projection>();160 private static final Set<String> allCodes = new HashSet<String>(); 161 private static final Map<String, ProjectionChoice> allProjectionChoicesByCode = new HashMap<String, ProjectionChoice>(); 162 private static final Map<String, Projection> projectionsByCode_cache = new HashMap<String, Projection>(); 163 163 164 164 static { -
trunk/src/org/openstreetmap/josm/data/projection/datum/AbstractDatum.java
r6069 r6883 4 4 import org.openstreetmap.josm.data.projection.Ellipsoid; 5 5 6 abstract publicclass AbstractDatum implements Datum {6 public abstract class AbstractDatum implements Datum { 7 7 8 8 protected String name; … … 10 10 protected Ellipsoid ellps; 11 11 12 /** 13 * Constructs a new {@code AbstractDatum}. 14 * @param name The name 15 * @param proj4Id The Proj4 identifier 16 * @param ellps The ellipsoid 17 */ 12 18 public AbstractDatum(String name, String proj4Id, Ellipsoid ellps) { 13 19 this.name = name; -
trunk/src/org/openstreetmap/josm/data/projection/datum/GRS80Datum.java
r6362 r6883 12 12 public final class GRS80Datum extends NullDatum { 13 13 14 public final static GRS80Datum INSTANCE = new GRS80Datum(); 14 /** 15 * The unique instance. 16 */ 17 public static final GRS80Datum INSTANCE = new GRS80Datum(); 15 18 16 19 private GRS80Datum() { -
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFileWrapper.java
r6488 r6883 20 20 * Description of Transformation - DE_DHDN (BeTA, 2007) to ETRS89</a> 21 21 */ 22 public final staticNTV2GridShiftFileWrapper BETA2007 = new NTV2GridShiftFileWrapper("resource://data/projection/BETA2007.gsb");22 public static final NTV2GridShiftFileWrapper BETA2007 = new NTV2GridShiftFileWrapper("resource://data/projection/BETA2007.gsb"); 23 23 24 24 /** … … 28 28 * [French] Transformation de coordonnées NTF – RGF93 / Format de grille NTv2</a> 29 29 */ 30 public final static NTV2GridShiftFileWrapper ntf_rgf93 = new NTV2GridShiftFileWrapper("resource://data/projection/ntf_r93_b.gsb"); 31 30 public static final NTV2GridShiftFileWrapper ntf_rgf93 = new NTV2GridShiftFileWrapper("resource://data/projection/ntf_r93_b.gsb"); 32 31 33 32 private NTV2GridShiftFile instance = null; -
trunk/src/org/openstreetmap/josm/data/projection/proj/LambertConformalConic.java
r6362 r6883 28 28 protected double e; 29 29 30 public static abstractclass Parameters {30 public abstract static class Parameters { 31 31 public final double latitudeOrigin; 32 32 public Parameters(double latitudeOrigin) { -
trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateNode.java
r6830 r6883 87 87 } 88 88 89 protected final staticint DUPLICATE_NODE = 1;90 protected final staticint DUPLICATE_NODE_MIXED = 2;91 protected final staticint DUPLICATE_NODE_OTHER = 3;92 protected final staticint DUPLICATE_NODE_BUILDING = 10;93 protected final staticint DUPLICATE_NODE_BOUNDARY = 11;94 protected final staticint DUPLICATE_NODE_HIGHWAY = 12;95 protected final staticint DUPLICATE_NODE_LANDUSE = 13;96 protected final staticint DUPLICATE_NODE_NATURAL = 14;97 protected final staticint DUPLICATE_NODE_POWER = 15;98 protected final staticint DUPLICATE_NODE_RAILWAY = 16;99 protected final staticint DUPLICATE_NODE_WATERWAY = 17;89 protected static final int DUPLICATE_NODE = 1; 90 protected static final int DUPLICATE_NODE_MIXED = 2; 91 protected static final int DUPLICATE_NODE_OTHER = 3; 92 protected static final int DUPLICATE_NODE_BUILDING = 10; 93 protected static final int DUPLICATE_NODE_BOUNDARY = 11; 94 protected static final int DUPLICATE_NODE_HIGHWAY = 12; 95 protected static final int DUPLICATE_NODE_LANDUSE = 13; 96 protected static final int DUPLICATE_NODE_NATURAL = 14; 97 protected static final int DUPLICATE_NODE_POWER = 15; 98 protected static final int DUPLICATE_NODE_RAILWAY = 16; 99 protected static final int DUPLICATE_NODE_WATERWAY = 17; 100 100 101 101 /** The map of potential duplicates. -
trunk/src/org/openstreetmap/josm/gui/MapView.java
r6830 r6883 151 151 public static void addEditLayerChangeListener(EditLayerChangeListener listener, boolean initialFire) { 152 152 addEditLayerChangeListener(listener); 153 if (initialFire) { 154 if (Main.isDisplayingMapView() && Main.map.mapView.getEditLayer() != null) { 155 fireEditLayerChanged(null, Main.map.mapView.getEditLayer()); 156 } 153 if (initialFire && Main.isDisplayingMapView() && Main.map.mapView.getEditLayer() != null) { 154 fireEditLayerChanged(null, Main.map.mapView.getEditLayer()); 157 155 } 158 156 } -
trunk/src/org/openstreetmap/josm/gui/actionsupport/DeleteFromRelationConfirmationDialog.java
r6316 r6883 52 52 public class DeleteFromRelationConfirmationDialog extends JDialog implements TableModelListener { 53 53 /** the unique instance of this dialog */ 54 static privateDeleteFromRelationConfirmationDialog instance;54 private static DeleteFromRelationConfirmationDialog instance; 55 55 56 56 /** … … 59 59 * @return The unique instance of this dialog 60 60 */ 61 static public DeleteFromRelationConfirmationDialog getInstance() {61 public static DeleteFromRelationConfirmationDialog getInstance() { 62 62 if (instance == null) { 63 63 instance = new DeleteFromRelationConfirmationDialog(); -
trunk/src/org/openstreetmap/josm/gui/bbox/TileSelectionBBoxChooser.java
r6822 r6883 217 217 * 218 218 */ 219 static privateclass TileGridInputPanel extends JPanel implements PropertyChangeListener{220 static public final String TILE_BOUNDS_PROP = TileGridInputPanel.class.getName() + ".tileBounds";219 private static class TileGridInputPanel extends JPanel implements PropertyChangeListener{ 220 public static final String TILE_BOUNDS_PROP = TileGridInputPanel.class.getName() + ".tileBounds"; 221 221 222 222 private JosmTextField tfMaxY; … … 437 437 * 438 438 */ 439 static privateclass TileAddressInputPanel extends JPanel {440 441 static public final String TILE_BOUNDS_PROP = TileAddressInputPanel.class.getName() + ".tileBounds";439 private static class TileAddressInputPanel extends JPanel { 440 441 public static final String TILE_BOUNDS_PROP = TileAddressInputPanel.class.getName() + ".tileBounds"; 442 442 443 443 private JosmTextField tfTileAddress; … … 526 526 * Validates a tile address 527 527 */ 528 static privateclass TileAddressValidator extends AbstractTextComponentValidator {528 private static class TileAddressValidator extends AbstractTextComponentValidator { 529 529 530 530 private TileBounds tileBounds = null; … … 585 585 * 586 586 */ 587 static privateclass TileCoordinateValidator extends AbstractTextComponentValidator {587 private static class TileCoordinateValidator extends AbstractTextComponentValidator { 588 588 private int zoomLevel; 589 589 private int tileIndex; … … 633 633 * 634 634 */ 635 static privateclass TileBounds {635 private static class TileBounds { 636 636 public Point min; 637 637 public Point max; … … 663 663 * The map view used in this bounding box chooser 664 664 */ 665 static privateclass TileBoundsMapView extends JMapViewer {665 private static class TileBoundsMapView extends JMapViewer { 666 666 private Point min; 667 667 private Point max; -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/ConflictResolver.java
r6814 r6883 56 56 * {@link #isResolvedCompletely()} 57 57 */ 58 static public final String RESOLVED_COMPLETELY_PROP = ConflictResolver.class.getName() + ".resolvedCompletely";58 public static final String RESOLVED_COMPLETELY_PROP = ConflictResolver.class.getName() + ".resolvedCompletely"; 59 59 /** 60 60 * name of the property for the {@link OsmPrimitive} in the role "my" 61 61 */ 62 static public final String MY_PRIMITIVE_PROP = ConflictResolver.class.getName() + ".myPrimitive";62 public static final String MY_PRIMITIVE_PROP = ConflictResolver.class.getName() + ".myPrimitive"; 63 63 64 64 /** 65 65 * name of the property for the {@link OsmPrimitive} in the role "my" 66 66 */ 67 static public final String THEIR_PRIMITIVE_PROP = ConflictResolver.class.getName() + ".theirPrimitive";67 public static final String THEIR_PRIMITIVE_PROP = ConflictResolver.class.getName() + ".theirPrimitive"; 68 68 69 69 private JTabbedPane tabbedPane = null; -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/ListMerger.java
r6666 r6883 80 80 private JLabel lblFrozenState; 81 81 82 abstract protectedJScrollPane buildMyElementsTable();83 abstract protectedJScrollPane buildMergedElementsTable();84 abstract protectedJScrollPane buildTheirElementsTable();82 protected abstract JScrollPane buildMyElementsTable(); 83 protected abstract JScrollPane buildMergedElementsTable(); 84 protected abstract JScrollPane buildTheirElementsTable(); 85 85 86 86 protected JScrollPane embeddInScrollPane(JTable table) { … … 770 770 } 771 771 772 static public interface FreezeActionProperties {772 public static interface FreezeActionProperties { 773 773 String PROP_SELECTED = FreezeActionProperties.class.getName() + ".selected"; 774 774 } -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/properties/PropertiesMergeModel.java
r5481 r6883 39 39 public class PropertiesMergeModel extends Observable { 40 40 41 static public final String RESOLVED_COMPLETELY_PROP = PropertiesMergeModel.class.getName() + ".resolvedCompletely";42 static public final String DELETE_PRIMITIVE_PROP = PropertiesMergeModel.class.getName() + ".deletePrimitive";41 public static final String RESOLVED_COMPLETELY_PROP = PropertiesMergeModel.class.getName() + ".resolvedCompletely"; 42 public static final String DELETE_PRIMITIVE_PROP = PropertiesMergeModel.class.getName() + ".deletePrimitive"; 43 43 44 44 private OsmPrimitive my; -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TagMergeModel.java
r5832 r6883 30 30 */ 31 31 public class TagMergeModel extends DefaultTableModel { 32 static public final String PROP_NUM_UNDECIDED_TAGS = TagMergeModel.class.getName() + ".numUndecidedTags";32 public static final String PROP_NUM_UNDECIDED_TAGS = TagMergeModel.class.getName() + ".numUndecidedTags"; 33 33 34 34 /** the list of tag merge items */ -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/MultiValueCellEditor.java
r6362 r6883 146 146 * 147 147 */ 148 static privateclass EditorCellRenderer extends JLabel implements ListCellRenderer {148 private static class EditorCellRenderer extends JLabel implements ListCellRenderer { 149 149 150 150 public EditorCellRenderer() { -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/PasteTagsConflictResolverDialog.java
r6264 r6883 44 44 45 45 public class PasteTagsConflictResolverDialog extends JDialog implements PropertyChangeListener { 46 static privatefinal Map<OsmPrimitiveType, String> PANE_TITLES;46 private static final Map<OsmPrimitiveType, String> PANE_TITLES; 47 47 static { 48 48 PANE_TITLES = new HashMap<OsmPrimitiveType, String>(); … … 354 354 } 355 355 356 static public class StatisticsInfo {356 public static class StatisticsInfo { 357 357 public int numTags; 358 358 public Map<OsmPrimitiveType, Integer> sourceInfo; … … 365 365 } 366 366 367 static privateclass StatisticsTableColumnModel extends DefaultTableColumnModel {367 private static class StatisticsTableColumnModel extends DefaultTableColumnModel { 368 368 public StatisticsTableColumnModel() { 369 369 TableCellRenderer renderer = new StatisticsInfoRenderer(); … … 393 393 } 394 394 395 static privateclass StatisticsTableModel extends DefaultTableModel {395 private static class StatisticsTableModel extends DefaultTableModel { 396 396 private static final String[] HEADERS = new String[] {tr("Paste ..."), tr("From ..."), tr("To ...") }; 397 397 private List<StatisticsInfo> data; … … 432 432 } 433 433 434 static privateclass StatisticsInfoRenderer extends JLabel implements TableCellRenderer {434 private static class StatisticsInfoRenderer extends JLabel implements TableCellRenderer { 435 435 protected void reset() { 436 436 setIcon(null); -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/RelationMemberConflictDecisionType.java
r3083 r6883 23 23 UNDECIDED; 24 24 25 static public void prepareLabel(RelationMemberConflictDecisionType decision, JLabel label) {25 public static void prepareLabel(RelationMemberConflictDecisionType decision, JLabel label) { 26 26 switch(decision) { 27 27 case REMOVE: -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/RelationMemberConflictResolverModel.java
r6802 r6883 28 28 public class RelationMemberConflictResolverModel extends DefaultTableModel { 29 29 /** the property name for the number conflicts managed by this model */ 30 static public final String NUM_CONFLICTS_PROP = RelationMemberConflictResolverModel.class.getName() + ".numConflicts";30 public static final String NUM_CONFLICTS_PROP = RelationMemberConflictResolverModel.class.getName() + ".numConflicts"; 31 31 32 32 /** the list of conflict decisions */ -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolverModel.java
r6806 r6883 20 20 21 21 public class TagConflictResolverModel extends DefaultTableModel { 22 static public final String NUM_CONFLICTS_PROP = TagConflictResolverModel.class.getName() + ".numConflicts";22 public static final String NUM_CONFLICTS_PROP = TagConflictResolverModel.class.getName() + ".numConflicts"; 23 23 24 24 private TagCollection tags; -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetCacheManagerModel.java
r6317 r6883 28 28 29 29 /** the name of the property for the currently selected changeset in the detail view */ 30 public final staticString CHANGESET_IN_DETAIL_VIEW_PROP = ChangesetCacheManagerModel.class.getName() + ".changesetInDetailView";30 public static final String CHANGESET_IN_DETAIL_VIEW_PROP = ChangesetCacheManagerModel.class.getName() + ".changesetInDetailView"; 31 31 32 32 private final List<Changeset> data = new ArrayList<Changeset>(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetContentTableModel.java
r6316 r6883 140 140 * 141 141 */ 142 static privateclass ChangesetContentEntry implements ChangesetDataSetEntry{142 private static class ChangesetContentEntry implements ChangesetDataSetEntry{ 143 143 private final ChangesetModificationType modificationType; 144 144 private final HistoryOsmPrimitive primitive; -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetHeaderDownloadTask.java
r6830 r6883 44 44 * @return the download task 45 45 */ 46 static public ChangesetHeaderDownloadTask buildTaskForChangesets(Collection<Changeset> changesets) {46 public static ChangesetHeaderDownloadTask buildTaskForChangesets(Collection<Changeset> changesets) { 47 47 return buildTaskForChangesets(Main.parent, changesets); 48 48 } … … 59 59 * @throws IllegalArgumentException thrown if parent is null 60 60 */ 61 static public ChangesetHeaderDownloadTask buildTaskForChangesets(Component parent, Collection<Changeset> changesets) {61 public static ChangesetHeaderDownloadTask buildTaskForChangesets(Component parent, Collection<Changeset> changesets) { 62 62 CheckParameterUtil.ensureParameterNotNull(parent, "parent"); 63 63 if (changesets == null) { -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/query/AdvancedChangesetQueryPanel.java
r6666 r6883 373 373 * 374 374 */ 375 static privateclass UserRestrictionPanel extends JPanel {375 private static class UserRestrictionPanel extends JPanel { 376 376 private ButtonGroup bgUserRestrictions; 377 377 private JRadioButton rbRestrictToMyself; … … 635 635 * This is the panel to apply a time restriction to the changeset query 636 636 */ 637 static privateclass TimeRestrictionPanel extends JPanel {637 private static class TimeRestrictionPanel extends JPanel { 638 638 639 639 private JRadioButton rbClosedAfter; … … 968 968 * 969 969 */ 970 static privateclass UidInputFieldValidator extends AbstractTextComponentValidator {971 static public UidInputFieldValidator decorate(JTextComponent tc) {970 private static class UidInputFieldValidator extends AbstractTextComponentValidator { 971 public static UidInputFieldValidator decorate(JTextComponent tc) { 972 972 return new UidInputFieldValidator(tc); 973 973 } … … 1015 1015 } 1016 1016 1017 static privateclass UserNameInputValidator extends AbstractTextComponentValidator {1018 static public UserNameInputValidator decorate(JTextComponent tc) {1017 private static class UserNameInputValidator extends AbstractTextComponentValidator { 1018 public static UserNameInputValidator decorate(JTextComponent tc) { 1019 1019 return new UserNameInputValidator(tc); 1020 1020 } … … 1046 1046 * Dates can be entered in one of four standard formats defined for the current locale. 1047 1047 */ 1048 static privateclass DateValidator extends AbstractTextComponentValidator {1049 static public DateValidator decorate(JTextComponent tc) {1048 private static class DateValidator extends AbstractTextComponentValidator { 1049 public static DateValidator decorate(JTextComponent tc) { 1050 1050 return new DateValidator(tc); 1051 1051 } … … 1109 1109 * Time values can be entered in one of four standard formats defined for the current locale. 1110 1110 */ 1111 static privateclass TimeValidator extends AbstractTextComponentValidator {1112 static public TimeValidator decorate(JTextComponent tc) {1111 private static class TimeValidator extends AbstractTextComponentValidator { 1112 public static TimeValidator decorate(JTextComponent tc) { 1113 1113 return new TimeValidator(tc); 1114 1114 } -
trunk/src/org/openstreetmap/josm/gui/download/BookmarkSelection.java
r6380 r6883 47 47 /** displays information about the current download area */ 48 48 private JMultilineLabel lblCurrentDownloadArea; 49 final privateJosmTextArea bboxDisplay = new JosmTextArea();49 private final JosmTextArea bboxDisplay = new JosmTextArea(); 50 50 /** the add action */ 51 51 private AddAction actAdd; -
trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java
r6509 r6883 48 48 49 49 /** 50 * 50 * Dialog displayed to download OSM and/or GPS data from OSM server. 51 51 */ 52 52 public class DownloadDialog extends JDialog { 53 53 /** the unique instance of the download dialog */ 54 static privateDownloadDialog instance;54 private static DownloadDialog instance; 55 55 56 56 /** … … 59 59 * @return the unique instance of the download dialog 60 60 */ 61 static public DownloadDialog getInstance() {61 public static DownloadDialog getInstance() { 62 62 if (instance == null) { 63 63 instance = new DownloadDialog(Main.parent); -
trunk/src/org/openstreetmap/josm/gui/download/PlaceSelection.java
r6822 r6883 70 70 private JTable tblSearchResults; 71 71 private DownloadDialog parent; 72 private final static Server[] servers = new Server[]{ 73 new Server("Nominatim","http://nominatim.openstreetmap.org/search?format=xml&q=",tr("Class Type"),tr("Bounds")), 74 //new Server("Namefinder","http://gazetteer.openstreetmap.org/namefinder/search.xml?find=",tr("Near"),trc("placeselection", "Zoom")) 72 private static final Server[] SERVERS = new Server[] { 73 new Server("Nominatim","http://nominatim.openstreetmap.org/search?format=xml&q=",tr("Class Type"),tr("Bounds")) 75 74 }; 76 private final JosmComboBox server = new JosmComboBox( servers);75 private final JosmComboBox server = new JosmComboBox(SERVERS); 77 76 78 77 private static class Server { … … 101 100 lpanel.add(new JLabel(tr("Choose the server for searching:"))); 102 101 lpanel.add(server); 103 String s = Main.pref.get("namefinder.server", servers[0].name);104 for (int i = 0; i < servers.length; ++i) {105 if ( servers[i].name.equals(s)) {102 String s = Main.pref.get("namefinder.server", SERVERS[0].name); 103 for (int i = 0; i < SERVERS.length; ++i) { 104 if (SERVERS[i].name.equals(s)) { 106 105 server.setSelectedIndex(i); 107 106 } … … 172 171 * Data storage for search results. 173 172 */ 174 static privateclass SearchResult {173 private static class SearchResult { 175 174 public String name; 176 175 public String info; … … 450 449 // column 2 - Near 451 450 col3 = new TableColumn(2); 452 col3.setHeaderValue( servers[0].thirdcol);451 col3.setHeaderValue(SERVERS[0].thirdcol); 453 452 col3.setResizable(true); 454 453 col3.setPreferredWidth(100); … … 458 457 // column 3 - Zoom 459 458 col4 = new TableColumn(3); 460 col4.setHeaderValue( servers[0].fourthcol);459 col4.setHeaderValue(SERVERS[0].fourthcol); 461 460 col4.setResizable(true); 462 461 col4.setPreferredWidth(50); -
trunk/src/org/openstreetmap/josm/gui/help/HelpBrowser.java
r6827 r6883 72 72 * @return the unique instance of the help browser 73 73 */ 74 static public HelpBrowser getInstance() {74 public static HelpBrowser getInstance() { 75 75 if (instance == null) { 76 76 instance = new HelpBrowser(); … … 103 103 * @param helpTopic the help topic 104 104 */ 105 static public void launchBrowser(String helpTopic) {105 public static void launchBrowser(String helpTopic) { 106 106 HelpBrowser browser = getInstance(); 107 107 browser.openHelpTopic(helpTopic); -
trunk/src/org/openstreetmap/josm/gui/history/CoordinateInfoViewer.java
r6105 r6883 29 29 30 30 /** background color used when the coordinates are different */ 31 public final staticColor BGCOLOR_DIFFERENCE = new Color(255,197,197);31 public static final Color BGCOLOR_DIFFERENCE = new Color(255,197,197); 32 32 33 33 /** the model */ -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialogManager.java
r6743 r6883 27 27 28 28 public class HistoryBrowserDialogManager implements MapView.LayerChangeListener { 29 static privateHistoryBrowserDialogManager instance;30 static public HistoryBrowserDialogManager getInstance() {29 private static HistoryBrowserDialogManager instance; 30 public static HistoryBrowserDialogManager getInstance() { 31 31 if (instance == null) { 32 32 instance = new HistoryBrowserDialogManager(); -
trunk/src/org/openstreetmap/josm/gui/history/NodeListTableCellRenderer.java
r6084 r6883 17 17 public class NodeListTableCellRenderer extends JLabel implements TableCellRenderer { 18 18 19 public final staticColor BGCOLOR_SELECTED = new Color(143,170,255);19 public static final Color BGCOLOR_SELECTED = new Color(143,170,255); 20 20 21 21 private ImageIcon nodeIcon; 22 22 23 /** 24 * Constructs a new {@code NodeListTableCellRenderer}. 25 */ 23 26 public NodeListTableCellRenderer(){ 24 27 setOpaque(true); -
trunk/src/org/openstreetmap/josm/gui/history/NodeListViewer.java
r6792 r6883 280 280 } 281 281 282 static privatePrimitiveId primitiveIdAtRow(TableModel model, int row) {282 private static PrimitiveId primitiveIdAtRow(TableModel model, int row) { 283 283 DiffTableModel castedModel = (DiffTableModel) model; 284 284 Long id = (Long)castedModel.getValueAt(row, 0).value; -
trunk/src/org/openstreetmap/josm/gui/history/RelationMemberListTableCellRenderer.java
r6316 r6883 26 26 public class RelationMemberListTableCellRenderer extends JLabel implements TableCellRenderer { 27 27 28 public final staticColor BGCOLOR_EMPTY_ROW = new Color(234,234,234);29 public final staticColor BGCOLOR_NOT_IN_OPPOSITE = new Color(255,197,197);30 public final staticColor BGCOLOR_IN_OPPOSITE = new Color(255,234,213);31 public final staticColor BGCOLOR_SELECTED = new Color(143,170,255);28 public static final Color BGCOLOR_EMPTY_ROW = new Color(234,234,234); 29 public static final Color BGCOLOR_NOT_IN_OPPOSITE = new Color(255,197,197); 30 public static final Color BGCOLOR_IN_OPPOSITE = new Color(255,234,213); 31 public static final Color BGCOLOR_SELECTED = new Color(143,170,255); 32 32 33 33 private Map<OsmPrimitiveType, ImageIcon> icons; 34 34 35 public RelationMemberListTableCellRenderer(){ 35 /** 36 * Constructs a new {@code RelationMemberListTableCellRenderer}. 37 */ 38 public RelationMemberListTableCellRenderer() { 36 39 setOpaque(true); 37 40 icons = new HashMap<OsmPrimitiveType, ImageIcon>(); -
trunk/src/org/openstreetmap/josm/gui/history/TagTableCellRenderer.java
r6084 r6883 18 18 */ 19 19 public class TagTableCellRenderer extends JLabel implements TableCellRenderer { 20 public final staticColor BGCOLOR_DIFFERENCE = new Color(255,197,197);20 public static final Color BGCOLOR_DIFFERENCE = new Color(255,197,197); 21 21 22 /** 23 * Constructs a new {@code TagTableCellRenderer}. 24 */ 22 25 public TagTableCellRenderer() { 23 26 setOpaque(true); -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r6822 r6883 657 657 syncDialog.pack(); 658 658 syncDialog.addWindowListener(new WindowAdapter() { 659 final staticint CANCEL = -1;660 final staticint DONE = 0;661 final staticint AGAIN = 1;662 final staticint NOTHING = 2;659 static final int CANCEL = -1; 660 static final int DONE = 0; 661 static final int AGAIN = 1; 662 static final int NOTHING = 2; 663 663 private int checkAndSave() { 664 664 if (syncDialog.isVisible()) … … 686 686 } 687 687 688 if (lastNumMatched == 0) { 689 if (new ExtendedDialog( 688 if (lastNumMatched == 0 && new ExtendedDialog( 690 689 Main.parent, 691 690 tr("Correlate images with GPX track"), … … 694 693 setButtonIcons(new String[] { "ok.png", "dialogs/refresh.png"}). 695 694 showDialog().getValue() == 2) 696 return AGAIN; 697 } 695 return AGAIN; 698 696 return DONE; 699 697 } … … 1084 1082 } 1085 1083 1086 if (e.getExifCoor() != null) { 1087 if (!exif) { 1088 continue; 1089 } 1090 } 1091 1092 if (e.isTagged() && e.getExifCoor() == null) { 1093 if (!tagged) { 1094 continue; 1095 } 1084 if (e.getExifCoor() != null && !exif) { 1085 continue; 1086 } 1087 1088 if (e.isTagged() && e.getExifCoor() == null && !tagged) { 1089 continue; 1096 1090 } 1097 1091 -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageEntry.java
r6798 r6883 12 12 * Stores info about each image 13 13 */ 14 final publicclass ImageEntry implements Comparable<ImageEntry>, Cloneable {14 public final class ImageEntry implements Comparable<ImageEntry>, Cloneable { 15 15 private File file; 16 16 private Integer exifOrientation; -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/JpegFileFilter.java
r6296 r6883 6 6 import java.io.File; 7 7 8 class JpegFileFilter extends javax.swing.filechooser.FileFilter 9 implements java.io.FileFilter { 8 class JpegFileFilter extends javax.swing.filechooser.FileFilter implements java.io.FileFilter { 10 9 11 static final privateJpegFileFilter instance = new JpegFileFilter();10 private static final JpegFileFilter instance = new JpegFileFilter(); 12 11 public static JpegFileFilter getInstance() { 13 12 return instance; 14 13 } 15 14 16 @Override public boolean accept(File f) { 15 @Override 16 public boolean accept(File f) { 17 17 if (f.isDirectory()) { 18 18 return true; … … 23 23 } 24 24 25 @Override public String getDescription() { 25 @Override 26 public String getDescription() { 26 27 return tr("JPEG images (*.jpg)"); 27 28 } -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java
r6830 r6883 88 88 // will make gui for it so I'm keeping it here 89 89 90 private final static Map<String, TemplateEntryProperty> cache= new HashMap<String, TemplateEntryProperty>();90 private static final Map<String, TemplateEntryProperty> CACHE = new HashMap<String, TemplateEntryProperty>(); 91 91 92 92 // Legacy code - convert label from int to template engine expression … … 111 111 key += "." + layerName; 112 112 } 113 TemplateEntryProperty result = cache.get(key);113 TemplateEntryProperty result = CACHE.get(key); 114 114 if (result == null) { 115 115 String defaultValue = layerName == null ? getDefaultLabelPattern():""; … … 117 117 try { 118 118 result = new TemplateEntryProperty(key, defaultValue, parent); 119 cache.put(key, result);119 CACHE.put(key, result); 120 120 } catch (ParseError e) { 121 121 Main.warn("Unable to parse template engine pattern ''{0}'' for property {1}", defaultValue, key); … … 130 130 key += "." + layerName; 131 131 } 132 TemplateEntryProperty result = cache.get(key);132 TemplateEntryProperty result = CACHE.get(key); 133 133 if (result == null) { 134 134 String defaultValue = layerName == null?"?{ '{name}' | '{desc}' | '{" + Marker.MARKER_FORMATTED_OFFSET + "}' }":""; … … 136 136 try { 137 137 result = new TemplateEntryProperty(key, defaultValue, parent); 138 cache.put(key, result);138 CACHE.put(key, result); 139 139 } catch (ParseError e) { 140 140 Main.warn("Unable to parse template engine pattern ''{0}'' for property {1}", defaultValue, key); -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/MarkerLayer.java
r6380 r6883 172 172 * Return a static icon. 173 173 */ 174 @Override public Icon getIcon() { 174 @Override 175 public Icon getIcon() { 175 176 return ImageProvider.get("layer", "marker_small"); 176 177 } 177 178 178 179 @Override 179 public Color getColor(boolean ignoreCustom) 180 { 180 public Color getColor(boolean ignoreCustom) { 181 181 String name = getName(); 182 182 return Main.pref.getColor(marktr("gps marker"), name != null ? "layer "+name : null, Color.gray); … … 184 184 185 185 /* for preferences */ 186 static public Color getGenericColor() 187 { 186 public static Color getGenericColor() { 188 187 return Main.pref.getColor(marktr("gps marker"), Color.gray); 189 188 } 190 189 191 @Override public void paint(Graphics2D g, MapView mv, Bounds box) { 190 @Override 191 public void paint(Graphics2D g, MapView mv, Bounds box) { 192 192 boolean showTextOrIcon = isTextOrIconShown(); 193 193 g.setColor(getColor(true)); -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/PlayHeadMarker.java
r6830 r6883 38 38 private Timer timer = null; 39 39 private double animationInterval = 0.0; // seconds 40 static privatePlayHeadMarker playHead = null;40 private static PlayHeadMarker playHead = null; 41 41 private MapMode oldMode = null; 42 42 private LatLon oldCoor; … … 152 152 * layer, even if it is only one at the start of the track) to 153 153 * offset the audio from */ 154 if (cw != null) { 155 if (recent != null && recent.parentLayer != null) { 156 for (Marker m : recent.parentLayer.data) { 157 if (m instanceof AudioMarker) { 158 AudioMarker a = (AudioMarker) m; 159 if (a.time > cw.time) { 160 break; 161 } 162 ca = a; 154 if (cw != null && recent != null && recent.parentLayer != null) { 155 for (Marker m : recent.parentLayer.data) { 156 if (m instanceof AudioMarker) { 157 AudioMarker a = (AudioMarker) m; 158 if (a.time > cw.time) { 159 break; 163 160 } 161 ca = a; 164 162 } 165 163 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/AreaElemStyle.java
r5571 r6883 17 17 import org.openstreetmap.josm.tools.Utils; 18 18 19 public class AreaElemStyle extends ElemStyle 20 { 19 public class AreaElemStyle extends ElemStyle { 20 21 21 /** 22 22 * If fillImage == null, color is the fill-color, otherwise … … 79 79 @Override 80 80 public void paintPrimitive(OsmPrimitive osm, MapPaintSettings paintSettings, StyledMapRenderer painter, boolean selected, boolean member) { 81 if (osm instanceof Way) 82 { 81 if (osm instanceof Way) { 83 82 Color myColor = color; 84 if (color != null) { 85 if (osm.isSelected()) { 86 myColor = paintSettings.getSelectedColor(color.getAlpha()); 87 } 83 if (color != null && osm.isSelected()) { 84 myColor = paintSettings.getSelectedColor(color.getAlpha()); 88 85 } 89 86 painter.drawArea((Way) osm, myColor, fillImage, text); 90 } else if (osm instanceof Relation) 91 { 87 } else if (osm instanceof Relation) { 92 88 Color myColor = color; 93 if (color != null) { 94 if (selected) { 95 myColor = paintSettings.getRelationSelectedColor(color.getAlpha()); 96 } 89 if (color != null && selected) { 90 myColor = paintSettings.getRelationSelectedColor(color.getAlpha()); 97 91 } 98 92 painter.drawArea((Relation) osm, myColor, fillImage, text); -
trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java
r6867 r6883 206 206 for (StyleSource source : styles.getStyleSources()) { 207 207 source.loadStyleSource(); 208 if (Main.pref.getBoolean("mappaint.auto_reload_local_styles", true)) { 209 if (source.isLocal()) { 210 File f = new File(source.url); 211 source.setLastMTime(f.lastModified()); 212 } 208 if (Main.pref.getBoolean("mappaint.auto_reload_local_styles", true) && source.isLocal()) { 209 File f = new File(source.url); 210 source.setLastMTime(f.lastModified()); 213 211 } 214 212 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/CSSColors.java
r6362 r6883 7 7 8 8 public final class CSSColors { 9 private final staticMap<String, Color> CSS_COLORS = new HashMap<String, Color>();9 private static final Map<String, Color> CSS_COLORS = new HashMap<String, Color>(); 10 10 static { 11 11 Object[][] CSSCOLORS_INIT = new Object[][] { -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Condition.java
r6859 r6883 22 22 import org.openstreetmap.josm.tools.Utils; 23 23 24 abstract publicclass Condition {25 26 abstract publicboolean applies(Environment e);24 public abstract class Condition { 25 26 public abstract boolean applies(Environment e); 27 27 28 28 public static Condition createKeyValueCondition(String k, String v, Op op, Context context, boolean considerValAsKey) { … … 132 132 133 133 /** 134 * context, where the condition applies134 * Context, where the condition applies. 135 135 */ 136 136 public static enum Context { … … 146 146 } 147 147 148 public final staticEnumSet<Op> COMPARISON_OPERATERS =148 public static final EnumSet<Op> COMPARISON_OPERATERS = 149 149 EnumSet.of(Op.GREATER_OR_EQUAL, Op.GREATER, Op.LESS_OR_EQUAL, Op.LESS); 150 150 -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java
r6830 r6883 589 589 public static class NullExpression implements Expression { 590 590 591 final public static NullExpression INSTANCE = new NullExpression(); 591 /** 592 * The unique instance. 593 */ 594 public static final NullExpression INSTANCE = new NullExpression(); 592 595 593 596 @Override -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Instruction.java
r6611 r6883 11 11 import org.openstreetmap.josm.gui.mappaint.StyleKeys; 12 12 13 abstract publicclass Instruction implements StyleKeys {13 public abstract class Instruction implements StyleKeys { 14 14 15 15 public abstract void execute(Environment env); -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Selector.java
r6830 r6883 311 311 312 312 /** 313 * Super class of {@link GeneralSelector} and {@link LinkSelector} 313 * Super class of {@link GeneralSelector} and {@link LinkSelector}. 314 314 * @since 5841 315 315 */ 316 public static abstractclass AbstractSelector implements Selector {316 public abstract static class AbstractSelector implements Selector { 317 317 318 318 protected final List<Condition> conds; … … 466 466 } 467 467 468 final staticdouble R = 6378135;468 static final double R = 6378135; 469 469 470 470 public static double level2scale(int lvl) { -
trunk/src/org/openstreetmap/josm/gui/mappaint/xml/Prototype.java
r6821 r6883 8 8 import org.openstreetmap.josm.gui.mappaint.Range; 9 9 10 abstract publicclass Prototype {10 public abstract class Prototype { 11 11 // zoom range to display the feature 12 12 public Range range; -
trunk/src/org/openstreetmap/josm/gui/oauth/AbstractAuthorizationUI.java
r5422 r6883 17 17 * The property name for the Access Token property 18 18 */ 19 static public final String ACCESS_TOKEN_PROP = AbstractAuthorizationUI.class.getName() + ".accessToken";19 public static final String ACCESS_TOKEN_PROP = AbstractAuthorizationUI.class.getName() + ".accessToken"; 20 20 21 21 private String apiUrl; -
trunk/src/org/openstreetmap/josm/gui/oauth/AdvancedOAuthPropertiesPanel.java
r6847 r6883 288 288 switch (e.getStateChange()) { 289 289 case ItemEvent.SELECTED: 290 if (hasCustomSettings()) { 291 if (!confirmOverwriteCustomSettings()) { 292 cbUseDefaults.setSelected(false); 293 return; 294 } 290 if (hasCustomSettings() && !confirmOverwriteCustomSettings()) { 291 cbUseDefaults.setSelected(false); 292 return; 295 293 } 296 294 resetToDefaultSettings(); -
trunk/src/org/openstreetmap/josm/gui/oauth/AuthorizationProcedureComboBox.java
r6084 r6883 15 15 public class AuthorizationProcedureComboBox extends JosmComboBox { 16 16 17 /** 18 * Constructs a new {@code AuthorizationProcedureComboBox}. 19 */ 17 20 public AuthorizationProcedureComboBox() { 18 21 super(AuthorizationProcedure.values()); … … 21 24 } 22 25 23 static privateclass AuthorisationProcedureCellRenderer extends JLabel implements ListCellRenderer {26 private static class AuthorisationProcedureCellRenderer extends JLabel implements ListCellRenderer { 24 27 public AuthorisationProcedureCellRenderer() { 25 28 setOpaque(true); -
trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorizationUI.java
r6666 r6883 401 401 } 402 402 403 404 static private class UserNameValidator extends AbstractTextComponentValidator { 403 private static class UserNameValidator extends AbstractTextComponentValidator { 405 404 public UserNameValidator(JTextComponent tc) { 406 405 super(tc); … … 422 421 } 423 422 424 static privateclass PasswordValidator extends AbstractTextComponentValidator {423 private static class PasswordValidator extends AbstractTextComponentValidator { 425 424 426 425 public PasswordValidator(JTextComponent tc) { -
trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticPropertiesPanel.java
r6335 r6883 55 55 } 56 56 57 57 /** 58 * Constructs a new {@code FullyAutomaticPropertiesPanel}. 59 */ 58 60 public FullyAutomaticPropertiesPanel() { 59 61 setLayout(new GridBagLayout()); … … 72 74 } 73 75 74 static privateclass UserNameValidator extends AbstractTextComponentValidator {76 private static class UserNameValidator extends AbstractTextComponentValidator { 75 77 76 78 public UserNameValidator(JTextComponent tc) { -
trunk/src/org/openstreetmap/josm/gui/oauth/ManualAuthorizationUI.java
r6087 r6883 196 196 } 197 197 198 static privateclass AccessTokenSecretValidator extends AbstractTextComponentValidator {198 private static class AccessTokenSecretValidator extends AbstractTextComponentValidator { 199 199 public AccessTokenSecretValidator(JTextComponent tc) throws IllegalArgumentException { 200 200 super(tc); -
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java
r6670 r6883 143 143 // all created tabs 144 144 private final List<PreferenceTab> tabs = new ArrayList<PreferenceTab>(); 145 private final staticCollection<PreferenceSettingFactory> settingsFactory = new LinkedList<PreferenceSettingFactory>();145 private static final Collection<PreferenceSettingFactory> settingsFactory = new LinkedList<PreferenceSettingFactory>(); 146 146 private final List<PreferenceSetting> settings = new ArrayList<PreferenceSetting>(); 147 147 -
trunk/src/org/openstreetmap/josm/gui/preferences/SourceEditor.java
r6729 r6883 375 375 * Load the list of source entries that the user has configured. 376 376 */ 377 abstract publicCollection<? extends SourceEntry> getInitialSourcesList();377 public abstract Collection<? extends SourceEntry> getInitialSourcesList(); 378 378 379 379 /** 380 380 * Load the list of configured icon paths. 381 381 */ 382 abstract publicCollection<String> getInitialIconPathsList();382 public abstract Collection<String> getInitialIconPathsList(); 383 383 384 384 /** 385 385 * Get the default list of entries (used when resetting the list). 386 386 */ 387 abstract publicCollection<ExtendedSourceEntry> getDefault();387 public abstract Collection<ExtendedSourceEntry> getDefault(); 388 388 389 389 /** … … 391 391 * @return true if restart is required 392 392 */ 393 abstract publicboolean finish();393 public abstract boolean finish(); 394 394 395 395 /** 396 396 * Provide the GUI strings. (There are differences for MapPaint and Preset) 397 397 */ 398 abstract protectedString getStr(I18nString ident);398 protected abstract String getStr(I18nString ident); 399 399 400 400 /** … … 1543 1543 } 1544 1544 1545 abstract publicstatic class SourcePrefHelper {1545 public abstract static class SourcePrefHelper { 1546 1546 1547 1547 private final String pref; … … 1559 1559 * @return the default sources provided by JOSM core 1560 1560 */ 1561 abstract publicCollection<ExtendedSourceEntry> getDefault();1562 1563 abstract publicMap<String, String> serialize(SourceEntry entry);1564 1565 abstract publicSourceEntry deserialize(Map<String, String> entryStr);1561 public abstract Collection<ExtendedSourceEntry> getDefault(); 1562 1563 public abstract Map<String, String> serialize(SourceEntry entry); 1564 1565 public abstract SourceEntry deserialize(Map<String, String> entryStr); 1566 1566 1567 1567 /** -
trunk/src/org/openstreetmap/josm/gui/preferences/display/LanguagePreference.java
r6783 r6883 109 109 } 110 110 111 static privateclass LanguageCellRenderer extends DefaultListCellRenderer {111 private static class LanguageCellRenderer extends DefaultListCellRenderer { 112 112 private ListCellRenderer dispatch; 113 113 public LanguageCellRenderer(ListCellRenderer dispatch) { -
trunk/src/org/openstreetmap/josm/gui/preferences/map/MapPaintPreference.java
r6733 r6883 189 189 * The unique instance. 190 190 */ 191 public final staticMapPaintPrefHelper INSTANCE = new MapPaintPrefHelper();191 public static final MapPaintPrefHelper INSTANCE = new MapPaintPrefHelper(); 192 192 193 193 /** -
trunk/src/org/openstreetmap/josm/gui/preferences/map/TaggingPresetPreference.java
r6856 r6883 325 325 * The unique instance. 326 326 */ 327 public final staticPresetPrefHelper INSTANCE = new PresetPrefHelper();327 public static final PresetPrefHelper INSTANCE = new PresetPrefHelper(); 328 328 329 329 /** -
trunk/src/org/openstreetmap/josm/gui/preferences/server/OsmApiUrlInputPanel.java
r6814 r6883 45 45 * OSM API URL property key. 46 46 */ 47 static public final String API_URL_PROP = OsmApiUrlInputPanel.class.getName() + ".apiUrl";47 public static final String API_URL_PROP = OsmApiUrlInputPanel.class.getName() + ".apiUrl"; 48 48 49 49 private JLabel lblValid; … … 241 241 } 242 242 243 static privateclass ApiUrlValidator extends AbstractTextComponentValidator {243 private static class ApiUrlValidator extends AbstractTextComponentValidator { 244 244 public ApiUrlValidator(JTextComponent tc) throws IllegalArgumentException { 245 245 super(tc); -
trunk/src/org/openstreetmap/josm/gui/preferences/server/ProxyPreferencesPanel.java
r6643 r6883 72 72 * @return The proxy policy matching the given name, or {@code null} 73 73 */ 74 static public ProxyPolicy fromName(String policyName) {74 public static ProxyPolicy fromName(String policyName) { 75 75 if (policyName == null) return null; 76 76 policyName = policyName.trim().toLowerCase(); -
trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorModel.java
r6830 r6883 33 33 @SuppressWarnings("serial") 34 34 public class TagEditorModel extends AbstractTableModel { 35 static public final String PROP_DIRTY = TagEditorModel.class.getName() + ".dirty";35 public static final String PROP_DIRTY = TagEditorModel.class.getName() + ".dirty"; 36 36 37 37 /** the list holding the tags */ -
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
r6844 r6883 77 77 public String locale_name; 78 78 public boolean preset_name_label; 79 public final staticString OPTIONAL_TOOLTIP_TEXT = "Optional tooltip text";79 public static final String OPTIONAL_TOOLTIP_TEXT = "Optional tooltip text"; 80 80 81 81 /** -
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPresetItems.java
r6830 r6883 304 304 * @since 6190 305 305 */ 306 public static abstractclass TaggingPresetTextItem extends TaggingPresetItem {306 public abstract static class TaggingPresetTextItem extends TaggingPresetItem { 307 307 308 308 /** … … 505 505 } 506 506 507 public static abstractclass KeyedItem extends TaggingPresetItem {507 public abstract static class KeyedItem extends TaggingPresetItem { 508 508 509 509 public String key; … … 893 893 } 894 894 895 public static abstractclass ComboMultiSelect extends KeyedItem {895 public abstract static class ComboMultiSelect extends KeyedItem { 896 896 897 897 public String locale_text; … … 1357 1357 } 1358 1358 } 1359 static public EnumSet<TaggingPresetType> getType(String types) throws SAXException { 1359 1360 public static EnumSet<TaggingPresetType> getType(String types) throws SAXException { 1360 1361 if (typeCache.containsKey(types)) 1361 1362 return typeCache.get(types); -
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPresetSelector.java
r6844 r6883 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.tagging; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 3 5 4 6 import java.awt.BorderLayout; … … 18 20 import java.util.EnumSet; 19 21 import java.util.HashSet; 20 import java.util.LinkedList;21 22 import java.util.List; 23 22 24 import javax.swing.AbstractAction; 23 25 import javax.swing.AbstractListModel; … … 36 38 import javax.swing.event.ListSelectionEvent; 37 39 import javax.swing.event.ListSelectionListener; 40 38 41 import org.openstreetmap.josm.Main; 39 42 import org.openstreetmap.josm.data.SelectionChangedListener; … … 43 46 import org.openstreetmap.josm.data.osm.Way; 44 47 import org.openstreetmap.josm.data.preferences.BooleanProperty; 45 import org.openstreetmap.josm.gui.preferences.ToolbarPreferences;46 48 import org.openstreetmap.josm.gui.preferences.map.TaggingPresetPreference; 47 49 import org.openstreetmap.josm.gui.tagging.TaggingPresetItems.Key; … … 50 52 import org.openstreetmap.josm.gui.tagging.TaggingPresetItems.Roles; 51 53 import org.openstreetmap.josm.gui.widgets.JosmTextField; 52 import org.openstreetmap.josm.gui.widgets.ListPopupMenu;53 54 import org.openstreetmap.josm.gui.widgets.PopupMenuLauncher; 54 import static org.openstreetmap.josm.tools.I18n.tr;55 55 56 56 /** … … 77 77 private final List<PresetClassification> classifications = new ArrayList<PresetClassification>(); 78 78 private ResultListModel lsResultModel = new ResultListModel(); 79 private JPopupMenu popupMenu;80 79 81 80 private ActionListener dblClickListener; … … 297 296 setPreferredSize(new Dimension(400, 300)); 298 297 filterPresets(); 299 popupMenu = new JPopupMenu();298 JPopupMenu popupMenu = new JPopupMenu(); 300 299 popupMenu.add(new AbstractAction(tr("Add toolbar button")) { 301 300 @Override … … 435 434 init(); 436 435 } 437 438 436 439 437 public void clearSelection() { -
trunk/src/org/openstreetmap/josm/gui/widgets/AbstractTextComponentValidator.java
r6362 r6883 33 33 */ 34 34 public abstract class AbstractTextComponentValidator implements ActionListener, FocusListener, DocumentListener, PropertyChangeListener{ 35 static final privateBorder ERROR_BORDER = BorderFactory.createLineBorder(Color.RED, 1);36 static final privateColor ERROR_BACKGROUND = new Color(255,224,224);35 private static final Border ERROR_BORDER = BorderFactory.createLineBorder(Color.RED, 1); 36 private static final Color ERROR_BACKGROUND = new Color(255,224,224); 37 37 38 38 private JTextComponent tc; -
trunk/src/org/openstreetmap/josm/gui/widgets/BoundingBoxSelectionPanel.java
r6380 r6883 121 121 } 122 122 123 static privateclass LatitudeValidator extends AbstractTextComponentValidator {123 private static class LatitudeValidator extends AbstractTextComponentValidator { 124 124 125 125 public static void decorate(JTextComponent tc) { … … 161 161 } 162 162 163 static privateclass LongitudeValidator extends AbstractTextComponentValidator{163 private static class LongitudeValidator extends AbstractTextComponentValidator{ 164 164 165 165 public static void decorate(JTextComponent tc) { -
trunk/src/org/openstreetmap/josm/io/auth/AbstractCredentialsAgent.java
r6087 r6883 10 10 import org.openstreetmap.josm.gui.util.GuiHelper; 11 11 12 abstract publicclass AbstractCredentialsAgent implements CredentialsAgent {12 public abstract class AbstractCredentialsAgent implements CredentialsAgent { 13 13 14 14 protected Map<RequestorType, PasswordAuthentication> memoryCredentialsCache = new HashMap<RequestorType, PasswordAuthentication>(); -
trunk/src/org/openstreetmap/josm/io/auth/CredentialsManager.java
r6349 r6883 27 27 * @return the single credential agent used in JOSM 28 28 */ 29 static public CredentialsManager getInstance() {29 public static CredentialsManager getInstance() { 30 30 if (instance == null) { 31 31 CredentialsAgent delegate; -
trunk/src/org/openstreetmap/josm/io/imagery/Grabber.java
r6643 r6883 8 8 import org.openstreetmap.josm.gui.layer.WMSLayer; 9 9 10 abstract publicclass Grabber implements Runnable {10 public abstract class Grabber implements Runnable { 11 11 protected final MapView mv; 12 12 protected final WMSLayer layer; … … 27 27 return layer.getBaseImageWidth(); 28 28 } 29 29 30 int height(){ 30 31 return layer.getBaseImageHeight(); … … 81 82 } 82 83 83 abstract publicboolean loadFromCache(WMSRequest request);84 public abstract boolean loadFromCache(WMSRequest request); 84 85 85 86 public void cancel() { 86 87 canceled = true; 87 88 } 88 89 89 } -
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/RequestHandler.java
r6869 r6883 93 93 * @return the message 94 94 */ 95 abstract publicString getPermissionMessage();95 public abstract String getPermissionMessage(); 96 96 97 97 /** … … 105 105 * @return the preference name and error message or null 106 106 */ 107 abstract publicPermissionPrefWithDefault getPermissionPref();108 109 abstract publicString[] getMandatoryParams();107 public abstract PermissionPrefWithDefault getPermissionPref(); 108 109 public abstract String[] getMandatoryParams(); 110 110 111 111 public String[] getOptionalParams() { … … 137 137 * @throws RequestHandlerForbiddenException 138 138 */ 139 final public void checkPermission() throws RequestHandlerForbiddenException 140 { 139 public final void checkPermission() throws RequestHandlerForbiddenException { 141 140 /* 142 141 * If the subclass defines a specific preference and if this is set … … 147 146 */ 148 147 PermissionPrefWithDefault permissionPref = getPermissionPref(); 149 if((permissionPref != null) && (permissionPref.pref != null)) 150 { 148 if (permissionPref != null && permissionPref.pref != null) { 151 149 if (!Main.pref.getBoolean(permissionPref.pref, permissionPref.defaultVal)) { 152 150 String err = MessageFormat.format("RemoteControl: ''{0}'' forbidden by preferences", myCommand); -
trunk/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java
r6867 r6883 90 90 } 91 91 92 @Override protected void cancel() { 92 @Override 93 protected void cancel() { 93 94 this.canceled = true; 94 95 synchronized(this) { … … 99 100 } 100 101 101 @Override protected void finish() {} 102 @Override 103 protected void finish() {} 102 104 103 105 protected void download(PluginInformation pi, File file) throws PluginDownloadException{ … … 152 154 } 153 155 154 @Override protected void realRun() throws SAXException, IOException { 156 @Override 157 protected void realRun() throws SAXException, IOException { 155 158 File pluginDir = Main.pref.getPluginsDirectory(); 156 if (!pluginDir.exists()) { 157 if (!pluginDir.mkdirs()) { 158 lastException = new PluginDownloadException(tr("Failed to create plugin directory ''{0}''", pluginDir.toString())); 159 failed.addAll(toUpdate); 160 return; 161 } 159 if (!pluginDir.exists() && !pluginDir.mkdirs()) { 160 lastException = new PluginDownloadException(tr("Failed to create plugin directory ''{0}''", pluginDir.toString())); 161 failed.addAll(toUpdate); 162 return; 162 163 } 163 164 getProgressMonitor().setTicksCount(toUpdate.size()); -
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r6839 r6883 78 78 * Deprecated plugins that are removed on start 79 79 */ 80 public final staticCollection<DeprecatedPlugin> DEPRECATED_PLUGINS;80 public static final Collection<DeprecatedPlugin> DEPRECATED_PLUGINS; 81 81 static { 82 82 String IN_CORE = tr("integrated into main program"); … … 195 195 * All installed and loaded plugins (resp. their main classes) 196 196 */ 197 public final staticCollection<PluginProxy> pluginList = new LinkedList<PluginProxy>();197 public static final Collection<PluginProxy> pluginList = new LinkedList<PluginProxy>(); 198 198 199 199 /** … … 1035 1035 File plugin = new File(filePath.substring(0, filePath.length() - 4)); 1036 1036 String pluginName = updatedPlugin.getName().substring(0, updatedPlugin.getName().length() - 8); 1037 if (plugin.exists()) { 1038 if (!plugin.delete() && dowarn) { 1039 Main.warn(tr("Failed to delete outdated plugin ''{0}''.", plugin.toString())); 1040 Main.warn(tr("Failed to install already downloaded plugin ''{0}''. Skipping installation. JOSM is still going to load the old plugin version.", pluginName)); 1041 continue; 1042 } 1037 if (plugin.exists() && !plugin.delete() && dowarn) { 1038 Main.warn(tr("Failed to delete outdated plugin ''{0}''.", plugin.toString())); 1039 Main.warn(tr("Failed to install already downloaded plugin ''{0}''. Skipping installation. JOSM is still going to load the old plugin version.", pluginName)); 1040 continue; 1043 1041 } 1044 1042 try { … … 1324 1322 } 1325 1323 1326 static privateclass UpdatePluginsMessagePanel extends JPanel {1324 private static class UpdatePluginsMessagePanel extends JPanel { 1327 1325 private JMultilineLabel lblMessage; 1328 1326 private JCheckBox cbDontShowAgain; -
trunk/src/org/openstreetmap/josm/plugins/ReadRemotePluginInformationTask.java
r6839 r6883 325 325 try { 326 326 File pluginDir = Main.pref.getPluginsDirectory(); 327 if (!pluginDir.exists()) { 328 if (! pluginDir.mkdirs()) { 329 Main.warn(tr("Failed to create plugin directory ''{0}''. Cannot cache plugin list from plugin site ''{1}''.", pluginDir.toString(), site)); 330 } 327 if (!pluginDir.exists() && !pluginDir.mkdirs()) { 328 Main.warn(tr("Failed to create plugin directory ''{0}''. Cannot cache plugin list from plugin site ''{1}''.", pluginDir.toString(), site)); 331 329 } 332 330 File cacheFile = createSiteCacheFile(pluginDir, site, CacheType.PLUGIN_LIST); -
trunk/src/org/openstreetmap/josm/tools/Utils.java
r6852 r6883 831 831 } 832 832 File josmTmpDir = new File(tmpDir, "JOSM"); 833 if (!josmTmpDir.exists()) { 834 if (!josmTmpDir.mkdirs()) { 835 Main.warn("Unable to create temp directory "+josmTmpDir); 836 } 833 if (!josmTmpDir.exists() && !josmTmpDir.mkdirs()) { 834 Main.warn("Unable to create temp directory "+josmTmpDir); 837 835 } 838 836 return josmTmpDir;
Note:
See TracChangeset
for help on using the changeset viewer.