Changeset 22046 in osm for applications/editors/josm/plugins/routes
- Timestamp:
- 2010-06-27T23:03:50+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RelationEditMode.java
r21174 r22046 47 47 @Override 48 48 public void mouseMoved(MouseEvent e) { 49 Way nearestWay = Main.map.mapView.getNearestWay(e.getPoint() );49 Way nearestWay = Main.map.mapView.getNearestWay(e.getPoint(), OsmPrimitive.isUsablePredicate); 50 50 if (nearestWay != highlightedWay) { 51 51 if (highlightedWay != null) { … … 65 65 return; 66 66 67 Way way = Main.map.mapView.getNearestWay(e.getPoint() );67 Way way = Main.map.mapView.getNearestWay(e.getPoint(), OsmPrimitive.isUsablePredicate); 68 68 Collection<Relation> selectedRelations = Main.main.getCurrentDataSet().getSelectedRelations(); 69 69 -
applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RemoveRelationMemberCommand.java
r19242 r22046 8 8 9 9 import javax.swing.JLabel; 10 import javax.swing.tree.DefaultMutableTreeNode;11 import javax.swing.tree.MutableTreeNode;12 10 13 11 import org.openstreetmap.josm.Main; … … 65 63 @Override public void fillModifiedData(Collection<OsmPrimitive> modified, Collection<OsmPrimitive> deleted, Collection<OsmPrimitive> added) {} 66 64 67 @Override public MutableTreeNode description() {65 @Override public JLabel getDescription() { 68 66 String msg = ""; 69 67 switch(OsmPrimitiveType.from(member.getMember())) { … … 72 70 case RELATION: msg = marktr("Remove relation ''{0}'' at position {1} from relation ''{2}''"); break; 73 71 } 74 return new DefaultMutableTreeNode( 75 new JLabel( 76 tr(msg, 77 member.getMember().getDisplayName(DefaultNameFormatter.getInstance()), 78 relation.getMembers().indexOf(member), 79 relation.getDisplayName(DefaultNameFormatter.getInstance()) 80 ), 81 ImageProvider.get(OsmPrimitiveType.from(relation)), 82 JLabel.HORIZONTAL 83 ) 72 return new JLabel( 73 tr(msg, 74 member.getMember().getDisplayName(DefaultNameFormatter.getInstance()), 75 relation.getMembers().indexOf(member), 76 relation.getDisplayName(DefaultNameFormatter.getInstance()) 77 ), 78 ImageProvider.get(OsmPrimitiveType.from(relation)), 79 JLabel.HORIZONTAL 84 80 ); 85 81 }
Note:
See TracChangeset
for help on using the changeset viewer.