Changeset 9078 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2015-12-02T00:05:09+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 154 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/HelpAwareOptionPane.java
r9074 r9078 107 107 108 108 private static class DefaultAction extends AbstractAction { 109 private JDialog dialog;110 private JOptionPane pane;111 private int value;109 private final JDialog dialog; 110 private final JOptionPane pane; 111 private final int value; 112 112 113 113 DefaultAction(JDialog dialog, JOptionPane pane, int value) { -
trunk/src/org/openstreetmap/josm/gui/ImageryMenu.java
r8792 r9078 59 59 }; 60 60 61 private transient Action offsetAction = new JosmAction(61 private final transient Action offsetAction = new JosmAction( 62 62 tr("Imagery offset"), "mapmode/adjustimg", tr("Adjust imagery offset"), null, false, false) { 63 63 { … … 258 258 * @since 5803 259 259 */ 260 private List<Object> dynamicItems = new ArrayList<>(20);260 private final List<Object> dynamicItems = new ArrayList<>(20); 261 261 262 262 /** -
trunk/src/org/openstreetmap/josm/gui/MainMenu.java
r9059 r9078 407 407 * Popup menu to display menu items search result. 408 408 */ 409 private JPopupMenu searchResultsMenu = new JPopupMenu();409 private final JPopupMenu searchResultsMenu = new JPopupMenu(); 410 410 411 411 /** this menu listener hides unnecessary JSeparators in a menu list but does not remove them. … … 941 941 942 942 static class PresetsMenuEnabler implements MapView.LayerChangeListener { 943 private JMenu presetsMenu;943 private final JMenu presetsMenu; 944 944 945 945 PresetsMenuEnabler(JMenu presetsMenu) { -
trunk/src/org/openstreetmap/josm/gui/MapFrame.java
r9059 r9078 493 493 private final class SideToolbarPopupMenu extends JPopupMenu { 494 494 private static final int staticMenuEntryCount = 2; 495 private JCheckBoxMenuItem doNotHide = new JCheckBoxMenuItem(new AbstractAction(tr("Do not hide toolbar")) {495 private final JCheckBoxMenuItem doNotHide = new JCheckBoxMenuItem(new AbstractAction(tr("Do not hide toolbar")) { 496 496 @Override 497 497 public void actionPerformed(ActionEvent e) { … … 547 547 548 548 private JButton button; 549 private transient Collection<? extends HideableButton> buttons;549 private final transient Collection<? extends HideableButton> buttons; 550 550 551 551 ListAllButtonsAction(Collection<? extends HideableButton> buttons) { -
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r9059 r9078 205 205 * It gets destroyed by destroy() when the MapFrame itself is destroyed. 206 206 */ 207 private transient Thread thread;207 private final transient Thread thread; 208 208 209 209 private final transient List<StatusTextHistory> statusText = new ArrayList<>(); … … 348 348 private Popup popup; 349 349 350 private MapFrame parent;350 private final MapFrame parent; 351 351 352 352 private final BlockingQueue<MouseState> incomingMouseState = new LinkedBlockingQueue<>(); … … 677 677 } 678 678 679 private transient AWTEventListener awtListener = new AWTEventListener() {679 private final transient AWTEventListener awtListener = new AWTEventListener() { 680 680 @Override 681 681 public void eventDispatched(AWTEvent event) { … … 694 694 }; 695 695 696 private transient MouseMotionListener mouseMotionListener = new MouseMotionListener() {696 private final transient MouseMotionListener mouseMotionListener = new MouseMotionListener() { 697 697 @Override 698 698 public void mouseMoved(MouseEvent e) { … … 708 708 }; 709 709 710 private transient KeyAdapter keyAdapter = new KeyAdapter() {710 private final transient KeyAdapter keyAdapter = new KeyAdapter() { 711 711 @Override public void keyPressed(KeyEvent e) { 712 712 synchronized (collector) { -
trunk/src/org/openstreetmap/josm/gui/MapView.java
r8925 r9078 1107 1107 } 1108 1108 1109 private transient SelectionChangedListener repaintSelectionChangedListener = new SelectionChangedListener() {1109 private final transient SelectionChangedListener repaintSelectionChangedListener = new SelectionChangedListener() { 1110 1110 @Override 1111 1111 public void selectionChanged(Collection<? extends OsmPrimitive> newSelection) { -
trunk/src/org/openstreetmap/josm/gui/MenuScroller.java
r8840 r9078 443 443 implements ChangeListener { 444 444 445 private MenuScrollTimer timer;445 private final MenuScrollTimer timer; 446 446 447 447 MenuScrollItem(MenuIcon icon, int increment) { -
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r9076 r9078 216 216 /** 217 217 * Returns the current center of the viewport. 218 * 218 * 219 219 * (Use {@link #zoomTo(EastNorth)} to the change the center.) 220 * 220 * 221 221 * @return the current center of the viewport 222 222 */ … … 227 227 /** 228 228 * Returns the current scale. 229 * 229 * 230 230 * In east/north units per pixel. 231 * 231 * 232 232 * @return the current scale 233 233 */ … … 602 602 } 603 603 604 private Stack<ZoomData> zoomUndoBuffer = new Stack<>();605 private Stack<ZoomData> zoomRedoBuffer = new Stack<>();604 private final Stack<ZoomData> zoomUndoBuffer = new Stack<>(); 605 private final Stack<ZoomData> zoomRedoBuffer = new Stack<>(); 606 606 private Date zoomTimestamp = new Date(); 607 607 -
trunk/src/org/openstreetmap/josm/gui/NoteInputDialog.java
r8426 r9078 22 22 public class NoteInputDialog extends ExtendedDialog { 23 23 24 private JosmTextArea textArea = new JosmTextArea();24 private final JosmTextArea textArea = new JosmTextArea(); 25 25 26 26 /** -
trunk/src/org/openstreetmap/josm/gui/NoteSortDialog.java
r7937 r9078 22 22 public class NoteSortDialog extends ExtendedDialog { 23 23 24 private JRadioButton defaultSort = new JRadioButton(tr("Default (open, closed, new)"));25 private JRadioButton userSort = new JRadioButton(tr("Username"));26 private JRadioButton dateSort = new JRadioButton(tr("Created date"));27 private JRadioButton lastActionSort = new JRadioButton(tr("Last change date"));24 private final JRadioButton defaultSort = new JRadioButton(tr("Default (open, closed, new)")); 25 private final JRadioButton userSort = new JRadioButton(tr("Username")); 26 private final JRadioButton dateSort = new JRadioButton(tr("Created date")); 27 private final JRadioButton lastActionSort = new JRadioButton(tr("Last change date")); 28 28 29 29 /** -
trunk/src/org/openstreetmap/josm/gui/NotificationManager.java
r9073 r9078 55 55 class NotificationManager { 56 56 57 private Timer hideTimer; // started when message is shown, responsible for hiding the message58 private Timer pauseTimer; // makes sure, there is a small pause between two consecutive messages59 private Timer unfreezeDelayTimer; // tiny delay before resuming the timer when mouse cursor is moved off the panel57 private final Timer hideTimer; // started when message is shown, responsible for hiding the message 58 private final Timer pauseTimer; // makes sure, there is a small pause between two consecutive messages 59 private final Timer unfreezeDelayTimer; // tiny delay before resuming the timer when mouse cursor is moved off the panel 60 60 private boolean running; 61 61 -
trunk/src/org/openstreetmap/josm/gui/OsmPrimitivRenderer.java
r8958 r9078 28 28 */ 29 29 public class OsmPrimitivRenderer implements ListCellRenderer<OsmPrimitive>, TableCellRenderer { 30 private DefaultNameFormatter formatter = DefaultNameFormatter.getInstance();30 private final DefaultNameFormatter formatter = DefaultNameFormatter.getInstance(); 31 31 32 32 /** 33 33 * Default list cell renderer - delegate for ListCellRenderer operation 34 34 */ 35 private DefaultListCellRenderer defaultListCellRenderer = new DefaultListCellRenderer();35 private final DefaultListCellRenderer defaultListCellRenderer = new DefaultListCellRenderer(); 36 36 37 37 /** 38 38 * Default table cell renderer - delegate for TableCellRenderer operation 39 39 */ 40 private DefaultTableCellRenderer defaultTableCellRenderer = new DefaultTableCellRenderer();40 private final DefaultTableCellRenderer defaultTableCellRenderer = new DefaultTableCellRenderer(); 41 41 42 42 /** -
trunk/src/org/openstreetmap/josm/gui/ScrollViewport.java
r8840 r9078 39 39 40 40 private class ScrollViewPortMouseListener extends MouseAdapter { 41 private int direction;41 private final int direction; 42 42 43 43 ScrollViewPortMouseListener(int direction) { … … 65 65 } 66 66 67 private JViewport vp = new JViewport();67 private final JViewport vp = new JViewport(); 68 68 private JComponent component; 69 69 70 private List<JButton> buttons = new ArrayList<>();71 72 private Timer timer = new Timer(100, new ActionListener() {70 private final List<JButton> buttons = new ArrayList<>(); 71 72 private final Timer timer = new Timer(100, new ActionListener() { 73 73 @Override 74 74 public void actionPerformed(ActionEvent arg0) { -
trunk/src/org/openstreetmap/josm/gui/SelectionManager.java
r9059 r9078 127 127 private final NavigatableComponent nc; 128 128 /** 129 * Whether the selection rectangle must obtain the aspect ratio of the 130 * drawComponent. 131 */ 132 private boolean aspectRatio; 129 * Whether the selection rectangle must obtain the aspect ratio of the drawComponent. 130 */ 131 private final boolean aspectRatio; 133 132 134 133 /** … … 139 138 * The polygon to store the selection outline if {@link #lassoMode} is used. 140 139 */ 141 private Polygon lasso = new Polygon();140 private final Polygon lasso = new Polygon(); 142 141 143 142 /** -
trunk/src/org/openstreetmap/josm/gui/bbox/SizeButton.java
r8840 r9078 23 23 private int y; 24 24 25 private ImageIcon enlargeImage;26 private ImageIcon shrinkImage;25 private final ImageIcon enlargeImage; 26 private final ImageIcon shrinkImage; 27 27 private boolean isEnlarged; 28 28 private final SlippyMapBBoxChooser slippyMapBBoxChooser; -
trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java
r8855 r9078 119 119 public static final String RESIZE_PROP = SlippyMapBBoxChooser.class.getName() + ".resize"; 120 120 121 private transient TileLoader cachedLoader;122 private transient OsmTileLoader uncachedLoader;121 private final transient TileLoader cachedLoader; 122 private final transient OsmTileLoader uncachedLoader; 123 123 124 124 private final SizeButton iSizeButton; -
trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapControler.java
r8846 r9078 170 170 private class MoveXAction extends AbstractAction { 171 171 172 private int direction;172 private final int direction; 173 173 174 174 MoveXAction(int direction) { … … 184 184 private class MoveYAction extends AbstractAction { 185 185 186 private int direction;186 private final int direction; 187 187 188 188 MoveYAction(int direction) { -
trunk/src/org/openstreetmap/josm/gui/bbox/TileSelectionBBoxChooser.java
r9059 r9078 229 229 private transient TileCoordinateValidator valMinX; 230 230 private JSpinner spZoomLevel; 231 private transient TileBoundsBuilder tileBoundsBuilder = new TileBoundsBuilder();231 private final transient TileBoundsBuilder tileBoundsBuilder = new TileBoundsBuilder(); 232 232 private boolean doFireTileBoundChanged = true; 233 233 -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/relation/RelationMemberTableCellRenderer.java
r8840 r9078 23 23 */ 24 24 public class RelationMemberTableCellRenderer extends JLabel implements TableCellRenderer { 25 private transient Border rowNumberBorder;25 private final transient Border rowNumberBorder; 26 26 27 27 /** -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/tags/TagMergeItem.java
r8840 r9078 17 17 public class TagMergeItem { 18 18 19 private String key;20 private String myTagValue;21 private String theirTagValue;19 private final String key; 20 private final String myTagValue; 21 private final String theirTagValue; 22 22 private MergeDecisionType mergeDecision = MergeDecisionType.UNDECIDED; 23 23 -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/MultiValueCellEditor.java
r9059 r9078 50 50 51 51 /** the combo box used as editor */ 52 private JosmComboBox<Object> editor;53 private DefaultComboBoxModel<Object> editorModel;54 private CopyOnWriteArrayList<NavigationListener> listeners;52 private final JosmComboBox<Object> editor; 53 private final DefaultComboBoxModel<Object> editorModel; 54 private final CopyOnWriteArrayList<NavigationListener> listeners; 55 55 56 56 /** -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/MultiValueCellRenderer.java
r8510 r9078 25 25 public class MultiValueCellRenderer extends JLabel implements TableCellRenderer { 26 26 27 private ImageIcon iconDecided;28 private ImageIcon iconUndecided;29 private DefaultComboBoxModel<Object> model;30 private JosmComboBox<Object> cbDecisionRenderer;27 private final ImageIcon iconDecided; 28 private final ImageIcon iconUndecided; 29 private final DefaultComboBoxModel<Object> model; 30 private final JosmComboBox<Object> cbDecisionRenderer; 31 31 32 32 /** -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/MultiValueResolutionDecision.java
r8510 r9078 26 26 private MultiValueDecisionType type; 27 27 /** the collection of tags for which a decision is needed */ 28 private TagCollection tags;28 private final TagCollection tags; 29 29 /** the selected value if {@link #type} is {@link MultiValueDecisionType#KEEP_ONE} */ 30 30 private String value; -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/PasteTagsConflictResolverDialog.java
r8849 r9078 402 402 private static final class StatisticsTableModel extends DefaultTableModel { 403 403 private static final String[] HEADERS = new String[] {tr("Paste ..."), tr("From ..."), tr("To ...") }; 404 private transient List<StatisticsInfo> data;404 private final transient List<StatisticsInfo> data; 405 405 406 406 private StatisticsTableModel() { -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/RelationMemberConflictDecision.java
r8880 r9078 12 12 public class RelationMemberConflictDecision { 13 13 14 private Relation relation;15 private int pos;16 private OsmPrimitive originalPrimitive;14 private final Relation relation; 15 private final int pos; 16 private final OsmPrimitive originalPrimitive; 17 17 private String role; 18 18 private RelationMemberConflictDecisionType decision; -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/RelationMemberConflictDecisionRenderer.java
r8510 r9078 17 17 implements TableCellRenderer, ListCellRenderer<RelationMemberConflictDecisionType> { 18 18 19 private JosmComboBox<RelationMemberConflictDecisionType> cbDecisionTypes;19 private final JosmComboBox<RelationMemberConflictDecisionType> cbDecisionTypes; 20 20 21 21 protected void resetTableRenderer() { -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolver.java
r8510 r9078 27 27 28 28 /** the model for the tag conflict resolver */ 29 private TagConflictResolverModel model;29 private final TagConflictResolverModel model; 30 30 /** selects whether only tags with conflicts are displayed */ 31 31 private JCheckBox cbShowTagsWithConflictsOnly; -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolverModel.java
r8840 r9078 27 27 private transient Map<String, MultiValueResolutionDecision> decisions; 28 28 private int numConflicts; 29 private PropertyChangeSupport support;29 private final PropertyChangeSupport support; 30 30 private boolean showTagsWithConflictsOnly; 31 31 private boolean showTagsWithMultiValuesOnly; -
trunk/src/org/openstreetmap/josm/gui/dialogs/CommandStackDialog.java
r9059 r9078 63 63 private final JTree redoTree = new JTree(redoTreeModel); 64 64 65 private transient UndoRedoSelectionListener undoSelectionListener;66 private transient UndoRedoSelectionListener redoSelectionListener;67 68 private JScrollPane scrollPane;69 private JSeparator separator = new JSeparator();65 private final transient UndoRedoSelectionListener undoSelectionListener; 66 private final transient UndoRedoSelectionListener redoSelectionListener; 67 68 private final JScrollPane scrollPane; 69 private final JSeparator separator = new JSeparator(); 70 70 // only visible, if separator is the top most component 71 private Component spacer = Box.createRigidArea(new Dimension(0, 3));71 private final Component spacer = Box.createRigidArea(new Dimension(0, 3)); 72 72 73 73 // last operation is remembered to select the next undo/redo entry in the list … … 76 76 77 77 // Actions for context menu and Enter key 78 private SelectAction selectAction = new SelectAction();79 private SelectAndZoomAction selectAndZoomAction = new SelectAndZoomAction();78 private final SelectAction selectAction = new SelectAction(); 79 private final SelectAndZoomAction selectAndZoomAction = new SelectAndZoomAction(); 80 80 81 81 /** … … 167 167 */ 168 168 private class UndoRedoSelectionListener implements TreeSelectionListener { 169 private JTree source;169 private final JTree source; 170 170 171 171 UndoRedoSelectionListener(JTree source) { … … 247 247 * Simple listener setup to update the button enabled state when the side dialog shows. 248 248 */ 249 private transient Set<IEnabledStateUpdating> showNotifyListener = new LinkedHashSet<>();249 private final transient Set<IEnabledStateUpdating> showNotifyListener = new LinkedHashSet<>(); 250 250 251 251 private void addShowNotifyListener(IEnabledStateUpdating listener) { … … 431 431 */ 432 432 protected class UndoRedoAction extends AbstractAction implements IEnabledStateUpdating { 433 private UndoRedoType type;434 private JTree tree;433 private final UndoRedoType type; 434 private final JTree tree; 435 435 436 436 /** … … 439 439 */ 440 440 public UndoRedoAction(UndoRedoType type) { 441 super();442 441 this.type = type; 443 switch (type) { 444 case UNDO: 442 if (UndoRedoType.UNDO == type) { 445 443 tree = undoTree; 446 444 putValue(NAME, tr("Undo")); 447 445 putValue(SHORT_DESCRIPTION, tr("Undo the selected and all later commands")); 448 446 putValue(SMALL_ICON, ImageProvider.get("undo")); 449 break; 450 case REDO: 447 } else { 451 448 tree = redoTree; 452 449 putValue(NAME, tr("Redo")); 453 450 putValue(SHORT_DESCRIPTION, tr("Redo the selected and all earlier commands")); 454 451 putValue(SMALL_ICON, ImageProvider.get("redo")); 455 break;456 452 } 457 453 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/DeleteFromRelationConfirmationDialog.java
r9059 r9078 188 188 */ 189 189 public static class RelationMemberTableModel extends DefaultTableModel { 190 private transient List<RelationToChildReference> data;190 private final transient List<RelationToChildReference> data; 191 191 192 192 /** -
trunk/src/org/openstreetmap/josm/gui/dialogs/DialogsPanel.java
r9059 r9078 26 26 * Panels that are added to the multisplitpane. 27 27 */ 28 private List<JPanel> panels = new ArrayList<>();28 private final List<JPanel> panels = new ArrayList<>(); 29 29 30 30 private final JSplitPane parent; -
trunk/src/org/openstreetmap/josm/gui/dialogs/FilterDialog.java
r9059 r9078 58 58 59 59 private JTable userTable; 60 private FilterTableModel filterModel = new FilterTableModel();61 62 private EnableFilterAction enableFilterAction;63 private HidingFilterAction hidingFilterAction;60 private final FilterTableModel filterModel = new FilterTableModel(); 61 62 private final EnableFilterAction enableFilterAction; 63 private final HidingFilterAction hidingFilterAction; 64 64 65 65 /** -
trunk/src/org/openstreetmap/josm/gui/dialogs/FilterTableModel.java
r8836 r9078 366 366 } 367 367 368 private OSDLabel lblOSD = new OSDLabel("");368 private final OSDLabel lblOSD = new OSDLabel(""); 369 369 370 370 public void drawOSDText(Graphics2D g) { -
trunk/src/org/openstreetmap/josm/gui/dialogs/InspectPrimitiveDialog.java
r8870 r9078 133 133 private static final char NL = '\n'; 134 134 135 private StringBuilder s = new StringBuilder();135 private final StringBuilder s = new StringBuilder(); 136 136 137 137 private DataText add(String title, String... values) { -
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r9059 r9078 109 109 110 110 /** the model for the layer list */ 111 private LayerListModel model;111 private final LayerListModel model; 112 112 113 113 /** the list of layers (technically its a JTable, but appears like a list) */ 114 private LayerList layerList;115 116 private SideButton opacityButton;117 private SideButton gammaButton;118 119 private ActivateLayerAction activateLayerAction;120 private ShowHideLayerAction showHideLayerAction;114 private final LayerList layerList; 115 116 private final SideButton opacityButton; 117 private final SideButton gammaButton; 118 119 private final ActivateLayerAction activateLayerAction; 120 private final ShowHideLayerAction showHideLayerAction; 121 121 122 122 //TODO This duplicates ShowHide actions functionality 123 123 /** stores which layer index to toggle and executes the ShowHide action if the layer is present */ 124 124 private final class ToggleLayerIndexVisibility extends AbstractAction { 125 private int layerIndex = -1;125 private final int layerIndex; 126 126 127 127 ToggleLayerIndexVisibility(int layerIndex) { … … 440 440 441 441 private transient WeakReference<Layer> lastLayer; 442 private transient Shortcut multikeyShortcut;442 private final transient Shortcut multikeyShortcut; 443 443 444 444 /** … … 1226 1226 public final class LayerListModel extends AbstractTableModel implements MapView.LayerChangeListener, PropertyChangeListener { 1227 1227 /** manages list selection state*/ 1228 private DefaultListSelectionModel selectionModel;1229 private CopyOnWriteArrayList<LayerListModelListener> listeners;1228 private final DefaultListSelectionModel selectionModel; 1229 private final CopyOnWriteArrayList<LayerListModelListener> listeners; 1230 1230 1231 1231 /** -
trunk/src/org/openstreetmap/josm/gui/dialogs/MapPaintDialog.java
r8846 r9078 487 487 488 488 private class SaveToFileTask extends PleaseWaitRunnable { 489 private StyleSource s;490 private File file;489 private final StyleSource s; 490 private final File file; 491 491 492 492 private boolean canceled; -
trunk/src/org/openstreetmap/josm/gui/dialogs/NotesDialog.java
r9070 r9078 232 232 private static class NoteRenderer implements ListCellRenderer<Note> { 233 233 234 private DefaultListCellRenderer defaultListCellRenderer = new DefaultListCellRenderer();234 private final DefaultListCellRenderer defaultListCellRenderer = new DefaultListCellRenderer(); 235 235 private final DateFormat dateFormat = DateUtils.getDateTimeFormat(DateFormat.MEDIUM, DateFormat.SHORT); 236 236 … … 264 264 265 265 class NoteTableModel extends AbstractListModel<Note> { 266 private transient List<Note> data;266 private final transient List<Note> data; 267 267 268 268 /** -
trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
r9059 r9078 117 117 118 118 private final transient HighlightHelper highlightHelper = new HighlightHelper(); 119 private boolean highlightEnabled = Main.pref.getBoolean("draw.target-highlight", true);119 private final boolean highlightEnabled = Main.pref.getBoolean("draw.target-highlight", true); 120 120 121 121 /** … … 372 372 private final transient List<Relation> relations = new ArrayList<>(); 373 373 private transient List<Relation> filteredRelations; 374 private DefaultListSelectionModel selectionModel;374 private final DefaultListSelectionModel selectionModel; 375 375 private transient SearchCompiler.Match filter; 376 376 -
trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
r8836 r9078 198 198 class MouseEventHandler extends PopupMenuLauncher { 199 199 private final HighlightHelper helper = new HighlightHelper(); 200 private boolean highlightEnabled = Main.pref.getBoolean("draw.target-highlight", true);200 private final boolean highlightEnabled = Main.pref.getBoolean("draw.target-highlight", true); 201 201 202 202 MouseEventHandler() { … … 480 480 private LinkedList<Collection<? extends OsmPrimitive>> history; 481 481 private final transient List<OsmPrimitive> selection = new ArrayList<>(); 482 private DefaultListSelectionModel selectionModel;482 private final DefaultListSelectionModel selectionModel; 483 483 484 484 /** -
trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java
r9074 r9078 153 153 protected JToggleButton button; 154 154 private JPanel buttonsPanel; 155 private transient List<javax.swing.Action> buttonActions = new ArrayList<>();155 private final transient List<javax.swing.Action> buttonActions = new ArrayList<>(); 156 156 157 157 /** holds the menu entry in the windows menu. Required to properly -
trunk/src/org/openstreetmap/josm/gui/dialogs/UserListDialog.java
r9059 r9078 288 288 */ 289 289 static class UserTableModel extends DefaultTableModel { 290 private transient List<UserInfo> data;290 private final transient List<UserInfo> data; 291 291 292 292 UserTableModel() { -
trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java
r8840 r9078 72 72 73 73 /** The fix button */ 74 private SideButton fixButton;74 private final SideButton fixButton; 75 75 /** The ignore button */ 76 private SideButton ignoreButton;76 private final SideButton ignoreButton; 77 77 /** The select button */ 78 private SideButton selectButton;78 private final SideButton selectButton; 79 79 /** The lookup button */ 80 private SideButton lookupButton;80 private final SideButton lookupButton; 81 81 82 82 private final JPopupMenu popupMenu = new JPopupMenu(); … … 586 586 */ 587 587 class FixTask extends PleaseWaitRunnable { 588 private Collection<TestError> testErrors;588 private final Collection<TestError> testErrors; 589 589 private boolean canceled; 590 590 -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetCacheManagerModel.java
r9059 r9078 31 31 32 32 private final transient List<Changeset> data = new ArrayList<>(); 33 private DefaultListSelectionModel selectionModel;33 private final DefaultListSelectionModel selectionModel; 34 34 private transient Changeset changesetInDetailView; 35 35 private final PropertyChangeSupport support = new PropertyChangeSupport(this); -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetContentTableModel.java
r9059 r9078 25 25 26 26 private final transient List<ChangesetContentEntry> data = new ArrayList<>(); 27 private DefaultListSelectionModel selectionModel;27 private final DefaultListSelectionModel selectionModel; 28 28 29 29 public ChangesetContentTableModel(DefaultListSelectionModel selectionModel) { -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetListModel.java
r8510 r9078 24 24 private final transient List<Changeset> data = new ArrayList<>(); 25 25 private final transient Storage<Changeset> shownChangesets = new Storage<>(true); 26 private DefaultListSelectionModel selectionModel;26 private final DefaultListSelectionModel selectionModel; 27 27 28 28 public ChangesetListModel(DefaultListSelectionModel selectionModel) { -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r9073 r9078 864 864 865 865 static class MemberInfo { 866 private List<RelationMember> role = new ArrayList<>();866 private final List<RelationMember> role = new ArrayList<>(); 867 867 private Set<OsmPrimitive> members = new HashSet<>(); 868 868 private List<Integer> position = new ArrayList<>(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java
r8870 r9078 95 95 private String objKey; 96 96 97 private Comparator<AutoCompletionListItem> defaultACItemComparator = new Comparator<AutoCompletionListItem>() {97 private final Comparator<AutoCompletionListItem> defaultACItemComparator = new Comparator<AutoCompletionListItem>() { 98 98 @Override 99 99 public int compare(AutoCompletionListItem o1, AutoCompletionListItem o2) { … … 244 244 private final transient Map<String, Integer> m; 245 245 246 private transient Comparator<AutoCompletionListItem> usedValuesAwareComparator = new Comparator<AutoCompletionListItem>() {246 private final transient Comparator<AutoCompletionListItem> usedValuesAwareComparator = new Comparator<AutoCompletionListItem>() { 247 247 @Override 248 248 public int compare(AutoCompletionListItem o1, AutoCompletionListItem o2) { … … 536 536 537 537 class AddTagsDialog extends AbstractTagsDialog { 538 private List<JosmAction> recentTagsActions = new ArrayList<>();538 private final List<JosmAction> recentTagsActions = new ArrayList<>(); 539 539 540 540 // Counter of added commands for possible undo -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/DownloadRelationMemberTask.java
r8510 r9078 35 35 private Exception lastException; 36 36 private final Set<Relation> parents = new HashSet<>(); 37 private Collection<OsmPrimitive> children;38 private OsmDataLayer curLayer;37 private final Collection<OsmPrimitive> children; 38 private final OsmDataLayer curLayer; 39 39 private MultiFetchServerObjectReader objectReader; 40 40 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/DownloadRelationTask.java
r8510 r9078 30 30 private boolean canceled; 31 31 private Exception lastException; 32 private Collection<Relation> relations;33 private OsmDataLayer layer;32 private final Collection<Relation> relations; 33 private final OsmDataLayer layer; 34 34 private OsmServerObjectReader objectReader; 35 35 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java
r9073 r9078 98 98 public class GenericRelationEditor extends RelationEditor { 99 99 /** the tag table and its model */ 100 private TagEditorPanel tagEditorPanel;101 private ReferringRelationsBrowser referrerBrowser;102 private ReferringRelationsBrowserModel referrerModel;100 private final TagEditorPanel tagEditorPanel; 101 private final ReferringRelationsBrowser referrerBrowser; 102 private final ReferringRelationsBrowserModel referrerModel; 103 103 104 104 /** the member table */ 105 105 private MemberTable memberTable; 106 private MemberTableModel memberTableModel;106 private final MemberTableModel memberTableModel; 107 107 108 108 /** the model for the selection table */ 109 109 private SelectionTable selectionTable; 110 private SelectionTableModel selectionTableModel;110 private final SelectionTableModel selectionTableModel; 111 111 112 112 private AutoCompletingTextField tfRole; -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberRoleCellEditor.java
r8958 r9078 15 15 16 16 public class MemberRoleCellEditor extends AbstractCellEditor implements TableCellEditor { 17 private AutoCompletingTextField editor;17 private final AutoCompletingTextField editor; 18 18 private final transient DataSet ds; 19 19 private final transient Relation relation; 20 20 21 21 /** user input is matched against this list of auto completion items */ 22 private AutoCompletionList autoCompletionList;22 private final AutoCompletionList autoCompletionList; 23 23 24 24 /** -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTable.java
r9059 r9078 45 45 /** the additional actions in popup menu */ 46 46 private ZoomToGapAction zoomToGap; 47 private transient HighlightHelper highlightHelper = new HighlightHelper();47 private final transient HighlightHelper highlightHelper = new HighlightHelper(); 48 48 private boolean highlightEnabled; 49 49 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableModel.java
r9020 r9078 51 51 * data of the table model: The list of members and the cached WayConnectionType of each member. 52 52 **/ 53 private transient List<RelationMember> members;53 private final transient List<RelationMember> members; 54 54 private transient List<WayConnectionType> connectionType; 55 55 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ParentRelationLoadingTask.java
r9059 r9078 55 55 private Exception lastException; 56 56 private DataSet referrers; 57 private boolean full;58 private OsmDataLayer layer;59 private Relation child;60 private List<Relation> parents;57 private final boolean full; 58 private final OsmDataLayer layer; 59 private final Relation child; 60 private final List<Relation> parents; 61 61 private Runnable continuation; 62 62 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ReferringRelationsBrowser.java
r8836 r9078 37 37 /** the list of relations */ 38 38 private JList<Relation> referrers; 39 private ReferringRelationsBrowserModel model;40 private transient OsmDataLayer layer;39 private final ReferringRelationsBrowserModel model; 40 private final transient OsmDataLayer layer; 41 41 private JCheckBox cbReadFull; 42 42 private EditAction editAction; -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/RelationEditor.java
r9059 r9078 59 59 60 60 /** the data layer the relation belongs to */ 61 private transient OsmDataLayer layer;61 private final transient OsmDataLayer layer; 62 62 63 63 /** -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/RelationTree.java
r9075 r9078 105 105 private boolean canceled; 106 106 private Exception lastException; 107 private Relation relation;107 private final Relation relation; 108 108 private DataSet ds; 109 private TreePath path;109 private final TreePath path; 110 110 111 111 RelationLoader(Dialog dialog, Relation relation, TreePath path) { -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/RelationTreeCellRenderer.java
r8510 r9078 23 23 24 24 /** the relation icon */ 25 private ImageIcon icon;25 private final ImageIcon icon; 26 26 27 27 /** -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/SelectionTable.java
r8444 r9078 14 14 public class SelectionTable extends JTable { 15 15 16 private SelectionTableModel model;16 private final SelectionTableModel model; 17 17 private MemberTableModel memberTableModel; 18 18 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/SelectionTableModel.java
r9059 r9078 19 19 20 20 /** this selection table model only displays selected primitives in this layer */ 21 private transient OsmDataLayer layer;22 private transient List<OsmPrimitive> cache;21 private final transient OsmDataLayer layer; 22 private final transient List<OsmPrimitive> cache; 23 23 24 24 /** -
trunk/src/org/openstreetmap/josm/gui/download/BoundingBoxSelection.java
r9075 r9078 176 176 } 177 177 178 private Border errorBorder = BorderFactory.createLineBorder(Color.RED, 1);178 private final Border errorBorder = BorderFactory.createLineBorder(Color.RED, 1); 179 179 180 180 protected void setErrorMessage(JosmTextField tf, String msg) { … … 189 189 190 190 class LatValueChecker extends FocusAdapter implements ActionListener { 191 private JosmTextField tfLatValue;191 private final JosmTextField tfLatValue; 192 192 193 193 LatValueChecker(JosmTextField tfLatValue) { … … 222 222 223 223 class LonValueChecker extends FocusAdapter implements ActionListener { 224 private JosmTextField tfLonValue;224 private final JosmTextField tfLonValue; 225 225 226 226 LonValueChecker(JosmTextField tfLonValue) { … … 255 255 256 256 static class SelectAllOnFocusHandler extends FocusAdapter { 257 private JTextComponent tfTarget;257 private final JTextComponent tfTarget; 258 258 259 259 SelectAllOnFocusHandler(JTextComponent tfTarget) { -
trunk/src/org/openstreetmap/josm/gui/download/PlaceSelection.java
r8851 r9078 201 201 private StringBuilder description; 202 202 private int depth; 203 private List<SearchResult> data = new LinkedList<>();203 private final List<SearchResult> data = new LinkedList<>(); 204 204 205 205 /** … … 327 327 class NameQueryTask extends PleaseWaitRunnable { 328 328 329 private String searchExpression;329 private final String searchExpression; 330 330 private HttpURLConnection connection; 331 331 private List<SearchResult> data; 332 332 private boolean canceled; 333 private Server useserver;333 private final Server useserver; 334 334 private Exception lastException; 335 335 … … 411 411 static class NamedResultTableModel extends DefaultTableModel { 412 412 private transient List<SearchResult> data; 413 private transient ListSelectionModel selectionModel;413 private final transient ListSelectionModel selectionModel; 414 414 415 415 NamedResultTableModel(ListSelectionModel selectionModel) { -
trunk/src/org/openstreetmap/josm/gui/help/HelpBrowser.java
r8846 r9078 119 119 private String url; 120 120 121 private transient HelpContentReader reader;121 private final transient HelpContentReader reader; 122 122 123 123 private static final JosmAction focusAction = new JosmAction(tr("JOSM Help Browser"), "help", "", null, false, false) { … … 486 486 487 487 static class BackAction extends AbstractAction implements Observer { 488 private transient HelpBrowserHistory history;488 private final transient HelpBrowserHistory history; 489 489 490 490 BackAction(HelpBrowserHistory history) { … … 508 508 509 509 static class ForwardAction extends AbstractAction implements Observer { 510 private transient HelpBrowserHistory history;510 private final transient HelpBrowserHistory history; 511 511 512 512 ForwardAction(HelpBrowserHistory history) { -
trunk/src/org/openstreetmap/josm/gui/help/HelpBrowserHistory.java
r8840 r9078 8 8 9 9 public class HelpBrowserHistory extends Observable { 10 private HelpBrowser browser;10 private final HelpBrowser browser; 11 11 private List<String> history; 12 12 private int historyPos; -
trunk/src/org/openstreetmap/josm/gui/history/CoordinateInfoViewer.java
r9059 r9078 171 171 private JLabel lblLat; 172 172 private JLabel lblLon; 173 private transient HistoryBrowserModel model;174 private PointInTimeType role;173 private final transient HistoryBrowserModel model; 174 private final PointInTimeType role; 175 175 176 176 protected LatLon coord; -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialogManager.java
r8633 r9078 50 50 } 51 51 52 private Map<Long, HistoryBrowserDialog> dialogs;52 private final Map<Long, HistoryBrowserDialog> dialogs; 53 53 54 54 protected HistoryBrowserDialogManager() { -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
r8870 r9078 531 531 532 532 private List<String> keys; 533 private PointInTimeType pointInTimeType;533 private final PointInTimeType pointInTimeType; 534 534 535 535 protected void initKeyList() { -
trunk/src/org/openstreetmap/josm/gui/history/HistoryLoadTask.java
r8840 r9078 52 52 private boolean canceled; 53 53 private Exception lastException; 54 private Set<PrimitiveId> toLoad;54 private final Set<PrimitiveId> toLoad; 55 55 private HistoryDataSet loadedData; 56 56 private OsmServerHistoryReader reader; -
trunk/src/org/openstreetmap/josm/gui/history/NodeListTableCellRenderer.java
r8510 r9078 19 19 public static final Color BGCOLOR_SELECTED = new Color(143, 170, 255); 20 20 21 private ImageIcon nodeIcon;21 private final ImageIcon nodeIcon; 22 22 23 23 /** -
trunk/src/org/openstreetmap/josm/gui/history/NodeListViewer.java
r8840 r9078 332 332 333 333 static class DoubleClickAdapter extends MouseAdapter { 334 private JTable table;335 private ShowHistoryAction showHistoryAction;334 private final JTable table; 335 private final ShowHistoryAction showHistoryAction; 336 336 337 337 DoubleClickAdapter(JTable table) { -
trunk/src/org/openstreetmap/josm/gui/history/RelationMemberListTableCellRenderer.java
r8855 r9078 30 30 public static final Color BGCOLOR_SELECTED = new Color(143, 170, 255); 31 31 32 private transient Map<OsmPrimitiveType, ImageIcon> icons;32 private final transient Map<OsmPrimitiveType, ImageIcon> icons; 33 33 34 34 /** -
trunk/src/org/openstreetmap/josm/gui/history/TwoColumnDiff.java
r8976 r9078 60 60 public List<Item> referenceDiff; 61 61 public List<Item> currentDiff; 62 private Object[] reference;63 private Object[] current;62 private final Object[] reference; 63 private final Object[] current; 64 64 boolean referenceReversed; 65 65 -
trunk/src/org/openstreetmap/josm/gui/history/VersionInfoPanel.java
r9059 r9078 45 45 */ 46 46 public class VersionInfoPanel extends JPanel implements Observer { 47 private PointInTimeType pointInTimeType;48 private transient HistoryBrowserModel model;47 private final PointInTimeType pointInTimeType; 48 private final transient HistoryBrowserModel model; 49 49 private JMultilineLabel lblInfo; 50 50 private UrlLabel lblUser; -
trunk/src/org/openstreetmap/josm/gui/history/VersionTable.java
r9059 r9078 265 265 public static class RadioButtonEditor extends DefaultCellEditor implements ItemListener { 266 266 267 private JRadioButton btn;267 private final JRadioButton btn; 268 268 269 269 /** -
trunk/src/org/openstreetmap/josm/gui/io/ActionFlagsTableCell.java
r8836 r9078 40 40 private final transient CellEditorSupport cellEditorSupport = new CellEditorSupport(this); 41 41 42 private transient ActionListener al = new ActionListener() {42 private final transient ActionListener al = new ActionListener() { 43 43 @Override 44 44 public void actionPerformed(ActionEvent e) { -
trunk/src/org/openstreetmap/josm/gui/io/ChangesetCellRenderer.java
r8509 r9078 23 23 */ 24 24 public class ChangesetCellRenderer extends JLabel implements ListCellRenderer<Changeset> { 25 private ImageIcon icon;25 private final ImageIcon icon; 26 26 27 27 /** -
trunk/src/org/openstreetmap/josm/gui/io/ChangesetManagementPanel.java
r9059 r9078 56 56 private JCheckBox cbCloseAfterUpload; 57 57 private OpenChangesetComboBoxModel model; 58 private transient ChangesetCommentModel changesetCommentModel;58 private final transient ChangesetCommentModel changesetCommentModel; 59 59 60 60 /** -
trunk/src/org/openstreetmap/josm/gui/io/CloseChangesetTask.java
r8510 r9078 26 26 private boolean canceled; 27 27 private Exception lastException; 28 private Collection<Changeset> changesets;29 private List<Changeset> closedChangesets;28 private final Collection<Changeset> changesets; 29 private final List<Changeset> closedChangesets; 30 30 31 31 /** -
trunk/src/org/openstreetmap/josm/gui/io/CredentialDialog.java
r9059 r9078 66 66 private boolean canceled; 67 67 protected CredentialPanel pnlCredentials; 68 private String saveUsernameAndPasswordCheckboxText;68 private final String saveUsernameAndPasswordCheckboxText; 69 69 70 70 public boolean isCanceled() { … … 286 286 private static class OtherHostCredentialsPanel extends CredentialPanel { 287 287 288 private String host;288 private final String host; 289 289 290 290 @Override -
trunk/src/org/openstreetmap/josm/gui/io/DownloadOpenChangesetsTask.java
r8510 r9078 34 34 private List<Changeset> changesets; 35 35 private Exception lastException; 36 private Component parent;36 private final Component parent; 37 37 38 38 /** -
trunk/src/org/openstreetmap/josm/gui/io/OpenChangesetComboBoxModel.java
r8840 r9078 18 18 */ 19 19 public class OpenChangesetComboBoxModel extends DefaultComboBoxModel<Changeset> implements ChangesetCacheListener { 20 private transient List<Changeset> changesets;20 private final transient List<Changeset> changesets; 21 21 private transient Changeset selectedChangeset; 22 22 -
trunk/src/org/openstreetmap/josm/gui/io/SaveLayerInfo.java
r8836 r9078 15 15 16 16 /** the modifiable layer */ 17 private AbstractModifiableLayer layer;17 private final AbstractModifiableLayer layer; 18 18 private boolean doCheckSaveConditions; 19 19 private boolean doSaveToFile; -
trunk/src/org/openstreetmap/josm/gui/io/SaveLayerTask.java
r8734 r9078 27 27 */ 28 28 public class SaveLayerTask extends AbstractIOTask { 29 private SaveLayerInfo layerInfo;30 private ProgressMonitor parentMonitor;29 private final SaveLayerInfo layerInfo; 30 private final ProgressMonitor parentMonitor; 31 31 32 32 /** -
trunk/src/org/openstreetmap/josm/gui/io/SaveLayersModel.java
r8510 r9078 25 25 private transient List<SaveLayerInfo> layerInfo; 26 26 private Mode mode; 27 private PropertyChangeSupport support;27 private final PropertyChangeSupport support; 28 28 29 29 // keep in sync with how the columns are ordered in SaveLayersTableColumnModel#build -
trunk/src/org/openstreetmap/josm/gui/io/UpdatePrimitivesTask.java
r8510 r9078 34 34 private boolean canceled; 35 35 private Exception lastException; 36 private Collection<? extends OsmPrimitive> toUpdate;37 private OsmDataLayer layer;36 private final Collection<? extends OsmPrimitive> toUpdate; 37 private final OsmDataLayer layer; 38 38 private MultiFetchServerObjectReader multiObjectReader; 39 39 private OsmServerObjectReader objectReader; -
trunk/src/org/openstreetmap/josm/gui/io/UploadLayerTask.java
r8734 r9078 42 42 public class UploadLayerTask extends AbstractIOTask implements Runnable { 43 43 private OsmServerWriter writer; 44 private OsmDataLayer layer;45 private ProgressMonitor monitor;46 private Changeset changeset;44 private final OsmDataLayer layer; 45 private final ProgressMonitor monitor; 46 private final Changeset changeset; 47 47 private Collection<OsmPrimitive> toUpload; 48 private Set<IPrimitive> processedPrimitives;49 private UploadStrategySpecification strategy;48 private final Set<IPrimitive> processedPrimitives; 49 private final UploadStrategySpecification strategy; 50 50 51 51 /** -
trunk/src/org/openstreetmap/josm/gui/io/UploadPrimitivesTask.java
r8840 r9078 45 45 private boolean uploadCanceled; 46 46 private Exception lastException; 47 private APIDataSet toUpload;47 private final APIDataSet toUpload; 48 48 private OsmServerWriter writer; 49 private OsmDataLayer layer;49 private final OsmDataLayer layer; 50 50 private Changeset changeset; 51 private Set<IPrimitive> processedPrimitives;52 private UploadStrategySpecification strategy;51 private final Set<IPrimitive> processedPrimitives; 52 private final UploadStrategySpecification strategy; 53 53 54 54 /** -
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r9059 r9078 124 124 private boolean needRedraw; 125 125 126 private AttributionSupport attribution = new AttributionSupport();126 private final AttributionSupport attribution = new AttributionSupport(); 127 127 128 128 // needed public access for session exporter … … 481 481 482 482 private class BooleanButtonModel extends DefaultButtonModel { 483 private Field field;483 private final Field field; 484 484 485 485 BooleanButtonModel(Field field) { … … 1627 1627 private final ProgressMonitor progressMonitor; 1628 1628 private int totalCount; 1629 private AtomicInteger processedCount = new AtomicInteger(0);1629 private final AtomicInteger processedCount = new AtomicInteger(0); 1630 1630 private final TileLoader tileLoader; 1631 1631 -
trunk/src/org/openstreetmap/josm/gui/layer/ImageryLayer.java
r9070 r9078 175 175 176 176 class ApplyOffsetAction extends AbstractAction { 177 private transient OffsetBookmark b;177 private final transient OffsetBookmark b; 178 178 179 179 ApplyOffsetAction(OffsetBookmark b) { … … 261 261 private double gamma = 1; 262 262 final short[] gammaChange = new short[256]; 263 private LookupOp op3 = new LookupOp(new ShortLookupTable(0, new short[][]{gammaChange, gammaChange, gammaChange}), null); 264 private LookupOp op4 = new LookupOp(new ShortLookupTable(0, new short[][]{gammaChange, gammaChange, gammaChange, gammaChange}), null); 263 private final LookupOp op3 = new LookupOp( 264 new ShortLookupTable(0, new short[][]{gammaChange, gammaChange, gammaChange}), null); 265 private final LookupOp op4 = new LookupOp( 266 new ShortLookupTable(0, new short[][]{gammaChange, gammaChange, gammaChange, gammaChange}), null); 265 267 266 268 /** -
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r8956 r9078 232 232 * the collection of conflicts detected in this layer 233 233 */ 234 private ConflictCollection conflicts;234 private final ConflictCollection conflicts; 235 235 236 236 /** -
trunk/src/org/openstreetmap/josm/gui/layer/WMSLayer.java
r8906 r9078 49 49 private static final String CACHE_REGION_NAME = "WMS"; 50 50 51 private Set<String> supportedProjections;51 private final Set<String> supportedProjections; 52 52 53 53 /** -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r8870 r9078 92 92 private static List<GpxData> loadedGpxData = new ArrayList<>(); 93 93 94 private transient GeoImageLayer yLayer;94 private final transient GeoImageLayer yLayer; 95 95 private double timezone; 96 96 private long delta; … … 209 209 210 210 private static class GpxDataWrapper { 211 private String name;212 private GpxData data;213 private File file;211 private final String name; 212 private final GpxData data; 213 private final File file; 214 214 215 215 GpxDataWrapper(String name, GpxData data, File file) { … … 226 226 227 227 private ExtendedDialog syncDialog; 228 private transient List<GpxDataWrapper> gpxLst = new ArrayList<>();228 private final transient List<GpxDataWrapper> gpxLst = new ArrayList<>(); 229 229 private JPanel outerPanel; 230 230 private JosmComboBox<GpxDataWrapper> cbGpx; … … 773 773 } 774 774 775 private transient StatusBarUpdater statusBarUpdater = new StatusBarUpdater(false);776 private transient StatusBarUpdater statusBarUpdaterWithRepaint = new StatusBarUpdater(true);775 private final transient StatusBarUpdater statusBarUpdater = new StatusBarUpdater(false); 776 private final transient StatusBarUpdater statusBarUpdaterWithRepaint = new StatusBarUpdater(true); 777 777 778 778 private class StatusBarUpdater implements DocumentListener, ItemListener, ActionListener { 779 private boolean doRepaint;779 private final boolean doRepaint; 780 780 781 781 StatusBarUpdater(boolean doRepaint) { … … 850 850 } 851 851 852 private transient RepaintTheMapListener repaintTheMap = new RepaintTheMapListener();852 private final transient RepaintTheMapListener repaintTheMap = new RepaintTheMapListener(); 853 853 854 854 private class RepaintTheMapListener implements FocusListener { -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java
r8870 r9078 88 88 GpxLayer gpxLayer; 89 89 90 private Icon icon = ImageProvider.get("dialogs/geoimage/photo-marker");91 private Icon selectedIcon = ImageProvider.get("dialogs/geoimage/photo-marker-selected");90 private final Icon icon = ImageProvider.get("dialogs/geoimage/photo-marker"); 91 private final Icon selectedIcon = ImageProvider.get("dialogs/geoimage/photo-marker-selected"); 92 92 93 93 private int currentPhoto = -1; 94 94 95 95 boolean useThumbs; 96 private ExecutorService thumbsLoaderExecutor =96 private final ExecutorService thumbsLoaderExecutor = 97 97 Executors.newSingleThreadExecutor(Utils.newThreadFactory("thumbnail-loader-%d", Thread.MIN_PRIORITY)); 98 98 private ThumbsLoader thumbsloader; … … 111 111 private boolean canceled; 112 112 private GeoImageLayer layer; 113 private Collection<File> selection;114 private Set<String> loadedDirectories = new HashSet<>();115 private Set<String> errorMessages;116 private GpxLayer gpxLayer;113 private final Collection<File> selection; 114 private final Set<String> loadedDirectories = new HashSet<>(); 115 private final Set<String> errorMessages; 116 private final GpxLayer gpxLayer; 117 117 118 118 protected void rememberError(String message) { -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java
r9075 r9078 49 49 50 50 /** The tracker to load the images */ 51 private MediaTracker tracker = new MediaTracker(this);51 private final MediaTracker tracker = new MediaTracker(this); 52 52 53 53 private String osdText; … … 59 59 private class LoadImageRunnable implements Runnable { 60 60 61 private File file;62 private int orientation;61 private final File file; 62 private final int orientation; 63 63 64 64 LoadImageRunnable(File file, Integer orientation) { -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java
r8840 r9078 45 45 private static final String COMMAND_COPY_PATH = "copypath"; 46 46 47 private ImageDisplay imgDisplay = new ImageDisplay();47 private final ImageDisplay imgDisplay = new ImageDisplay(); 48 48 private boolean centerView; 49 49 -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ThumbsLoader.java
r8905 r9078 27 27 public static final int minSize = 22; 28 28 public volatile boolean stop; 29 private List<ImageEntry> data;30 private GeoImageLayer layer;29 private final List<ImageEntry> data; 30 private final GeoImageLayer layer; 31 31 private MediaTracker tracker; 32 32 private ICacheAccess<String, BufferedImageCacheEntry> cache; 33 private boolean cacheOff = Main.pref.getBoolean("geoimage.noThumbnailCache", false);33 private final boolean cacheOff = Main.pref.getBoolean("geoimage.noThumbnailCache", false); 34 34 35 35 public ThumbsLoader(GeoImageLayer layer) { -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/ChooseTrackVisibilityAction.java
r8840 r9078 67 67 */ 68 68 private static final class TrackLength { 69 private double value;69 private final double value; 70 70 71 71 /** -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/DateFilterPanel.java
r8836 r9078 23 23 24 24 public class DateFilterPanel extends JPanel { 25 private DateEditorWithSlider dateFrom = new DateEditorWithSlider(tr("From"));26 private DateEditorWithSlider dateTo = new DateEditorWithSlider(tr("To"));27 private JCheckBox noTimestampCb = new JCheckBox(tr("No timestamp"));28 private transient GpxLayer layer;25 private final DateEditorWithSlider dateFrom = new DateEditorWithSlider(tr("From")); 26 private final DateEditorWithSlider dateTo = new DateEditorWithSlider(tr("To")); 27 private final JCheckBox noTimestampCb = new JCheckBox(tr("No timestamp")); 28 private final transient GpxLayer layer; 29 29 30 30 private transient ActionListener filterAppliedListener; … … 67 67 } 68 68 69 private transient ChangeListener changeListener = new ChangeListener() {69 private final transient ChangeListener changeListener = new ChangeListener() { 70 70 @Override public void stateChanged(ChangeEvent e) { 71 71 if (isEnabled()) applyFilterWithDelay(); … … 73 73 }; 74 74 75 private Timer t = new Timer(200, new ActionListener() {75 private final Timer t = new Timer(200, new ActionListener() { 76 76 @Override public void actionPerformed(ActionEvent e) { 77 77 applyFilter(); -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/DownloadAlongTrackAction.java
r8840 r9078 101 101 class CalculateDownloadArea extends PleaseWaitRunnable { 102 102 103 private Area a = new Area();103 private final Area a = new Area(); 104 104 private boolean cancel; 105 105 private int ticks; 106 private Rectangle2D r = new Rectangle2D.Double();106 private final Rectangle2D r = new Rectangle2D.Double(); 107 107 108 108 CalculateDownloadArea() { -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelper.java
r9073 r9078 28 28 */ 29 29 public class GpxDrawHelper { 30 private GpxData data;30 private final GpxData data; 31 31 32 32 // draw lines between points belonging to different segments -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/AudioMarker.java
r8840 r9078 22 22 public class AudioMarker extends ButtonMarker { 23 23 24 private URL audioUrl;24 private final URL audioUrl; 25 25 private static volatile AudioMarker recentlyPlayedMarker; 26 26 public double syncOffset; -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/ButtonMarker.java
r8540 r9078 24 24 public class ButtonMarker extends Marker { 25 25 26 private Rectangle buttonRectangle;26 private final Rectangle buttonRectangle; 27 27 28 28 public ButtonMarker(LatLon ll, String buttonImage, MarkerLayer parentLayer, double time, double offset) { -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java
r8846 r9078 139 139 } 140 140 141 private TemplateEntryProperty parent;141 private final TemplateEntryProperty parent; 142 142 143 143 private TemplateEntryProperty(String key, String defaultValue, TemplateEntryProperty parent) { -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/PlayHeadMarker.java
r8840 r9078 40 40 private MapMode oldMode; 41 41 private LatLon oldCoor; 42 private boolean enabled;42 private final boolean enabled; 43 43 private boolean wasPlaying; 44 44 private int dropTolerance; /* pixels */ -
trunk/src/org/openstreetmap/josm/gui/mappaint/BoxTextElemStyle.java
r8958 r9078 26 26 27 27 public static class BoxProviderResult { 28 private Rectangle box;29 private boolean temporary;28 private final Rectangle box; 29 private final boolean temporary; 30 30 31 31 public BoxProviderResult(Rectangle box, boolean temporary) { … … 52 52 53 53 public static class SimpleBoxProvider implements BoxProvider { 54 private Rectangle box;54 private final Rectangle box; 55 55 56 56 /** -
trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyles.java
r8855 r9078 24 24 25 25 public class ElemStyles { 26 private List<StyleSource> styleSources;26 private final List<StyleSource> styleSources; 27 27 private boolean drawMultipolygon; 28 28 -
trunk/src/org/openstreetmap/josm/gui/mappaint/LabelCompositionStrategy.java
r8973 r9078 48 48 49 49 public static class StaticLabelCompositionStrategy extends LabelCompositionStrategy { 50 private String defaultLabel;50 private final String defaultLabel; 51 51 52 52 public StaticLabelCompositionStrategy(String defaultLabel) { … … 96 96 public static class TagLookupCompositionStrategy extends LabelCompositionStrategy { 97 97 98 private String defaultLabelTag;98 private final String defaultLabelTag; 99 99 100 100 public TagLookupCompositionStrategy(String defaultLabelTag) { -
trunk/src/org/openstreetmap/josm/gui/mappaint/LineTextElemStyle.java
r8846 r9078 12 12 public class LineTextElemStyle extends ElemStyle { 13 13 14 private TextElement text;14 private final TextElement text; 15 15 16 16 protected LineTextElemStyle(Cascade c, TextElement text) { -
trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintMenu.java
r8870 r9078 31 31 32 32 private transient StyleSource style; 33 private JCheckBoxMenuItem button;33 private final JCheckBoxMenuItem button; 34 34 35 35 MapPaintAction(StyleSource style) { -
trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java
r8937 r9078 343 343 public static class MapPaintStyleLoader extends PleaseWaitRunnable { 344 344 private boolean canceled; 345 private Collection<StyleSource> sources;345 private final Collection<StyleSource> sources; 346 346 347 347 public MapPaintStyleLoader(Collection<StyleSource> sources) { -
trunk/src/org/openstreetmap/josm/gui/mappaint/MultiCascade.java
r8846 r9078 16 16 public class MultiCascade implements StyleKeys { 17 17 18 private Map<String, Cascade> layers;18 private final Map<String, Cascade> layers; 19 19 public Range range; 20 20 -
trunk/src/org/openstreetmap/josm/gui/mappaint/StyleCache.java
r8575 r9078 47 47 */ 48 48 public static class StyleList implements Iterable<ElemStyle> { 49 private List<ElemStyle> lst;49 private final List<ElemStyle> lst; 50 50 51 51 /** -
trunk/src/org/openstreetmap/josm/gui/mappaint/StyleSource.java
r8419 r9078 33 33 public abstract class StyleSource extends SourceEntry { 34 34 35 private List<Throwable> errors = new ArrayList<>();35 private final List<Throwable> errors = new ArrayList<>(); 36 36 public File zipIcons; 37 37 -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java
r9059 r9078 967 967 public static class CondOperator implements Expression { 968 968 969 private Expression condition, firstOption, secondOption;969 private final Expression condition, firstOption, secondOption; 970 970 971 971 /** … … 996 996 public static class AndOperator implements Expression { 997 997 998 private List<Expression> args;998 private final List<Expression> args; 999 999 1000 1000 /** … … 1023 1023 public static class OrOperator implements Expression { 1024 1024 1025 private List<Expression> args;1025 private final List<Expression> args; 1026 1026 1027 1027 /** … … 1055 1055 public static class LengthFunction implements Expression { 1056 1056 1057 private Expression arg;1057 private final Expression arg; 1058 1058 1059 1059 /** -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Selector.java
r9059 r9078 122 122 */ 123 123 private class MatchingReferrerFinder extends AbstractVisitor { 124 private Environment e;124 private final Environment e; 125 125 126 126 /** -
trunk/src/org/openstreetmap/josm/gui/mappaint/xml/XmlStyleSourceHandler.java
r8846 r9078 17 17 private boolean inDoc, inRule, inCondition, inLine, inLineMod, inIcon, inArea, inScaleMax, inScaleMin; 18 18 private boolean hadLine, hadLineMod, hadIcon, hadArea; 19 private RuleElem rule = new RuleElem();20 21 private XmlStyleSource style;19 private final RuleElem rule = new RuleElem(); 20 21 private final XmlStyleSource style; 22 22 23 23 static class RuleElem { 24 private XmlCondition cond = new XmlCondition();24 private final XmlCondition cond = new XmlCondition(); 25 25 private Collection<XmlCondition> conditions; 26 26 private double scaleMax; 27 27 private double scaleMin; 28 private LinePrototype line = new LinePrototype();29 private LinemodPrototype linemod = new LinemodPrototype();30 private AreaPrototype area = new AreaPrototype();28 private final LinePrototype line = new LinePrototype(); 29 private final LinemodPrototype linemod = new LinemodPrototype(); 30 private final AreaPrototype area = new AreaPrototype(); 31 31 private IconPrototype icon = new IconPrototype(); 32 32 public void init() { -
trunk/src/org/openstreetmap/josm/gui/oauth/RetrieveAccessTokenTask.java
r8510 r9078 28 28 private boolean canceled; 29 29 private OAuthToken accessToken; 30 private OAuthParameters parameters;30 private final OAuthParameters parameters; 31 31 private OsmOAuthAuthorizationClient client; 32 private OAuthToken requestToken;33 private Component parent;32 private final OAuthToken requestToken; 33 private final Component parent; 34 34 35 35 /** -
trunk/src/org/openstreetmap/josm/gui/oauth/RetrieveRequestTokenTask.java
r8510 r9078 27 27 private boolean canceled; 28 28 private OAuthToken requestToken; 29 private OAuthParameters parameters;29 private final OAuthParameters parameters; 30 30 private OsmOAuthAuthorizationClient client; 31 private Component parent;31 private final Component parent; 32 32 33 33 /** -
trunk/src/org/openstreetmap/josm/gui/oauth/TestAccessTokenTask.java
r8510 r9078 12 12 import javax.xml.parsers.DocumentBuilderFactory; 13 13 import javax.xml.parsers.ParserConfigurationException; 14 15 import oauth.signpost.OAuthConsumer;16 import oauth.signpost.exception.OAuthException;17 14 18 15 import org.openstreetmap.josm.Main; … … 33 30 import org.xml.sax.SAXException; 34 31 32 import oauth.signpost.OAuthConsumer; 33 import oauth.signpost.exception.OAuthException; 34 35 35 /** 36 36 * Checks whether an OSM API server can be accessed with a specific Access Token. … … 41 41 */ 42 42 public class TestAccessTokenTask extends PleaseWaitRunnable { 43 private OAuthToken token;44 private OAuthParameters oauthParameters;43 private final OAuthToken token; 44 private final OAuthParameters oauthParameters; 45 45 private boolean canceled; 46 private Component parent;47 private String apiUrl;46 private final Component parent; 47 private final String apiUrl; 48 48 private HttpURLConnection connection; 49 49 -
trunk/src/org/openstreetmap/josm/gui/preferences/SourceEditor.java
r9074 r9078 481 481 482 482 protected static class AvailableSourcesListModel extends DefaultListModel<ExtendedSourceEntry> { 483 private transient List<ExtendedSourceEntry> data;484 private DefaultListSelectionModel selectionModel;483 private final transient List<ExtendedSourceEntry> data; 484 private final DefaultListSelectionModel selectionModel; 485 485 486 486 public AvailableSourcesListModel(DefaultListSelectionModel selectionModel) { … … 534 534 protected class ActiveSourcesModel extends AbstractTableModel { 535 535 private transient List<SourceEntry> data; 536 private DefaultListSelectionModel selectionModel;536 private final DefaultListSelectionModel selectionModel; 537 537 538 538 public ActiveSourcesModel(DefaultListSelectionModel selectionModel) { … … 764 764 protected class EditSourceEntryDialog extends ExtendedDialog { 765 765 766 private JosmTextField tfTitle;767 private JosmTextField tfURL;766 private final JosmTextField tfTitle; 767 private final JosmTextField tfURL; 768 768 private JCheckBox cbActive; 769 769 … … 1091 1091 1092 1092 protected static class IconPathTableModel extends AbstractTableModel { 1093 private List<String> data;1094 private DefaultListSelectionModel selectionModel;1093 private final List<String> data; 1094 private final DefaultListSelectionModel selectionModel; 1095 1095 1096 1096 public IconPathTableModel(DefaultListSelectionModel selectionModel) { … … 1451 1451 class FileOrUrlCellEditor extends JPanel implements TableCellEditor { 1452 1452 private JosmTextField tfFileName; 1453 private CopyOnWriteArrayList<CellEditorListener> listeners;1453 private final CopyOnWriteArrayList<CellEditorListener> listeners; 1454 1454 private String value; 1455 private boolean isFile;1455 private final boolean isFile; 1456 1456 1457 1457 /** -
trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
r9073 r9078 408 408 } 409 409 410 private JMenuItem remove = new JMenuItem(new AbstractAction(tr("Remove from toolbar")) {410 private final JMenuItem remove = new JMenuItem(new AbstractAction(tr("Remove from toolbar")) { 411 411 @Override 412 412 public void actionPerformed(ActionEvent e) { … … 422 422 }); 423 423 424 private JMenuItem configure = new JMenuItem(new AbstractAction(tr("Configure toolbar")) {424 private final JMenuItem configure = new JMenuItem(new AbstractAction(tr("Configure toolbar")) { 425 425 @Override 426 426 public void actionPerformed(ActionEvent e) { … … 431 431 }); 432 432 433 private JMenuItem shortcutEdit = new JMenuItem(new AbstractAction(tr("Edit shortcut")) {433 private final JMenuItem shortcutEdit = new JMenuItem(new AbstractAction(tr("Edit shortcut")) { 434 434 @Override 435 435 public void actionPerformed(ActionEvent e) { … … 443 443 }); 444 444 445 private JCheckBoxMenuItem doNotHide = new JCheckBoxMenuItem(new AbstractAction(tr("Do not hide toolbar and menu")) {445 private final JCheckBoxMenuItem doNotHide = new JCheckBoxMenuItem(new AbstractAction(tr("Do not hide toolbar and menu")) { 446 446 @Override 447 447 public void actionPerformed(ActionEvent e) { … … 474 474 } 475 475 476 private ToolbarPopupMenu popupMenu = new ToolbarPopupMenu();476 private final ToolbarPopupMenu popupMenu = new ToolbarPopupMenu(); 477 477 478 478 /** -
trunk/src/org/openstreetmap/josm/gui/preferences/advanced/AdvancedPreference.java
r8870 r9078 68 68 69 69 private List<PrefEntry> allData; 70 private List<PrefEntry> displayData = new ArrayList<>();70 private final List<PrefEntry> displayData = new ArrayList<>(); 71 71 private JosmTextField txtFilter; 72 72 private PreferencesTable table; … … 277 277 } 278 278 279 private Comparator<PrefEntry> customComparator = new Comparator<PrefEntry>() {279 private final Comparator<PrefEntry> customComparator = new Comparator<PrefEntry>() { 280 280 @Override 281 281 public int compare(PrefEntry o1, PrefEntry o2) { … … 321 321 } 322 322 323 private Map<String, String> profileTypes = new LinkedHashMap<>();323 private final Map<String, String> profileTypes = new LinkedHashMap<>(); 324 324 325 325 private JPopupMenu buildPopupMenu() { -
trunk/src/org/openstreetmap/josm/gui/preferences/advanced/ListEditor.java
r8510 r9078 31 31 32 32 private List<String> data; 33 private transient PrefEntry entry;33 private final transient PrefEntry entry; 34 34 35 35 /** -
trunk/src/org/openstreetmap/josm/gui/preferences/advanced/ListListEditor.java
r8836 r9078 39 39 40 40 private EntryListModel entryModel; 41 private List<List<String>> data;42 private transient PrefEntry entry;41 private final List<List<String>> data; 42 private final transient PrefEntry entry; 43 43 44 44 private JList<String> entryList; -
trunk/src/org/openstreetmap/josm/gui/preferences/advanced/MapListEditor.java
r8836 r9078 43 43 44 44 private EntryListModel entryModel; 45 private transient PrefEntry entry;45 private final transient PrefEntry entry; 46 46 47 47 private JList<String> entryList; … … 49 49 private MapTableModel tableModel; 50 50 51 private List<List<String>> dataKeys;52 private List<List<String>> dataValues;51 private final List<List<String>> dataKeys; 52 private final List<List<String>> dataValues; 53 53 private Integer entryIdx; 54 54 -
trunk/src/org/openstreetmap/josm/gui/preferences/advanced/PrefEntry.java
r8382 r9078 10 10 */ 11 11 public class PrefEntry implements Comparable<PrefEntry> { 12 private String key;12 private final String key; 13 13 private Setting<?> value; 14 private Setting<?> defaultValue;14 private final Setting<?> defaultValue; 15 15 private boolean isDefault; 16 16 private boolean changed; -
trunk/src/org/openstreetmap/josm/gui/preferences/advanced/PreferencesTable.java
r8836 r9078 42 42 */ 43 43 public class PreferencesTable extends JTable { 44 private AllSettingsTableModel model;44 private final AllSettingsTableModel model; 45 45 private final transient List<PrefEntry> displayData; 46 46 … … 298 298 299 299 private static class SettingCellRenderer extends DefaultTableCellRenderer { 300 private Color backgroundColor = Main.pref.getUIColor("Table.background");301 private Color changedColor = Main.pref.getColor(300 private final Color backgroundColor = Main.pref.getUIColor("Table.background"); 301 private final Color changedColor = Main.pref.getColor( 302 302 marktr("Advanced Background: Changed"), 303 303 new Color(200, 255, 200)); 304 private Color foregroundColor = Main.pref.getUIColor("Table.foreground");305 private Color nonDefaultColor = Main.pref.getColor(304 private final Color foregroundColor = Main.pref.getUIColor("Table.foreground"); 305 private final Color nonDefaultColor = Main.pref.getColor( 306 306 marktr("Advanced Background: NonDefault"), 307 307 new Color(255, 255, 200)); -
trunk/src/org/openstreetmap/josm/gui/preferences/advanced/StringEditor.java
r8510 r9078 20 20 public class StringEditor extends ExtendedDialog { 21 21 22 private transient PrefEntry entry;22 private final transient PrefEntry entry; 23 23 private JosmTextField tvalue; 24 24 -
trunk/src/org/openstreetmap/josm/gui/preferences/audio/AudioPreference.java
r8510 r9078 38 38 } 39 39 40 private JCheckBox audioMenuVisible = new JCheckBox(tr("Display the Audio menu."));41 private JCheckBox markerButtonLabels = new JCheckBox(tr("Label audio (and image and web) markers."));42 private JCheckBox markerAudioTraceVisible = new JCheckBox(tr("Display live audio trace."));40 private final JCheckBox audioMenuVisible = new JCheckBox(tr("Display the Audio menu.")); 41 private final JCheckBox markerButtonLabels = new JCheckBox(tr("Label audio (and image and web) markers.")); 42 private final JCheckBox markerAudioTraceVisible = new JCheckBox(tr("Display live audio trace.")); 43 43 44 44 // various methods of making markers on import audio 45 private JCheckBox audioMarkersFromExplicitWaypoints = new JCheckBox(tr("Explicit waypoints with valid timestamps."));46 private JCheckBox audioMarkersFromUntimedWaypoints = new JCheckBox(tr("Explicit waypoints with time estimated from track position."));47 private JCheckBox audioMarkersFromNamedTrackpoints = new JCheckBox(tr("Named trackpoints."));48 private JCheckBox audioMarkersFromWavTimestamps = new JCheckBox(tr("Modified times (time stamps) of audio files."));49 private JCheckBox audioMarkersFromStart = new JCheckBox(tr("Start of track (will always do this if no other markers available)."));45 private final JCheckBox audioMarkersFromExplicitWaypoints = new JCheckBox(tr("Explicit waypoints with valid timestamps.")); 46 private final JCheckBox audioMarkersFromUntimedWaypoints = new JCheckBox(tr("Explicit waypoints with time estimated from track position.")); 47 private final JCheckBox audioMarkersFromNamedTrackpoints = new JCheckBox(tr("Named trackpoints.")); 48 private final JCheckBox audioMarkersFromWavTimestamps = new JCheckBox(tr("Modified times (time stamps) of audio files.")); 49 private final JCheckBox audioMarkersFromStart = new JCheckBox(tr("Start of track (will always do this if no other markers available).")); 50 50 51 private JosmTextField audioLeadIn = new JosmTextField(8);52 private JosmTextField audioForwardBackAmount = new JosmTextField(8);53 private JosmTextField audioFastForwardMultiplier = new JosmTextField(8);54 private JosmTextField audioCalibration = new JosmTextField(8);51 private final JosmTextField audioLeadIn = new JosmTextField(8); 52 private final JosmTextField audioForwardBackAmount = new JosmTextField(8); 53 private final JosmTextField audioFastForwardMultiplier = new JosmTextField(8); 54 private final JosmTextField audioCalibration = new JosmTextField(8); 55 55 56 56 @Override -
trunk/src/org/openstreetmap/josm/gui/preferences/display/ColorPreference.java
r8870 r9078 67 67 private DefaultTableModel tableModel; 68 68 private JTable colors; 69 private List<String> del = new ArrayList<>();69 private final List<String> del = new ArrayList<>(); 70 70 71 71 private JButton colorEdit; -
trunk/src/org/openstreetmap/josm/gui/preferences/display/DrawingPreference.java
r8510 r9078 40 40 41 41 private GPXSettingsPanel gpxPanel; 42 private JCheckBox directionHint = new JCheckBox(tr("Draw Direction Arrows"));43 private JCheckBox headArrow = new JCheckBox(tr("Only on the head of a way."));44 private JCheckBox onewayArrow = new JCheckBox(tr("Draw oneway arrows."));45 private JCheckBox segmentOrderNumber = new JCheckBox(tr("Draw segment order numbers"));46 private JCheckBox sourceBounds = new JCheckBox(tr("Draw boundaries of downloaded data"));47 private JCheckBox virtualNodes = new JCheckBox(tr("Draw virtual nodes in select mode"));48 private JCheckBox inactive = new JCheckBox(tr("Draw inactive layers in other color"));49 private JCheckBox discardableKeys = new JCheckBox(tr("Display discardable keys"));42 private final JCheckBox directionHint = new JCheckBox(tr("Draw Direction Arrows")); 43 private final JCheckBox headArrow = new JCheckBox(tr("Only on the head of a way.")); 44 private final JCheckBox onewayArrow = new JCheckBox(tr("Draw oneway arrows.")); 45 private final JCheckBox segmentOrderNumber = new JCheckBox(tr("Draw segment order numbers")); 46 private final JCheckBox sourceBounds = new JCheckBox(tr("Draw boundaries of downloaded data")); 47 private final JCheckBox virtualNodes = new JCheckBox(tr("Draw virtual nodes in select mode")); 48 private final JCheckBox inactive = new JCheckBox(tr("Draw inactive layers in other color")); 49 private final JCheckBox discardableKeys = new JCheckBox(tr("Display discardable keys")); 50 50 51 51 // Options that affect performance 52 private JCheckBox useHighlighting = new JCheckBox(tr("Highlight target ways and nodes"));53 private JCheckBox drawHelperLine = new JCheckBox(tr("Draw rubber-band helper line"));54 private JCheckBox useAntialiasing = new JCheckBox(tr("Smooth map graphics (antialiasing)"));55 private JCheckBox useWireframeAntialiasing = new JCheckBox(tr("Smooth map graphics in wireframe mode (antialiasing)"));56 private JCheckBox outlineOnly = new JCheckBox(tr("Draw only outlines of areas"));52 private final JCheckBox useHighlighting = new JCheckBox(tr("Highlight target ways and nodes")); 53 private final JCheckBox drawHelperLine = new JCheckBox(tr("Draw rubber-band helper line")); 54 private final JCheckBox useAntialiasing = new JCheckBox(tr("Smooth map graphics (antialiasing)")); 55 private final JCheckBox useWireframeAntialiasing = new JCheckBox(tr("Smooth map graphics in wireframe mode (antialiasing)")); 56 private final JCheckBox outlineOnly = new JCheckBox(tr("Draw only outlines of areas")); 57 57 58 58 @Override -
trunk/src/org/openstreetmap/josm/gui/preferences/display/GPXSettingsPanel.java
r8540 r9078 44 44 45 45 46 private JRadioButton drawRawGpsLinesGlobal = new JRadioButton(tr("Use global settings"));47 private JRadioButton drawRawGpsLinesAll = new JRadioButton(tr("All"));48 private JRadioButton drawRawGpsLinesLocal = new JRadioButton(tr("Local files"));49 private JRadioButton drawRawGpsLinesNone = new JRadioButton(tr("None"));46 private final JRadioButton drawRawGpsLinesGlobal = new JRadioButton(tr("Use global settings")); 47 private final JRadioButton drawRawGpsLinesAll = new JRadioButton(tr("All")); 48 private final JRadioButton drawRawGpsLinesLocal = new JRadioButton(tr("Local files")); 49 private final JRadioButton drawRawGpsLinesNone = new JRadioButton(tr("None")); 50 50 private transient ActionListener drawRawGpsLinesActionListener; 51 private JosmTextField drawRawGpsMaxLineLength = new JosmTextField(8);52 private JosmTextField drawRawGpsMaxLineLengthLocal = new JosmTextField(8);53 private JosmTextField drawLineWidth = new JosmTextField(2);54 private JCheckBox forceRawGpsLines = new JCheckBox(tr("Force lines if no segments imported"));55 private JCheckBox largeGpsPoints = new JCheckBox(tr("Draw large GPS points"));56 private JCheckBox hdopCircleGpsPoints = new JCheckBox(tr("Draw a circle from HDOP value"));57 private JRadioButton colorTypeVelocity = new JRadioButton(tr("Velocity (red = slow, green = fast)"));58 private JRadioButton colorTypeDirection = new JRadioButton(tr("Direction (red = west, yellow = north, green = east, blue = south)"));59 private JRadioButton colorTypeDilution = new JRadioButton(tr("Dilution of Position (red = high, green = low, if available)"));60 private JRadioButton colorTypeTime = new JRadioButton(tr("Track date"));61 private JRadioButton colorTypeNone = new JRadioButton(tr("Single Color (can be customized for named layers)"));62 private JRadioButton colorTypeGlobal = new JRadioButton(tr("Use global settings"));63 private JosmComboBox<String> colorTypeVelocityTune = new JosmComboBox<>(new String[] {tr("Car"), tr("Bicycle"), tr("Foot")});64 private JCheckBox makeAutoMarkers = new JCheckBox(tr("Create markers when reading GPX"));65 private JCheckBox drawGpsArrows = new JCheckBox(tr("Draw Direction Arrows"));66 private JCheckBox drawGpsArrowsFast = new JCheckBox(tr("Fast drawing (looks uglier)"));67 private JosmTextField drawGpsArrowsMinDist = new JosmTextField(8);68 private JCheckBox colorDynamic = new JCheckBox(tr("Dynamic color range based on data limits"));69 private JosmComboBox<String> waypointLabel = new JosmComboBox<>(LABEL_PATTERN_DESC);70 private JosmTextField waypointLabelPattern = new JosmTextField();71 private JosmComboBox<String> audioWaypointLabel = new JosmComboBox<>(LABEL_PATTERN_DESC);72 private JosmTextField audioWaypointLabelPattern = new JosmTextField();73 private JCheckBox useGpsAntialiasing = new JCheckBox(tr("Smooth GPX graphics (antialiasing)"));51 private final JosmTextField drawRawGpsMaxLineLength = new JosmTextField(8); 52 private final JosmTextField drawRawGpsMaxLineLengthLocal = new JosmTextField(8); 53 private final JosmTextField drawLineWidth = new JosmTextField(2); 54 private final JCheckBox forceRawGpsLines = new JCheckBox(tr("Force lines if no segments imported")); 55 private final JCheckBox largeGpsPoints = new JCheckBox(tr("Draw large GPS points")); 56 private final JCheckBox hdopCircleGpsPoints = new JCheckBox(tr("Draw a circle from HDOP value")); 57 private final JRadioButton colorTypeVelocity = new JRadioButton(tr("Velocity (red = slow, green = fast)")); 58 private final JRadioButton colorTypeDirection = new JRadioButton(tr("Direction (red = west, yellow = north, green = east, blue = south)")); 59 private final JRadioButton colorTypeDilution = new JRadioButton(tr("Dilution of Position (red = high, green = low, if available)")); 60 private final JRadioButton colorTypeTime = new JRadioButton(tr("Track date")); 61 private final JRadioButton colorTypeNone = new JRadioButton(tr("Single Color (can be customized for named layers)")); 62 private final JRadioButton colorTypeGlobal = new JRadioButton(tr("Use global settings")); 63 private final JosmComboBox<String> colorTypeVelocityTune = new JosmComboBox<>(new String[] {tr("Car"), tr("Bicycle"), tr("Foot")}); 64 private final JCheckBox makeAutoMarkers = new JCheckBox(tr("Create markers when reading GPX")); 65 private final JCheckBox drawGpsArrows = new JCheckBox(tr("Draw Direction Arrows")); 66 private final JCheckBox drawGpsArrowsFast = new JCheckBox(tr("Fast drawing (looks uglier)")); 67 private final JosmTextField drawGpsArrowsMinDist = new JosmTextField(8); 68 private final JCheckBox colorDynamic = new JCheckBox(tr("Dynamic color range based on data limits")); 69 private final JosmComboBox<String> waypointLabel = new JosmComboBox<>(LABEL_PATTERN_DESC); 70 private final JosmTextField waypointLabelPattern = new JosmTextField(); 71 private final JosmComboBox<String> audioWaypointLabel = new JosmComboBox<>(LABEL_PATTERN_DESC); 72 private final JosmTextField audioWaypointLabelPattern = new JosmTextField(); 73 private final JCheckBox useGpsAntialiasing = new JCheckBox(tr("Smooth GPX graphics (antialiasing)")); 74 74 75 75 private String layerName; -
trunk/src/org/openstreetmap/josm/gui/preferences/display/LafPreference.java
r8510 r9078 55 55 private JosmComboBox<LookAndFeelInfo> lafCombo; 56 56 JPanel panel; 57 private JCheckBox showSplashScreen = new JCheckBox(tr("Show splash screen at startup"));58 private JCheckBox showID = new JCheckBox(tr("Show object ID in selection lists"));59 private JCheckBox showLocalizedName = new JCheckBox(tr("Show localized name in selection lists"));60 private JCheckBox modeless = new JCheckBox(tr("Modeless working (Potlatch style)"));61 private JCheckBox dynamicButtons = new JCheckBox(tr("Dynamic buttons in side menus"));62 private JCheckBox isoDates = new JCheckBox(tr("Display ISO dates"));63 private JCheckBox nativeFileChoosers = new JCheckBox(tr("Use native file choosers (nicer, but do not support file filters)"));57 private final JCheckBox showSplashScreen = new JCheckBox(tr("Show splash screen at startup")); 58 private final JCheckBox showID = new JCheckBox(tr("Show object ID in selection lists")); 59 private final JCheckBox showLocalizedName = new JCheckBox(tr("Show localized name in selection lists")); 60 private final JCheckBox modeless = new JCheckBox(tr("Modeless working (Potlatch style)")); 61 private final JCheckBox dynamicButtons = new JCheckBox(tr("Dynamic buttons in side menus")); 62 private final JCheckBox isoDates = new JCheckBox(tr("Display ISO dates")); 63 private final JCheckBox nativeFileChoosers = new JCheckBox(tr("Use native file choosers (nicer, but do not support file filters)")); 64 64 65 65 @Override -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/CacheContentsPanel.java
r8870 r9078 68 68 private final Action action; 69 69 private final JButton renderButton; 70 private JButton editButton;70 private final JButton editButton; 71 71 private Object editorValue; 72 72 -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreference.java
r8870 r9078 237 237 private static class ImageryURLTableCellRenderer extends DefaultTableCellRenderer { 238 238 239 private transient List<ImageryInfo> layers;239 private final transient List<ImageryInfo> layers; 240 240 241 241 ImageryURLTableCellRenderer(List<ImageryInfo> layers) { … … 807 807 808 808 static class OffsetBookmarksPanel extends JPanel { 809 private transient List<OffsetBookmark> bookmarks = OffsetBookmark.allBookmarks;810 private OffsetsBookmarksModel model = new OffsetsBookmarksModel();809 private final transient List<OffsetBookmark> bookmarks = OffsetBookmark.allBookmarks; 810 private final OffsetsBookmarksModel model = new OffsetsBookmarksModel(); 811 811 812 812 /** -
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginPreferencesModel.java
r8846 r9078 33 33 private final Map<PluginInformation, Boolean> selectedPluginsMap = new HashMap<>(); 34 34 // plugins that still require an update/download 35 private Set<String> pendingDownloads = new HashSet<>();35 private final Set<String> pendingDownloads = new HashSet<>(); 36 36 37 37 /** -
trunk/src/org/openstreetmap/josm/gui/preferences/projection/CodeProjectionChoice.java
r8836 r9078 50 50 private ProjectionCodeListModel model; 51 51 public JList<String> selectionList; 52 private List<String> data;53 private List<String> filteredData;52 private final List<String> data; 53 private final List<String> filteredData; 54 54 private static final String DEFAULT_CODE = "EPSG:3857"; 55 55 private String lastCode = DEFAULT_CODE; 56 private transient ActionListener listener;56 private final transient ActionListener listener; 57 57 58 58 CodeSelectionPanel(String initialCode, ActionListener listener) { -
trunk/src/org/openstreetmap/josm/gui/preferences/projection/ProjectionPreference.java
r8870 r9078 272 272 */ 273 273 private JPanel projSubPrefPanel; 274 private JPanel projSubPrefPanelWrapper = new JPanel(new GridBagLayout());274 private final JPanel projSubPrefPanelWrapper = new JPanel(new GridBagLayout()); 275 275 276 276 private JLabel projectionCodeLabel; 277 277 private Component projectionCodeGlue; 278 private JLabel projectionCode = new JLabel();278 private final JLabel projectionCode = new JLabel(); 279 279 private JLabel projectionNameLabel; 280 280 private Component projectionNameGlue; 281 private JLabel projectionName = new JLabel();282 private JLabel bounds = new JLabel();281 private final JLabel projectionName = new JLabel(); 282 private final JLabel bounds = new JLabel(); 283 283 284 284 /** -
trunk/src/org/openstreetmap/josm/gui/preferences/shortcut/PrefJPanel.java
r8836 r9078 55 55 56 56 // table of shortcuts 57 private AbstractTableModel model;57 private final AbstractTableModel model; 58 58 // this are the display(!) texts for the checkboxes. Let the JVM do the i18n for us <g>. 59 59 // Ok, there's a real reason for this: The JVM should know best how the keys are labelled … … 95 95 } 96 96 97 private JCheckBox cbAlt = new JCheckBox();98 private JCheckBox cbCtrl = new JCheckBox();99 private JCheckBox cbMeta = new JCheckBox();100 private JCheckBox cbShift = new JCheckBox();101 private JCheckBox cbDefault = new JCheckBox();102 private JCheckBox cbDisable = new JCheckBox();103 private JosmComboBox<String> tfKey = new JosmComboBox<>();104 105 private JTable shortcutTable = new JTable();106 107 private JosmTextField filterField = new JosmTextField();97 private final JCheckBox cbAlt = new JCheckBox(); 98 private final JCheckBox cbCtrl = new JCheckBox(); 99 private final JCheckBox cbMeta = new JCheckBox(); 100 private final JCheckBox cbShift = new JCheckBox(); 101 private final JCheckBox cbDefault = new JCheckBox(); 102 private final JCheckBox cbDisable = new JCheckBox(); 103 private final JosmComboBox<String> tfKey = new JosmComboBox<>(); 104 105 private final JTable shortcutTable = new JTable(); 106 107 private final JosmTextField filterField = new JosmTextField(); 108 108 109 109 /** Creates new form prefJPanel */ … … 123 123 private static class ScListModel extends AbstractTableModel { 124 124 private final String[] columnNames = new String[]{tr("Action"), tr("Shortcut")}; 125 private transient List<Shortcut> data;125 private final transient List<Shortcut> data; 126 126 127 127 /** … … 155 155 private class ShortcutTableCellRenderer extends DefaultTableCellRenderer { 156 156 157 private boolean name;157 private final boolean name; 158 158 159 159 ShortcutTableCellRenderer(boolean name) { … … 286 286 // more expirience with GUI coding than I have. 287 287 private class CbAction extends AbstractAction implements ListSelectionListener { 288 private PrefJPanel panel;288 private final PrefJPanel panel; 289 289 290 290 CbAction(PrefJPanel panel) { -
trunk/src/org/openstreetmap/josm/gui/progress/AbstractProgressMonitor.java
r9059 r9078 44 44 private boolean intermediateTask; 45 45 46 private Queue<Request> requests = new LinkedList<>();46 private final Queue<Request> requests = new LinkedList<>(); 47 47 private AbstractProgressMonitor currentChild; 48 48 private Request requestedState = new Request(); -
trunk/src/org/openstreetmap/josm/gui/progress/CancelHandler.java
r7005 r9078 10 10 11 11 private boolean isCanceled; 12 private List<CancelListener> listeners = new ArrayList<>();12 private final List<CancelListener> listeners = new ArrayList<>(); 13 13 14 14 public synchronized void cancel() { -
trunk/src/org/openstreetmap/josm/gui/progress/PleaseWaitProgressMonitor.java
r8939 r9078 135 135 } 136 136 137 private ActionListener cancelListener = new ActionListener() {137 private final ActionListener cancelListener = new ActionListener() { 138 138 @Override 139 139 public void actionPerformed(ActionEvent e) { … … 142 142 }; 143 143 144 private ActionListener inBackgroundListener = new ActionListener() {144 private final ActionListener inBackgroundListener = new ActionListener() { 145 145 @Override 146 146 public void actionPerformed(ActionEvent e) { … … 154 154 }; 155 155 156 private WindowListener windowListener = new WindowAdapter() {156 private final WindowListener windowListener = new WindowAdapter() { 157 157 @Override public void windowClosing(WindowEvent e) { 158 158 cancel(); -
trunk/src/org/openstreetmap/josm/gui/progress/SwingRenderingProgressMonitor.java
r8840 r9078 17 17 private static final int PROGRESS_BAR_MAX = 100; 18 18 private int currentProgressValue; 19 private ProgressRenderer delegate;19 private final ProgressRenderer delegate; 20 20 21 21 /** -
trunk/src/org/openstreetmap/josm/gui/tagging/TagCellRenderer.java
r8855 r9078 20 20 */ 21 21 public class TagCellRenderer extends JLabel implements TableCellRenderer { 22 private Font fontStandard;23 private Font fontItalic;22 private final Font fontStandard; 23 private final Font fontItalic; 24 24 25 25 /** -
trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorModel.java
r9059 r9078 41 41 private final PropertyChangeSupport propChangeSupport = new PropertyChangeSupport(this); 42 42 43 private DefaultListSelectionModel rowSelectionModel;44 private DefaultListSelectionModel colSelectionModel;43 private final DefaultListSelectionModel rowSelectionModel; 44 private final DefaultListSelectionModel colSelectionModel; 45 45 46 46 /** … … 609 609 610 610 class SelectionStateMemento { 611 private int rowMin;612 private int rowMax;613 private int colMin;614 private int colMax;611 private final int rowMin; 612 private final int rowMax; 613 private final int colMin; 614 private final int colMax; 615 615 616 616 SelectionStateMemento() { -
trunk/src/org/openstreetmap/josm/gui/tagging/TagTable.java
r9073 r9078 615 615 */ 616 616 class CellEditorRemover implements PropertyChangeListener { 617 private KeyboardFocusManager focusManager;617 private final KeyboardFocusManager focusManager; 618 618 619 619 CellEditorRemover(KeyboardFocusManager fm) { -
trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletionList.java
r8855 r9078 33 33 34 34 /** the bare list of AutoCompletionItems */ 35 private transient List<AutoCompletionListItem> list;35 private final transient List<AutoCompletionListItem> list; 36 36 /** the filtered list of AutoCompletionItems */ 37 private transient ArrayList<AutoCompletionListItem> filtered;37 private final transient ArrayList<AutoCompletionListItem> filtered; 38 38 /** the filter expression */ 39 39 private String filter; 40 40 /** map from value to priority */ 41 private transient Map<String, AutoCompletionListItem> valutToItemMap;41 private final transient Map<String, AutoCompletionListItem> valutToItemMap; 42 42 43 43 /** -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetSearchDialog.java
r8863 r9078 19 19 private static TaggingPresetSearchDialog instance; 20 20 21 private TaggingPresetSelector selector;21 private final TaggingPresetSelector selector; 22 22 23 23 /** -
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetSearchPrimitiveDialog.java
r8863 r9078 25 25 private static TaggingPresetSearchPrimitiveDialog instance; 26 26 27 private TaggingPresetSelector selector;27 private final TaggingPresetSelector selector; 28 28 29 29 /** -
trunk/src/org/openstreetmap/josm/gui/widgets/ComboBoxHistory.java
r8510 r9078 12 12 public class ComboBoxHistory extends DefaultComboBoxModel<AutoCompletionListItem> implements Iterable<AutoCompletionListItem> { 13 13 14 private int maxSize = 10;14 private final int maxSize; 15 15 16 private transient List<HistoryChangedListener> listeners = new ArrayList<>();16 private final transient List<HistoryChangedListener> listeners = new ArrayList<>(); 17 17 18 18 public ComboBoxHistory(int size) { -
trunk/src/org/openstreetmap/josm/gui/widgets/DateEditorWithSlider.java
r8510 r9078 28 28 */ 29 29 public class DateEditorWithSlider extends JPanel { 30 private JSpinner spinner;31 private JSlider slider;30 private final JSpinner spinner; 31 private final JSlider slider; 32 32 private Date dateMin; 33 33 private Date dateMax; … … 35 35 private boolean watchSlider = true; 36 36 37 private transient List<ChangeListener> listeners = new ArrayList<>();37 private final transient List<ChangeListener> listeners = new ArrayList<>(); 38 38 39 39 /** -
trunk/src/org/openstreetmap/josm/gui/widgets/HistoryComboBox.java
r8510 r9078 10 10 11 11 public class HistoryComboBox extends AutoCompletingComboBox { 12 private ComboBoxHistory model;12 private final ComboBoxHistory model; 13 13 14 14 public static final int DEFAULT_SEARCH_HISTORY_SIZE = 15; -
trunk/src/org/openstreetmap/josm/gui/widgets/ImageLabel.java
r8510 r9078 18 18 */ 19 19 public class ImageLabel extends JPanel { 20 private JLabel tf;21 private int charCount;20 private final JLabel tf; 21 private final int charCount; 22 22 23 23 /** -
trunk/src/org/openstreetmap/josm/gui/widgets/ListPopupMenu.java
r7001 r9078 14 14 public class ListPopupMenu extends JPopupMenu { 15 15 16 private JList<?>[] lists;16 private final JList<?>[] lists; 17 17 18 18 public ListPopupMenu(JList<?> ... lists) {
Note:
See TracChangeset
for help on using the changeset viewer.