Changeset 29787 in osm for applications/editors/josm/plugins/smed2/src/smed2
- Timestamp:
- 2013-07-29T13:53:22+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/smed2/Smed2Action.java
r29340 r29787 172 172 @Override 173 173 public void selectionChanged(Collection<? extends OsmPrimitive> selection) { 174 Node nextNode = null; 175 Node node = null; 176 Way nextWay = null; 177 Way way = null; 174 OsmPrimitive nextFeature = null; 175 OsmPrimitive feature = null; 178 176 179 177 if (selection.size() == 0) showFrame.setVisible(false); 180 178 for (OsmPrimitive osm : selection) { 181 if (osm instanceof Node) { 182 nextNode = (Node) osm; 179 nextFeature = osm; 183 180 if (selection.size() == 1) { 184 if (next Node.compareTo(node) != 0) {185 node = nextNode;181 if (nextFeature.compareTo(feature) != 0) { 182 feature = nextFeature; 186 183 // showFrame.setVisible(true); 187 showFrame.showFeature( node, map);184 showFrame.showFeature(feature, map); 188 185 } 189 186 } else { … … 191 188 } 192 189 } 193 else if (osm instanceof Way) { 194 nextWay = (Way) osm; 195 if (selection.size() == 1) { 196 if (nextWay.compareTo(way) != 0) { 197 way = nextWay; 198 // showFrame.setVisible(true); 199 showFrame.showFeature(way, map); 200 } 201 } else { 202 showFrame.setVisible(false); 203 } 204 } 205 } 206 if (nextNode == null) { 207 node = null; 190 if (nextFeature == null) { 191 feature = null; 208 192 } 209 193 }
Note:
See TracChangeset
for help on using the changeset viewer.