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

Last change on this file since 3719 was 3719, checked in by bastiK, 13 years ago

added missing license information

  • Property svn:eol-style set to native
File size: 423 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.tools;
3
4import java.io.Serializable;
5import java.util.Comparator;
6
7import javax.swing.JMenuItem;
8
9public class PresetTextComparator implements Comparator<JMenuItem>, Serializable {
10 //TODO add error checking and stuff
11 public int compare(JMenuItem arg0, JMenuItem arg1) {
12 return arg0.getText().compareTo(arg1.getText());
13 }
14
15}
Note: See TracBrowser for help on using the repository browser.