source: josm/trunk/src/org/openstreetmap/josm/tools/PresetTextComparator.java@ 2946

Last change on this file since 2946 was 2512, checked in by stoecker, 14 years ago

i18n updated, fixed files to reduce problems when applying patches, fix #4017

File size: 332 bytes
Line 
1package org.openstreetmap.josm.tools;
2
3import java.util.Comparator;
4
5import javax.swing.JMenuItem;
6
7public class PresetTextComparator implements Comparator<JMenuItem> {
8 //TODO add error checking and stuff
9 public int compare(JMenuItem arg0, JMenuItem arg1) {
10 return arg0.getText().compareTo(arg1.getText());
11 }
12
13}
Note: See TracBrowser for help on using the repository browser.