Changeset 12630 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTable.java
- Timestamp:
- 2017-08-24T00:15:51+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTable.java
r10683 r12630 28 28 import org.openstreetmap.josm.data.osm.RelationMember; 29 29 import org.openstreetmap.josm.data.osm.Way; 30 import org.openstreetmap.josm.gui.MainApplication; 30 31 import org.openstreetmap.josm.gui.dialogs.relation.sort.WayConnectionType; 31 32 import org.openstreetmap.josm.gui.dialogs.relation.sort.WayConnectionType.Direction; … … 108 109 109 110 private transient ListSelectionListener highlighterListener = lse -> { 110 if (Main .isDisplayingMapView()) {111 if (MainApplication.isDisplayingMapView()) { 111 112 Collection<RelationMember> sel = getMemberTableModel().getSelectedMembers(); 112 113 final Set<OsmPrimitive> toHighlight = new HashSet<>(); … … 117 118 } 118 119 SwingUtilities.invokeLater(() -> { 119 if (Main .isDisplayingMapView() && highlightHelper.highlightOnly(toHighlight)) {120 Main .map.mapView.repaint();120 if (MainApplication.isDisplayingMapView() && highlightHelper.highlightOnly(toHighlight)) { 121 MainApplication.getMap().mapView.repaint(); 121 122 } 122 123 }); … … 128 129 if (!highlightEnabled) return; 129 130 getMemberTableModel().getSelectionModel().addListSelectionListener(highlighterListener); 130 if (Main .isDisplayingMapView()) {131 if (MainApplication.isDisplayingMapView()) { 131 132 HighlightHelper.clearAllHighlighted(); 132 Main .map.mapView.repaint();133 MainApplication.getMap().mapView.repaint(); 133 134 } 134 135 } … … 153 154 getMemberTableModel().getSelectionModel().removeListSelectionListener(highlighterListener); 154 155 highlighterListener = null; 155 if (Main .isDisplayingMapView()) {156 if (MainApplication.isDisplayingMapView()) { 156 157 HighlightHelper.clearAllHighlighted(); 157 Main .map.mapView.repaint();158 MainApplication.getMap().mapView.repaint(); 158 159 } 159 160 }
Note:
See TracChangeset
for help on using the changeset viewer.