Changeset 27887 in osm for applications/editors/josm/plugins/routes/src/org
- Timestamp:
- 2012-02-19T19:18:51+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RemoveRelationMemberCommand.java
r22046 r27887 7 7 import java.util.Collection; 8 8 9 import javax.swing. JLabel;9 import javax.swing.Icon; 10 10 11 11 import org.openstreetmap.josm.Main; … … 63 63 @Override public void fillModifiedData(Collection<OsmPrimitive> modified, Collection<OsmPrimitive> deleted, Collection<OsmPrimitive> added) {} 64 64 65 @Override public JLabel getDescription() {65 @Override public String getDescriptionText() { 66 66 String msg = ""; 67 67 switch(OsmPrimitiveType.from(member.getMember())) { … … 70 70 case RELATION: msg = marktr("Remove relation ''{0}'' at position {1} from relation ''{2}''"); break; 71 71 } 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 80 ); 72 return tr(msg, 73 member.getMember().getDisplayName(DefaultNameFormatter.getInstance()), 74 relation.getMembers().indexOf(member), 75 relation.getDisplayName(DefaultNameFormatter.getInstance())); 76 } 77 78 @Override public Icon getDescriptionIcon() { 79 return ImageProvider.get(OsmPrimitiveType.from(relation)); 81 80 } 82 81 }
Note:
See TracChangeset
for help on using the changeset viewer.