Changeset 6070 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/ConflictDialog.java
- Timestamp:
- 2013-07-17T00:01:49+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/ConflictDialog.java
r6009 r6070 67 67 /** 68 68 * Replies the color used to paint conflicts. 69 * 69 * 70 70 * @return the color used to paint conflicts 71 71 * @since 1221 … … 83 83 /** the list widget for the list of conflicts */ 84 84 private JList lstConflicts; 85 85 86 86 private final JPopupMenu popupMenu = new JPopupMenu(); 87 87 private final PopupMenuHandler popupMenuHandler = new PopupMenuHandler(popupMenu); … … 115 115 btnResolve, btnSelect 116 116 })); 117 117 118 118 popupMenuHandler.addAction(Main.main.menu.autoScaleActions.get("conflict")); 119 119 } … … 143 143 DataSet.removeSelectionListener(this); 144 144 } 145 145 146 146 /** 147 147 * Add a list selection listener to the conflicts list. … … 152 152 lstConflicts.getSelectionModel().addListSelectionListener(listener); 153 153 } 154 154 155 155 /** 156 156 * Remove the given list selection listener from the conflicts list. … … 161 161 lstConflicts.getSelectionModel().removeListSelectionListener(listener); 162 162 } 163 163 164 164 /** 165 165 * Replies the popup menu handler. … … 218 218 /** 219 219 * Paints all conflicts that can be expressed on the main window. 220 * 220 * 221 221 * @param g The {@code Graphics} used to paint 222 222 * @param nc The {@code NavigatableComponent} used to get screen coordinates of nodes … … 294 294 /** 295 295 * returns the first selected item of the conflicts list 296 * 296 * 297 297 * @return Conflict 298 298 */ … … 331 331 return ht("/Dialog/ConflictList"); 332 332 } 333 333 334 334 class MouseEventHandler extends PopupMenuLauncher { 335 335 public MouseEventHandler() { … … 438 438 } 439 439 DataSet ds = Main.main.getCurrentDataSet(); 440 if (ds != null) { // Can't see how it is possible but it happened in #7942 440 if (ds != null) { // Can't see how it is possible but it happened in #7942 441 441 ds.setSelected(sel); 442 442 } … … 450 450 } 451 451 } 452 452 453 453 /** 454 454 * Warns the user about the number of detected conflicts
Note:
See TracChangeset
for help on using the changeset viewer.