Changeset 14676 in josm
- Timestamp:
- 2019-01-12T16:44:47+01:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/BoundingXYVisitor.java
r14628 r14676 178 178 * If the bounding box has not been set (<code>min</code> or <code>max</code> 179 179 * equal <code>null</code>) this method does not do anything. 180 * 181 * @since 14628 180 182 */ 181 183 public void enlargeBoundingBoxLogarithmically() { -
trunk/src/org/openstreetmap/josm/gui/history/NodeListViewer.java
r14675 r14676 43 43 public class NodeListViewer extends HistoryViewerPanel { 44 44 45 private final NodeListPopupMenu popupMenu = new NodeListPopupMenu();46 47 45 /** 48 46 * Constructs a new {@code NodeListViewer}. … … 218 216 class InternalPopupMenuLauncher extends PopupMenuLauncher { 219 217 InternalPopupMenuLauncher() { 220 super( popupMenu);218 super(new NodeListPopupMenu()); 221 219 } 222 220 … … 224 222 protected int checkTableSelection(JTable table, Point p) { 225 223 int row = super.checkTableSelection(table, p); 226 popupMenu.prepare(primitiveIdAtRow((DiffTableModel) table.getModel(), row));224 ((NodeListPopupMenu) menu).prepare(primitiveIdAtRow((DiffTableModel) table.getModel(), row)); 227 225 return row; 228 226 } -
trunk/src/org/openstreetmap/josm/gui/history/VersionTable.java
r14545 r14676 14 14 import java.awt.event.KeyEvent; 15 15 import java.awt.event.MouseEvent; 16 import java.util.Objects; 16 17 17 18 import javax.swing.DefaultCellEditor; … … 124 125 final class MouseListener extends PopupMenuLauncher { 125 126 private MouseListener() { 126 super( popupMenu);127 super(Objects.requireNonNull(popupMenu)); 127 128 } 128 129 -
trunk/src/org/openstreetmap/josm/gui/widgets/PopupMenuLauncher.java
r14248 r14676 15 15 import javax.swing.SwingUtilities; 16 16 import javax.swing.tree.TreePath; 17 18 import org.openstreetmap.josm.tools.Logging; 17 19 18 20 /** … … 113 115 menu.show(component, evt.getX(), evt.getY()); 114 116 } 117 } else { 118 Logging.warn("Unable to display menu {0} - {1}", menu, evt); 115 119 } 116 120 }
Note:
See TracChangeset
for help on using the changeset viewer.