Changeset 6025 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
- Timestamp:
- 2013-06-26T10:14:24+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
r5958 r6025 66 66 import org.openstreetmap.josm.gui.layer.Layer; 67 67 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 68 import org.openstreetmap.josm.gui.util.HighlightHelper; 68 69 import org.openstreetmap.josm.gui.widgets.DisableShortcutsOnFocusGainedTextField; 69 70 import org.openstreetmap.josm.gui.widgets.JosmTextField; … … 112 113 private final AddSelectionToRelations addSelectionToRelations = new AddSelectionToRelations(); 113 114 115 HighlightHelper highlightHelper = new HighlightHelper(); 116 114 117 /** 115 118 * Constructs <code>RelationListDialog</code> … … 183 186 // inform all actions about list of relations they need 184 187 private void updateActionsRelationLists() { 185 popupMenuHandler.setPrimitives(model.getSelectedRelations()); 188 List<Relation> sel = model.getSelectedRelations(); 189 popupMenuHandler.setPrimitives(sel); 190 191 //update highlights 192 if (Main.isDisplayingMapView()) { 193 highlightHelper.highlightOnly(sel); 194 Main.map.mapView.repaint(); 195 } 186 196 } 187 197 … … 298 308 super(popupMenu); 299 309 } 310 311 @Override 312 public void mouseExited(MouseEvent me) { 313 highlightHelper.clear(); 314 } 300 315 301 316 protected void setCurrentRelationAsSelection() { … … 306 321 EditRelationAction.launchEditor(getSelected()); 307 322 } 308 323 309 324 @Override public void mouseClicked(MouseEvent e) { 310 325 if (Main.main.getEditLayer() == null) return;
Note:
See TracChangeset
for help on using the changeset viewer.