Ignore:
Timestamp:
2010-06-27T23:03:50+02:00 (15 years ago)
Author:
bastik
Message:

update to josm latest

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  
    4747        @Override
    4848        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);
    5050                if (nearestWay != highlightedWay) {
    5151                        if (highlightedWay != null) {
     
    6565                        return;
    6666
    67                 Way way = Main.map.mapView.getNearestWay(e.getPoint());
     67                Way way = Main.map.mapView.getNearestWay(e.getPoint(), OsmPrimitive.isUsablePredicate);
    6868                Collection<Relation> selectedRelations = Main.main.getCurrentDataSet().getSelectedRelations();
    6969
  • applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RemoveRelationMemberCommand.java

    r19242 r22046  
    88
    99import javax.swing.JLabel;
    10 import javax.swing.tree.DefaultMutableTreeNode;
    11 import javax.swing.tree.MutableTreeNode;
    1210
    1311import org.openstreetmap.josm.Main;
     
    6563    @Override public void fillModifiedData(Collection<OsmPrimitive> modified, Collection<OsmPrimitive> deleted, Collection<OsmPrimitive> added) {}
    6664
    67     @Override public MutableTreeNode description() {
     65    @Override public JLabel getDescription() {
    6866        String msg = "";
    6967        switch(OsmPrimitiveType.from(member.getMember())) {
     
    7270            case RELATION: msg = marktr("Remove relation ''{0}'' at position {1} from relation ''{2}''"); break;
    7371        }
    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
    8480        );
    8581    }
Note: See TracChangeset for help on using the changeset viewer.