Changeset 6362 in josm for trunk/src/org
- Timestamp:
- 2013-11-03T01:06:23+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 94 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SaveAction.java
r5909 r6362 19 19 * @author imi 20 20 */ 21 public class SaveAction extends SaveActionBase {21 public final class SaveAction extends SaveActionBase { 22 22 private static SaveAction instance = new SaveAction(); 23 23 -
trunk/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyHelper.java
r6360 r6362 22 22 * @author Alexander Kachkaev <alexander@kachkaev.ru>, 2011 23 23 */ 24 class ImproveWayAccuracyHelper {24 final class ImproveWayAccuracyHelper { 25 25 26 26 private ImproveWayAccuracyHelper() { -
trunk/src/org/openstreetmap/josm/actions/upload/RelationUploadOrderHook.java
r6267 r6362 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.actions.upload; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 3 5 4 6 import java.awt.BorderLayout; … … 19 21 import org.openstreetmap.josm.gui.OsmPrimitivRenderer; 20 22 import org.openstreetmap.josm.tools.WindowGeometry; 21 22 import static org.openstreetmap.josm.tools.I18n.tr;23 24 import org.openstreetmap.josm.actions.upload.UploadHook;25 23 26 24 /** -
trunk/src/org/openstreetmap/josm/corrector/ReverseWayNoTagCorrector.java
r6360 r6362 23 23 * @since 5724 24 24 */ 25 public class ReverseWayNoTagCorrector {25 public final class ReverseWayNoTagCorrector { 26 26 27 27 private ReverseWayNoTagCorrector() { -
trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java
r6360 r6362 55 55 * can be used to modify preferences, store/delete files in .josm folders etc 56 56 */ 57 public class CustomConfigurator {57 public final class CustomConfigurator { 58 58 59 59 private CustomConfigurator() { -
trunk/src/org/openstreetmap/josm/data/coor/QuadTiling.java
r6360 r6362 2 2 package org.openstreetmap.josm.data.coor; 3 3 4 public class QuadTiling {4 public final class QuadTiling { 5 5 6 6 private QuadTiling() { -
trunk/src/org/openstreetmap/josm/data/osm/ChangesetCache.java
r5890 r6362 32 32 * 33 33 */ 34 public class ChangesetCache implements PreferenceChangedListener{34 public final class ChangesetCache implements PreferenceChangedListener{ 35 35 /** the unique instance */ 36 36 static private final ChangesetCache instance = new ChangesetCache(); -
trunk/src/org/openstreetmap/josm/data/osm/FilterWorker.java
r6360 r6362 12 12 * @author Petr_Dlouhý 13 13 */ 14 public class FilterWorker {14 public final class FilterWorker { 15 15 16 16 private FilterWorker() { -
trunk/src/org/openstreetmap/josm/data/osm/OsmUtils.java
r6360 r6362 7 7 import java.util.Locale; 8 8 9 public class OsmUtils {9 public final class OsmUtils { 10 10 11 11 private OsmUtils() { -
trunk/src/org/openstreetmap/josm/data/osm/Storage.java
r6226 r6362 392 392 */ 393 393 394 private class FMap<K> implements Map<K,T> {394 private final class FMap<K> implements Map<K,T> { 395 395 Hash<K,? super T> fHash; 396 396 -
trunk/src/org/openstreetmap/josm/data/osm/TigerUtils.java
r6360 r6362 11 11 * @since 529 12 12 */ 13 public class TigerUtils {13 public final class TigerUtils { 14 14 15 15 private TigerUtils() { -
trunk/src/org/openstreetmap/josm/data/osm/User.java
r6317 r6362 23 23 * 24 24 */ 25 public class User {25 public final class User { 26 26 27 27 static private AtomicLong uidCounter = new AtomicLong(); -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPaintSettings.java
r6084 r6362 8 8 import org.openstreetmap.josm.data.Preferences.PreferenceChangedListener; 9 9 10 public class MapPaintSettings implements PreferenceChangedListener {10 public final class MapPaintSettings implements PreferenceChangedListener { 11 11 12 12 public static final MapPaintSettings INSTANCE = new MapPaintSettings(); -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapRendererFactory.java
r6248 r6362 37 37 * 38 38 */ 39 public class MapRendererFactory {39 public final class MapRendererFactory { 40 40 41 41 /** preference key for the renderer class name. Default: class name for {@link StyledMapRenderer} -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/MultipolygonCache.java
r5927 r6362 38 38 * 39 39 */ 40 public class MultipolygonCache implements DataSetListener, LayerChangeListener, ProjectionChangeListener, SelectionChangedListener {40 public final class MultipolygonCache implements DataSetListener, LayerChangeListener, ProjectionChangeListener, SelectionChangedListener { 41 41 42 42 private static final MultipolygonCache instance = new MultipolygonCache(); -
trunk/src/org/openstreetmap/josm/data/projection/Ellipsoid.java
r5072 r6362 13 13 * the reference ellipsoids 14 14 */ 15 public class Ellipsoid {15 public final class Ellipsoid { 16 16 /** 17 17 * Clarke 1880 IGN (French national geographic institute) -
trunk/src/org/openstreetmap/josm/data/projection/Projections.java
r6360 r6362 39 39 * 40 40 */ 41 public class Projections {41 public final class Projections { 42 42 43 43 private Projections() { -
trunk/src/org/openstreetmap/josm/data/projection/datum/GRS80Datum.java
r5926 r6362 10 10 * is necessary to get from or to the WGS84 datum. 11 11 */ 12 public class GRS80Datum extends NullDatum {12 public final class GRS80Datum extends NullDatum { 13 13 14 14 public final static GRS80Datum INSTANCE = new GRS80Datum(); -
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2Util.java
r6310 r6362 27 27 * @author Peter Yuill 28 28 */ 29 public class NTV2Util {29 public final class NTV2Util { 30 30 31 31 private NTV2Util() { -
trunk/src/org/openstreetmap/josm/data/projection/datum/WGS84Datum.java
r5926 r6362 9 9 * WGS84 datum. Transformation from and to WGS84 datum is a no-op. 10 10 */ 11 public class WGS84Datum extends NullDatum {11 public final class WGS84Datum extends NullDatum { 12 12 13 13 public static final WGS84Datum INSTANCE = new WGS84Datum(); -
trunk/src/org/openstreetmap/josm/data/projection/proj/LambertConformalConic.java
r6142 r6362 2 2 package org.openstreetmap.josm.data.projection.proj; 3 3 4 import static java.lang.Math.*; 5 4 import static java.lang.Math.PI; 5 import static java.lang.Math.abs; 6 import static java.lang.Math.atan; 7 import static java.lang.Math.cos; 8 import static java.lang.Math.exp; 9 import static java.lang.Math.log; 10 import static java.lang.Math.pow; 11 import static java.lang.Math.sin; 12 import static java.lang.Math.sqrt; 13 import static java.lang.Math.tan; 14 import static java.lang.Math.toRadians; 6 15 import static org.openstreetmap.josm.tools.I18n.tr; 7 16 -
trunk/src/org/openstreetmap/josm/data/projection/proj/Mercator.java
r5237 r6362 2 2 package org.openstreetmap.josm.data.projection.proj; 3 3 4 import static java.lang.Math.*; 5 4 import static java.lang.Math.PI; 5 import static java.lang.Math.atan; 6 import static java.lang.Math.log; 7 import static java.lang.Math.sinh; 8 import static java.lang.Math.tan; 6 9 import static org.openstreetmap.josm.tools.I18n.tr; 7 10 -
trunk/src/org/openstreetmap/josm/data/projection/proj/TransverseMercator.java
r5926 r6362 2 2 package org.openstreetmap.josm.data.projection.proj; 3 3 4 import static java.lang.Math.*; 5 4 import static java.lang.Math.cos; 5 import static java.lang.Math.pow; 6 import static java.lang.Math.sin; 7 import static java.lang.Math.sqrt; 8 import static java.lang.Math.tan; 6 9 import static org.openstreetmap.josm.tools.I18n.tr; 7 10 -
trunk/src/org/openstreetmap/josm/data/validation/util/ValUtil.java
r6360 r6362 19 19 * @author frsantos 20 20 */ 21 public class ValUtil {21 public final class ValUtil { 22 22 23 23 private ValUtil() { -
trunk/src/org/openstreetmap/josm/gui/ConditionalOptionPaneUtil.java
r5817 r6362 26 26 * 27 27 */ 28 public class ConditionalOptionPaneUtil {28 public final class ConditionalOptionPaneUtil { 29 29 static public final int DIALOG_DISABLED_OPTION = Integer.MIN_VALUE; 30 30 -
trunk/src/org/openstreetmap/josm/gui/ExceptionDialogUtil.java
r6349 r6362 31 31 * 32 32 */ 33 public class ExceptionDialogUtil {33 public final class ExceptionDialogUtil { 34 34 35 35 /** -
trunk/src/org/openstreetmap/josm/gui/HelpAwareOptionPane.java
r6360 r6362 34 34 import org.openstreetmap.josm.tools.WindowGeometry; 35 35 36 public class HelpAwareOptionPane {36 public final class HelpAwareOptionPane { 37 37 38 38 private HelpAwareOptionPane() { -
trunk/src/org/openstreetmap/josm/gui/JosmUserIdentityManager.java
r6349 r6362 49 49 * 50 50 */ 51 public class JosmUserIdentityManager implements PreferenceChangedListener{51 public final class JosmUserIdentityManager implements PreferenceChangedListener{ 52 52 53 53 static private JosmUserIdentityManager instance; -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/MultiValueCellEditor.java
r6084 r6362 74 74 if (e.getID() == KeyEvent.KEY_PRESSED && e.getKeyCode() == KeyEvent.VK_ENTER) { 75 75 fireGotoNextDecision(); 76 } if (e.getID() == KeyEvent.KEY_PRESSED && e.getKeyCode() == KeyEvent.VK_TAB) {76 } else if (e.getID() == KeyEvent.KEY_PRESSED && e.getKeyCode() == KeyEvent.VK_TAB) { 77 77 if (e.isShiftDown()) { 78 78 fireGotoPreviousDecision(); -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/RelationMemberConflictDecision.java
r3083 r6362 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.conflict.tags; 3 4 import static org.openstreetmap.josm.gui.conflict.tags.RelationMemberConflictDecisionType.UNDECIDED; 5 import static org.openstreetmap.josm.tools.I18n.tr; 3 6 4 7 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 6 9 import org.openstreetmap.josm.data.osm.RelationMember; 7 10 import org.openstreetmap.josm.tools.CheckParameterUtil; 8 9 import static org.openstreetmap.josm.tools.I18n.tr;10 import static org.openstreetmap.josm.gui.conflict.tags.RelationMemberConflictDecisionType.*;11 11 12 12 public class RelationMemberConflictDecision { -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolutionUtil.java
r6093 r6362 13 13 * 14 14 */ 15 public class TagConflictResolutionUtil {15 public final class TagConflictResolutionUtil { 16 16 17 17 /** no constructor, just static utility methods */ -
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r6336 r6362 1104 1104 * the properties {@link Layer#VISIBLE_PROP} and {@link Layer#NAME_PROP}. 1105 1105 */ 1106 public class LayerListModel extends AbstractTableModel implements MapView.LayerChangeListener, PropertyChangeListener {1106 public final class LayerListModel extends AbstractTableModel implements MapView.LayerChangeListener, PropertyChangeListener { 1107 1107 /** manages list selection state*/ 1108 1108 private DefaultListSelectionModel selectionModel; -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java
r6324 r6362 221 221 } 222 222 223 public class EditTagDialog extends AbstractTagsDialog {223 public final class EditTagDialog extends AbstractTagsDialog { 224 224 final String key; 225 225 final Map<String, Integer> m; -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/sort/RelationSortUtils.java
r6360 r6362 11 11 import org.openstreetmap.josm.gui.dialogs.relation.sort.WayConnectionType.Direction; 12 12 13 class RelationSortUtils {13 final class RelationSortUtils { 14 14 15 15 private RelationSortUtils() { -
trunk/src/org/openstreetmap/josm/gui/help/HelpUtil.java
r6360 r6362 16 16 import org.openstreetmap.josm.tools.LanguageInfo.LocaleType; 17 17 18 public class HelpUtil {18 public final class HelpUtil { 19 19 20 20 private HelpUtil() { -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
r6336 r6362 403 403 * 404 404 */ 405 public class VersionTableModel extends AbstractTableModel {405 public final class VersionTableModel extends AbstractTableModel { 406 406 407 407 private VersionTableModel() { -
trunk/src/org/openstreetmap/josm/gui/layer/CustomizeColor.java
r6070 r6362 8 8 import java.awt.Component; 9 9 import java.awt.event.ActionEvent; 10 import java.util.LinkedList; 11 import java.util.List; 10 12 11 13 import javax.swing.AbstractAction; … … 14 16 import javax.swing.JMenuItem; 15 17 import javax.swing.JOptionPane; 16 import java.util.LinkedList;17 import java.util.List;18 18 19 19 import org.openstreetmap.josm.Main; 20 import org.openstreetmap.josm.gui.layer.Layer;21 20 import org.openstreetmap.josm.gui.layer.Layer.LayerAction; 22 21 import org.openstreetmap.josm.gui.layer.Layer.MultiLayerAction; -
trunk/src/org/openstreetmap/josm/gui/layer/JumpToMarkerActions.java
r6360 r6362 16 16 import org.openstreetmap.josm.tools.Shortcut; 17 17 18 public class JumpToMarkerActions {18 public final class JumpToMarkerActions { 19 19 20 20 public interface JumpToMarkerLayer { -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java
r6296 r6362 23 23 24 24 import org.openstreetmap.josm.Main; 25 import org.openstreetmap.josm.gui.dialogs.DialogsPanel.Action; 25 26 import org.openstreetmap.josm.gui.dialogs.ToggleDialog; 26 import org.openstreetmap.josm.gui.dialogs.DialogsPanel.Action;27 27 import org.openstreetmap.josm.tools.ImageProvider; 28 28 import org.openstreetmap.josm.tools.Shortcut; 29 29 30 public class ImageViewerDialog extends ToggleDialog {30 public final class ImageViewerDialog extends ToggleDialog { 31 31 32 32 private static final String COMMAND_ZOOM = "zoom"; -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java
r6310 r6362 81 81 public class Marker implements TemplateEngineDataProvider { 82 82 83 public static class TemplateEntryProperty extends CachedProperty<TemplateEntry> {83 public static final class TemplateEntryProperty extends CachedProperty<TemplateEntry> { 84 84 // This class is a bit complicated because it supports both global and per layer settings. I've added per layer settings because 85 85 // GPXSettingsPanel had possibility to set waypoint label but then I've realized that markers use different layer then gpx data -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/PlayHeadMarker.java
r6299 r6362 34 34 * @since 572 35 35 */ 36 public class PlayHeadMarker extends Marker {36 public final class PlayHeadMarker extends Marker { 37 37 38 38 private Timer timer = null; -
trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java
r6360 r6362 38 38 * On change, mapPaintSylesUpdated() is fired for all listeners. 39 39 */ 40 public class MapPaintStyles {40 public final class MapPaintStyles { 41 41 42 42 private static ElemStyles styles = new ElemStyles(); -
trunk/src/org/openstreetmap/josm/gui/mappaint/StyleCache.java
r6316 r6362 19 19 * and its subclasses). 20 20 */ 21 public class StyleCache {21 public final class StyleCache { 22 22 /* list of boundaries for the scale ranges */ 23 23 private final List<Double> bd; -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/CSSColors.java
r6360 r6362 6 6 import java.util.Map; 7 7 8 public class CSSColors {8 public final class CSSColors { 9 9 private final static Map<String, Color> CSS_COLORS = new HashMap<String, Color>(); 10 10 static { -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java
r6360 r6362 29 29 * See {@link #createFunctionExpression}. 30 30 */ 31 public class ExpressionFactory {31 public final class ExpressionFactory { 32 32 33 33 private static final List<Method> arrayFunctions; -
trunk/src/org/openstreetmap/josm/gui/oauth/TestAccessTokenTask.java
r6116 r6362 261 261 alertInternalError(); 262 262 return; 263 } if (e.getResponseCode() == HttpURLConnection.HTTP_UNAUTHORIZED) {263 } else if (e.getResponseCode() == HttpURLConnection.HTTP_UNAUTHORIZED) { 264 264 alertFailedAuthentication(); 265 265 return; -
trunk/src/org/openstreetmap/josm/gui/preferences/AudioPreference.java
r6084 r6362 12 12 13 13 import org.openstreetmap.josm.Main; 14 import org.openstreetmap.josm.gui.widgets.JosmTextField; 14 15 import org.openstreetmap.josm.tools.GBC; 15 import org.openstreetmap.josm.gui.widgets.JosmTextField;16 16 17 17 /* … … 27 27 */ 28 28 29 public class AudioPreference extends DefaultTabPreferenceSetting {29 public final class AudioPreference extends DefaultTabPreferenceSetting { 30 30 31 31 public static class Factory implements PreferenceSettingFactory { -
trunk/src/org/openstreetmap/josm/gui/preferences/PluginPreference.java
r6142 r6362 45 45 import org.openstreetmap.josm.gui.preferences.plugin.PluginUpdatePolicyPanel; 46 46 import org.openstreetmap.josm.gui.util.GuiHelper; 47 import org.openstreetmap.josm.gui.widgets.JosmTextField; 47 48 import org.openstreetmap.josm.gui.widgets.SelectAllOnFocusGainedDecorator; 48 49 import org.openstreetmap.josm.plugins.PluginDownloadTask; … … 52 53 import org.openstreetmap.josm.tools.GBC; 53 54 import org.openstreetmap.josm.tools.ImageProvider; 54 import org.openstreetmap.josm.gui.widgets.JosmTextField; 55 56 public class PluginPreference extends DefaultTabPreferenceSetting { 55 56 public final class PluginPreference extends DefaultTabPreferenceSetting { 57 57 public static class Factory implements PreferenceSettingFactory { 58 58 @Override -
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java
r6310 r6362 29 29 import org.openstreetmap.josm.Main; 30 30 import org.openstreetmap.josm.actions.ExpertToggleAction; 31 import org.openstreetmap.josm.actions.ExpertToggleAction.ExpertModeChangeListener; 31 32 import org.openstreetmap.josm.actions.RestartAction; 32 import org.openstreetmap.josm.actions.ExpertToggleAction.ExpertModeChangeListener;33 33 import org.openstreetmap.josm.gui.HelpAwareOptionPane; 34 34 import org.openstreetmap.josm.gui.HelpAwareOptionPane.ButtonSpec; … … 59 59 * @author imi 60 60 */ 61 public class PreferenceTabbedPane extends JTabbedPane implements MouseWheelListener, ExpertModeChangeListener, ChangeListener { 61 public final class PreferenceTabbedPane extends JTabbedPane implements MouseWheelListener, ExpertModeChangeListener, ChangeListener { 62 62 63 /** 63 64 * Allows PreferenceSettings to do validation of entered values when ok was pressed. … … 78 79 } 79 80 80 public static class PreferencePanel extends JPanel implements PreferenceTab {81 public static final class PreferencePanel extends JPanel implements PreferenceTab { 81 82 private final TabPreferenceSetting preferenceSetting; 82 83 … … 108 109 } 109 110 110 public static class PreferenceScrollPane extends JScrollPane implements PreferenceTab {111 public static final class PreferenceScrollPane extends JScrollPane implements PreferenceTab { 111 112 private final TabPreferenceSetting preferenceSetting; 112 113 -
trunk/src/org/openstreetmap/josm/gui/preferences/RemoteControlPreference.java
r5861 r6362 32 32 * @author Frederik Ramm 33 33 */ 34 public class RemoteControlPreference extends DefaultTabPreferenceSetting {34 public final class RemoteControlPreference extends DefaultTabPreferenceSetting { 35 35 36 36 /** -
trunk/src/org/openstreetmap/josm/gui/preferences/ServerAccessPreference.java
r6342 r6362 19 19 import org.openstreetmap.josm.gui.widgets.VerticallyScrollablePanel; 20 20 21 public class ServerAccessPreference extends DefaultTabPreferenceSetting {21 public final class ServerAccessPreference extends DefaultTabPreferenceSetting { 22 22 23 23 public static class Factory implements PreferenceSettingFactory { -
trunk/src/org/openstreetmap/josm/gui/preferences/ValidatorPreference.java
r6084 r6362 24 24 * @author frsantos 25 25 */ 26 public class ValidatorPreference extends DefaultTabPreferenceSetting {26 public final class ValidatorPreference extends DefaultTabPreferenceSetting { 27 27 28 28 public static class Factory implements PreferenceSettingFactory { -
trunk/src/org/openstreetmap/josm/gui/preferences/advanced/AdvancedPreference.java
r6316 r6362 48 48 import org.openstreetmap.josm.tools.GBC; 49 49 50 public class AdvancedPreference extends DefaultTabPreferenceSetting {50 public final class AdvancedPreference extends DefaultTabPreferenceSetting { 51 51 52 52 public static class Factory implements PreferenceSettingFactory { -
trunk/src/org/openstreetmap/josm/gui/preferences/display/DisplayPreference.java
r6084 r6362 12 12 import org.openstreetmap.josm.tools.GBC; 13 13 14 public class DisplayPreference extends DefaultTabPreferenceSetting {14 public final class DisplayPreference extends DefaultTabPreferenceSetting { 15 15 public static class Factory implements PreferenceSettingFactory { 16 16 @Override -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java
r6361 r6362 66 66 import org.openstreetmap.josm.tools.LanguageInfo; 67 67 68 public class ImageryPreference extends DefaultTabPreferenceSetting {68 public final class ImageryPreference extends DefaultTabPreferenceSetting { 69 69 public static class Factory implements PreferenceSettingFactory { 70 70 @Override -
trunk/src/org/openstreetmap/josm/gui/preferences/map/MapPreference.java
r6084 r6362 12 12 import org.openstreetmap.josm.tools.GBC; 13 13 14 public class MapPreference extends DefaultTabPreferenceSetting {14 public final class MapPreference extends DefaultTabPreferenceSetting { 15 15 public static class Factory implements PreferenceSettingFactory { 16 16 @Override -
trunk/src/org/openstreetmap/josm/gui/preferences/map/TaggingPresetPreference.java
r6248 r6362 46 46 import org.xml.sax.SAXParseException; 47 47 48 public class TaggingPresetPreference implements SubPreferenceSetting {48 public final class TaggingPresetPreference implements SubPreferenceSetting { 49 49 50 50 public static class Factory implements PreferenceSettingFactory { -
trunk/src/org/openstreetmap/josm/gui/preferences/shortcut/ShortcutPreference.java
r6246 r6362 16 16 import org.openstreetmap.josm.tools.Shortcut; 17 17 18 public class ShortcutPreference extends DefaultTabPreferenceSetting {18 public final class ShortcutPreference extends DefaultTabPreferenceSetting { 19 19 20 20 private String defaultFilter; -
trunk/src/org/openstreetmap/josm/gui/progress/NullProgressMonitor.java
r6084 r6362 6 6 import org.openstreetmap.josm.Main; 7 7 8 public class NullProgressMonitor implements ProgressMonitor {8 public final class NullProgressMonitor implements ProgressMonitor { 9 9 10 10 public static final ProgressMonitor INSTANCE = new NullProgressMonitor(); -
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPresetSearchDialog.java
r6323 r6362 15 15 * @since 3388 16 16 */ 17 public class TaggingPresetSearchDialog extends ExtendedDialog {17 public final class TaggingPresetSearchDialog extends ExtendedDialog { 18 18 19 19 private TaggingPresetSelector selector; -
trunk/src/org/openstreetmap/josm/gui/util/GuiHelper.java
r6248 r6362 37 37 * basic gui utils 38 38 */ 39 public class GuiHelper { 39 public final class GuiHelper { 40 41 private GuiHelper() { 42 // Hide default constructor for utils classes 43 } 44 40 45 /** 41 46 * disable / enable a component and all its child components -
trunk/src/org/openstreetmap/josm/gui/util/TableHelper.java
r5927 r6362 10 10 * The class that provide common JTable customization methods 11 11 */ 12 public class TableHelper { 12 public final class TableHelper { 13 14 private TableHelper() { 15 // Hide default constructor for utils classes 16 } 17 13 18 /** 14 * (originally from @class org.openstreetmap.josm.gui.preferences.SourceEditor)15 * adjust the preferred width of column col to the maximum preferred width of the cells16 * requires JTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);17 */19 * (originally from @class org.openstreetmap.josm.gui.preferences.SourceEditor) 20 * adjust the preferred width of column col to the maximum preferred width of the cells 21 * requires JTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); 22 */ 18 23 public static void adjustColumnWidth(JTable tbl, int col, int maxColumnWidth) { 19 24 int maxwidth = 0; … … 26 31 tbl.getColumnModel().getColumn(col).setPreferredWidth(Math.min(maxwidth+10, maxColumnWidth)); 27 32 } 28 29 33 } -
trunk/src/org/openstreetmap/josm/gui/widgets/AbstractTextComponentValidator.java
r6101 r6362 19 19 import org.openstreetmap.josm.tools.CheckParameterUtil; 20 20 import org.openstreetmap.josm.tools.Utils; 21 import org.openstreetmap.josm.gui.widgets.JosmTextField;22 21 23 22 /** -
trunk/src/org/openstreetmap/josm/io/AbstractParser.java
r6201 r6362 137 137 id,version,visible,user,changesetId,timestamp 138 138 ); 139 } if (type.equals(OsmPrimitiveType.RELATION)) {139 } else if (type.equals(OsmPrimitiveType.RELATION)) { 140 140 primitive = new HistoryRelation( 141 141 id,version,visible,user,changesetId,timestamp -
trunk/src/org/openstreetmap/josm/io/OsmChangesetParser.java
r4191 r6362 38 38 * 39 39 */ 40 public class OsmChangesetParser {40 public final class OsmChangesetParser { 41 41 private List<Changeset> changesets; 42 42 -
trunk/src/org/openstreetmap/josm/io/OsmServerChangesetReader.java
r6104 r6362 11 11 import java.util.Collection; 12 12 import java.util.Collections; 13 import java.util.Iterator;14 13 import java.util.List; 15 14 -
trunk/src/org/openstreetmap/josm/io/OsmServerObjectReader.java
r6223 r6362 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.io.IOException;7 6 import java.io.InputStream; 8 7 import java.text.MessageFormat; … … 16 15 import org.openstreetmap.josm.tools.CheckParameterUtil; 17 16 import org.openstreetmap.josm.tools.Utils; 18 import org.xml.sax.SAXException;19 17 20 18 /** … … 110 108 * null 111 109 * @return the downloaded data 112 * @throws SAXException 113 * @throws IOException 110 * @throws OsmTransferException 114 111 */ 115 112 @Override -
trunk/src/org/openstreetmap/josm/io/UTFInputStreamReader.java
r6085 r6362 11 11 * Detects the different UTF encodings from byte order mark 12 12 */ 13 public class UTFInputStreamReader extends InputStreamReader { 13 public final class UTFInputStreamReader extends InputStreamReader { 14 14 15 /** 15 16 * converts input stream to reader -
trunk/src/org/openstreetmap/josm/io/auth/DefaultAuthenticator.java
r6349 r6362 15 15 * 16 16 */ 17 public class DefaultAuthenticator extends Authenticator {17 public final class DefaultAuthenticator extends Authenticator { 18 18 private static DefaultAuthenticator instance; 19 19 -
trunk/src/org/openstreetmap/josm/io/remotecontrol/RequestProcessor.java
r6332 r6362 396 396 r.append(", \"parameters\" : ["); 397 397 398 String params[]= handler.getMandatoryParams();398 String[] params = handler.getMandatoryParams(); 399 399 if (params != null) { 400 400 for (int i = 0; i < params.length; i++) { … … 408 408 } 409 409 r.append("], \"optional\" : ["); 410 String optional[]= handler.getOptionalParams();410 String[] optional = handler.getOptionalParams(); 411 411 if (optional != null) { 412 412 for (int i = 0; i < optional.length; i++) { … … 421 421 422 422 r.append("], \"examples\" : ["); 423 String examples[]= handler.getUsageExamples(cmd.substring(1));423 String[] examples = handler.getUsageExamples(cmd.substring(1)); 424 424 if (examples != null) { 425 425 for (int i = 0; i < examples.length; i++) { -
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r6360 r6362 70 70 * @since 1326 71 71 */ 72 public class PluginHandler {72 public final class PluginHandler { 73 73 74 74 /** -
trunk/src/org/openstreetmap/josm/tools/AudioPlayer.java
r6310 r6362 22 22 * @since 547 23 23 */ 24 public class AudioPlayer extends Thread {24 public final class AudioPlayer extends Thread { 25 25 26 26 private static AudioPlayer audioPlayer = null; -
trunk/src/org/openstreetmap/josm/tools/AudioUtil.java
r6070 r6362 17 17 * @since 1462 18 18 */ 19 public class AudioUtil {19 public final class AudioUtil { 20 20 21 private AudioUtil() { 22 // Hide default constructor for utils classes 23 } 24 21 25 /** 22 26 * Returns calibrated length of recording in seconds. -
trunk/src/org/openstreetmap/josm/tools/Base64.java
r3840 r6362 4 4 import java.nio.ByteBuffer; 5 5 6 public class Base64 {6 public final class Base64 { 7 7 8 private Base64() { 9 // Hide default constructor for utils classes 10 } 11 8 12 private static String encDefault = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; 9 13 private static String encUrlSafe = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"; -
trunk/src/org/openstreetmap/josm/tools/CheckParameterUtil.java
r5980 r6362 12 12 * This utility class provides a collection of static helper methods for checking 13 13 * parameters at run-time. 14 * @ ince 271114 * @since 2711 15 15 */ 16 public class CheckParameterUtil {16 public final class CheckParameterUtil { 17 17 18 private CheckParameterUtil(){} 18 private CheckParameterUtil() { 19 // Hide default constructor for utils classes 20 } 19 21 20 22 /** -
trunk/src/org/openstreetmap/josm/tools/ColorHelper.java
r6360 r6362 7 7 * Helper to convert from color to html string and back 8 8 */ 9 public class ColorHelper {9 public final class ColorHelper { 10 10 11 11 private ColorHelper() { -
trunk/src/org/openstreetmap/josm/tools/CopyList.java
r6084 r6362 56 56 57 57 // read-only access: 58 public @Override E get(int index) { 58 @Override 59 public E get(int index) { 59 60 rangeCheck(index); 60 61 return array[index]; 61 62 } 62 63 63 public @Override int size() { 64 @Override 65 public int size() { 64 66 return size; 65 67 } 66 68 67 69 // modification: 68 public @Override E set(int index, E element) { 70 @Override 71 public E set(int index, E element) { 69 72 rangeCheck(index); 70 73 changeCheck(); … … 76 79 77 80 // full resizable semantics: 78 public @Override void add(int index, E element) { 81 @Override 82 public void add(int index, E element) { 79 83 // range check 80 84 ensureCapacity(size+1); … … 86 90 } 87 91 88 public @Override E remove(int index) { 92 @Override 93 public E remove(int index) { 89 94 rangeCheck(index); 90 95 changeCheck(); … … 102 107 103 108 // speed optimizations: 104 public @Override boolean add(E element) { 109 @Override 110 public boolean add(E element) { 105 111 ensureCapacity(size+1); 106 112 changeCheck(); … … 109 115 } 110 116 111 public @Override void clear() { 117 @Override 118 public void clear() { 112 119 modCount++; 113 120 … … 125 132 * @return a clone of this <tt>CopyList</tt> instance 126 133 */ 127 public @Override Object clone() { 134 @Override 135 public Object clone() { 128 136 return new CopyList<E>(array, size); 129 137 } -
trunk/src/org/openstreetmap/josm/tools/DateParser.java
r2512 r6362 10 10 * @author Immanuel.Scholz 11 11 */ 12 public class DateParser { 12 public final class DateParser { 13 14 private DateParser() { 15 // Hide default constructor for utils classes 16 } 17 13 18 public static Date parse(String d) throws ParseException { 14 19 return new PrimaryDateParser().parse(d); -
trunk/src/org/openstreetmap/josm/tools/ExceptionUtil.java
r6248 r6362 37 37 38 38 @SuppressWarnings("CallToThreadDumpStack") 39 public class ExceptionUtil { 39 public final class ExceptionUtil { 40 40 41 private ExceptionUtil() { 42 // Hide default constructor for utils classes 41 43 } 42 44 -
trunk/src/org/openstreetmap/josm/tools/ExifReader.java
r6360 r6362 25 25 * @since 99 26 26 */ 27 public class ExifReader {27 public final class ExifReader { 28 28 29 29 private ExifReader() { -
trunk/src/org/openstreetmap/josm/tools/GBC.java
r5275 r6362 15 15 * @author imi 16 16 */ 17 public class GBC extends GridBagConstraints {17 public final class GBC extends GridBagConstraints { 18 18 19 19 /** -
trunk/src/org/openstreetmap/josm/tools/Geometry.java
r6316 r6362 30 30 * @author viesturs 31 31 */ 32 public class Geometry { 32 public final class Geometry { 33 34 private Geometry() { 35 // Hide default constructor for utils classes 36 } 37 33 38 public enum PolygonIntersection {FIRST_INSIDE_SECOND, SECOND_INSIDE_FIRST, OUTSIDE, CROSSING} 34 39 -
trunk/src/org/openstreetmap/josm/tools/I18n.java
r6360 r6362 31 31 * @author Immanuel.Scholz 32 32 */ 33 public class I18n {33 public final class I18n { 34 34 35 35 private I18n() { -
trunk/src/org/openstreetmap/josm/tools/InputMapUtils.java
r6070 r6362 16 16 * 17 17 */ 18 public class InputMapUtils { 19 public static void unassignCtrlShiftUpDown(JComponent cmp, int condition) { 18 public final class InputMapUtils { 19 20 private InputMapUtils() { 21 // Hide default constructor for utils classes 22 } 23 24 public static void unassignCtrlShiftUpDown(JComponent cmp, int condition) { 20 25 InputMap inputMap=SwingUtilities.getUIInputMap(cmp, condition); 21 26 inputMap.remove(KeyStroke.getKeyStroke(KeyEvent.VK_UP,InputEvent.CTRL_MASK|InputEvent.SHIFT_MASK)); … … 24 29 inputMap.remove(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN,InputEvent.ALT_MASK|InputEvent.SHIFT_MASK)); 25 30 SwingUtilities.replaceUIInputMap(cmp,JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT,inputMap); 26 31 } 27 32 28 29 /** 30 * Enable activating button on Enter (which is replaced with spacebar for certain Look-And-Feels) 31 */ 32 public static void enableEnter(JButton b) { 33 /** 34 * Enable activating button on Enter (which is replaced with spacebar for certain Look-And-Feels) 35 */ 36 public static void enableEnter(JButton b) { 33 37 b.setFocusable(true); 34 38 b.getInputMap(JComponent.WHEN_FOCUSED).put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "enter"); 35 39 b.getActionMap().put("enter",b.getAction()); 36 40 } 37 41 38 42 public static void addEnterAction(JComponent c, Action a) { 39 43 c.getActionMap().put("enter", a); 40 44 c.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "enter"); 41 45 } 42 46 43 47 public static void addSpacebarAction(JComponent c, Action a) { 44 48 c.getActionMap().put("spacebar", a); 45 49 c.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, 0), "spacebar"); 46 } 47 50 } 48 51 } -
trunk/src/org/openstreetmap/josm/tools/LanguageInfo.java
r6360 r6362 4 4 import java.util.Locale; 5 5 6 public class LanguageInfo {6 public final class LanguageInfo { 7 7 8 8 private LanguageInfo() { -
trunk/src/org/openstreetmap/josm/tools/MultikeyActionsHandler.java
r6223 r6362 27 27 import org.openstreetmap.josm.tools.MultikeyShortcutAction.MultikeyInfo; 28 28 29 public class MultikeyActionsHandler {29 public final class MultikeyActionsHandler { 30 30 31 31 private static final long DIALOG_DELAY = 1000; -
trunk/src/org/openstreetmap/josm/tools/OpenBrowser.java
r6360 r6362 20 20 * @author Imi 21 21 */ 22 public class OpenBrowser {22 public final class OpenBrowser { 23 23 24 24 private OpenBrowser() { -
trunk/src/org/openstreetmap/josm/tools/OsmUrlToBounds.java
r6317 r6362 13 13 import org.openstreetmap.josm.data.coor.LatLon; 14 14 15 public class OsmUrlToBounds {15 public final class OsmUrlToBounds { 16 16 private static final String SHORTLINK_PREFIX = "http://osm.org/go/"; 17 18 private OsmUrlToBounds() { 19 // Hide default constructor for utils classes 20 } 17 21 18 22 public static Bounds parse(String url) { -
trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java
r6310 r6362 12 12 import java.io.InputStreamReader; 13 13 import java.util.Arrays; 14 import java.util.List;15 14 16 15 import org.openstreetmap.josm.Main; -
trunk/src/org/openstreetmap/josm/tools/Shortcut.java
r6316 r6362 34 34 * 35 35 */ 36 public class Shortcut {36 public final class Shortcut { 37 37 private String shortText; // the unique ID of the shortcut 38 38 private String longText; // a human readable description that will be shown in the preferences -
trunk/src/org/openstreetmap/josm/tools/TaggingPresetNameTemplateList.java
r6068 r6362 15 15 * List of tagging presets with name templates, allows to find appropriate template based on existing primitive 16 16 */ 17 public class TaggingPresetNameTemplateList {17 public final class TaggingPresetNameTemplateList { 18 18 19 19 private static TaggingPresetNameTemplateList instance; -
trunk/src/org/openstreetmap/josm/tools/TextTagParser.java
r6360 r6362 27 27 * Class that helps to parse tags from arbitrary text 28 28 */ 29 public class TextTagParser {29 public final class TextTagParser { 30 30 31 31 // properties need JOSM restart to apply, modified rarely enough -
trunk/src/org/openstreetmap/josm/tools/Utils.java
r6360 r6362 45 45 * Basic utils, that can be useful in different parts of the program. 46 46 */ 47 public class Utils {47 public final class Utils { 48 48 49 49 private Utils() { -
trunk/src/org/openstreetmap/josm/tools/template_engine/CompoundTemplateEntry.java
r4282 r6362 3 3 4 4 5 public class CompoundTemplateEntry implements TemplateEntry {5 public final class CompoundTemplateEntry implements TemplateEntry { 6 6 7 7 public static TemplateEntry fromArray(TemplateEntry... entry) {
Note:
See TracChangeset
for help on using the changeset viewer.