Changeset 17440 in josm
- Timestamp:
- 2021-01-04T17:06:18+01:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyAction.java
r17141 r17440 191 191 map.keyDetector.removeModifierExListener(this); 192 192 temporaryLayer.invalidate(); 193 targetWay = null; 194 candidateNode = null; 195 candidateSegment = null; 193 196 } 194 197 -
trunk/src/org/openstreetmap/josm/gui/dialogs/DeleteFromRelationConfirmationDialog.java
r16438 r17440 169 169 ).applySafe(this); 170 170 setCanceled(false); 171 } else if (isShowing()) { // Avoid IllegalComponentStateException like in #8775 172 new WindowGeometry(this).remember(getClass().getName() + ".geometry"); 171 } else { 172 if (isShowing()) { // Avoid IllegalComponentStateException like in #8775 173 new WindowGeometry(this).remember(getClass().getName() + ".geometry"); 174 } 175 model.data.clear(); 173 176 } 174 177 super.setVisible(visible); -
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r17418 r17440 175 175 private final transient MainLayerManager layerManager; 176 176 177 private PopupMenuHandler popupHandler; 178 179 private LayerListModelListener modelListener; 180 177 181 /** 178 182 * registers (shortcut to toggle right hand side toggle dialogs)+(number keys) shortcuts … … 212 216 TableHelper.setFont(layerList, getClass()); 213 217 layerList.setSelectionModel(selectionModel); 214 layerList.addMouseListener(new PopupMenuHandler()); 218 popupHandler = new PopupMenuHandler(); 219 layerList.addMouseListener(popupHandler); 215 220 layerList.setBackground(UIManager.getColor("Button.background")); 216 221 layerList.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE); … … 274 279 model.populate(); 275 280 model.setSelectedLayer(layerManager.getActiveLayer()); 276 model .addLayerListModelListener(277 new LayerListModelListener() {278 @Override279 public void makeVisible(int row, Layer layer) {280 layerList.scrollToVisible(row, 0);281 layerList.repaint();282 } 283 284 @Override285 public void refresh() {286 layerList.repaint();287 }288 } 289 281 modelListener = new LayerListModelListener() { 282 @Override 283 public void makeVisible(int row, Layer layer) { 284 layerList.scrollToVisible(row, 0); 285 layerList.repaint(); 286 } 287 288 @Override 289 public void refresh() { 290 layerList.repaint(); 291 } 292 }; 293 294 model.addLayerListModelListener(modelListener); 290 295 291 296 // -- move up action … … 398 403 JumpToMarkerActions.unregisterActions(); 399 404 layerList.setTransferHandler(null); 405 layerList.removeMouseListener(popupHandler); 400 406 DISPLAY_NUMBERS.removeListener(visibilityWidthListener); 401 407 ExpertToggleAction.removeExpertModeChangeListener(visibilityWidthListener); … … 403 409 cycleLayerUpAction.destroy(); 404 410 cycleLayerDownAction.destroy(); 411 model.removeLayerListModelListener(modelListener); 405 412 super.destroy(); 406 413 instance = null; -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r17358 r17440 248 248 private final transient TaggingPresetHandler presetHandler = new TaggingPresetCommandHandler(); 249 249 250 private PopupMenuLauncher popupMenuLauncher; 251 250 252 private static final BooleanProperty PROP_AUTORESIZE_TAGS_TABLE = new BooleanProperty("propertiesdialog.autoresizeTagsTable", false); 251 253 … … 419 421 }); 420 422 421 membershipTable.addMouseListener(new PopupMenuLauncher(membershipMenu) {423 popupMenuLauncher = new PopupMenuLauncher(membershipMenu) { 422 424 @Override 423 425 protected int checkTableSelection(JTable table, Point p) { … … 446 448 highlightHelper.clear(); 447 449 } 448 }); 450 }; 451 membershipTable.addMouseListener(popupMenuLauncher); 449 452 } 450 453 … … 614 617 public void destroy() { 615 618 destroyTaginfoNationalActions(); 619 membershipTable.removeMouseListener(popupMenuLauncher); 616 620 super.destroy(); 617 621 Config.getPref().removeKeyPreferenceChangeListener("display.discardable-keys", preferenceListener); -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/SavingAction.java
r17401 r17440 186 186 if (editorAccess.getEditor() instanceof Component) { 187 187 ((Component) editorAccess.getEditor()).setVisible(false); 188 editorAccess.getEditor().setRelation(null); 188 189 } 190 189 191 } 190 192 -
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r17399 r17440 1119 1119 data.removeDataSetListener(dataSetListenerAdapter); 1120 1120 data.removeDataSetListener(MultipolygonCache.getInstance()); 1121 data.clearSelection(); 1122 validationErrors.clear(); 1121 1123 removeClipboardDataFor(this); 1122 1124 recentRelations.clear();
Note:
See TracChangeset
for help on using the changeset viewer.