Changeset 94 in josm for src/org/openstreetmap/josm/command/AddCommand.java
- Timestamp:
- 2006-04-23T19:51:19+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/command/AddCommand.java
r93 r94 2 2 3 3 import java.util.Collection; 4 5 import javax.swing.JLabel; 6 import javax.swing.tree.DefaultMutableTreeNode; 7 import javax.swing.tree.MutableTreeNode; 4 8 5 9 import org.openstreetmap.josm.Main; … … 7 11 import org.openstreetmap.josm.data.osm.visitor.AddVisitor; 8 12 import org.openstreetmap.josm.data.osm.visitor.DeleteVisitor; 13 import org.openstreetmap.josm.data.osm.visitor.NameVisitor; 9 14 10 15 /** … … 39 44 added.add(osm); 40 45 } 46 47 @Override public MutableTreeNode description() { 48 NameVisitor v = new NameVisitor(); 49 osm.visit(v); 50 return new DefaultMutableTreeNode(new JLabel("Add "+v.className+" "+v.name, v.icon, JLabel.HORIZONTAL)); 51 } 41 52 }
Note:
See TracChangeset
for help on using the changeset viewer.