Changeset 7266 in josm
- Timestamp:
- 2014-06-24T22:15:22+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/validator/ValidatorTreePanel.java
r7239 r7266 42 42 */ 43 43 public class ValidatorTreePanel extends JTree implements Destroyable { 44 45 private static final class GroupTreeNode extends DefaultMutableTreeNode { 46 47 public GroupTreeNode(Object userObject) { 48 super(userObject); 49 } 50 51 @Override 52 public String toString() { 53 return tr("{0} ({1})", super.toString(), getLeafCount()); 54 } 55 } 44 56 45 57 /** … … 209 221 210 222 // Severity node 211 DefaultMutableTreeNode severityNode = new DefaultMutableTreeNode(s) { 212 @Override 213 public String toString() { 214 return super.toString() + " (" + getLeafCount() + ")"; 215 } 216 }; 223 DefaultMutableTreeNode severityNode = new GroupTreeNode(s); 217 224 rootNode.add(severityNode); 218 225 … … 243 250 DefaultMutableTreeNode groupNode = null; 244 251 if (errorlist.size() > 1) { 245 String nmsg = tr("{0} ({1})", bag.getKey(), errorlist.size()); 246 groupNode = new DefaultMutableTreeNode(nmsg); 252 groupNode = new GroupTreeNode(bag.getKey()); 247 253 severityNode.add(groupNode); 248 254 if (oldSelectedRows.contains(bag.getKey())) {
Note:
See TracChangeset
for help on using the changeset viewer.